The availability of socketbits.h?

Xu Qiang Qiang.Xu at fujixerox.com
Tue May 17 19:00:31 PDT 2005


Dan Nelson wrote:
> That's because after including the header that provides a declaration
> for random (stdlib.h), the author decided to include another of his
> own for some reason, but he used the wrong return type so gcc
> complained. Just remove like 22 of mink.c.

Thank you again. It can roll forward when the declaration of the "random" function function is removed. It seems 1.1.16 version is full of bugs, like stated above. The 1.1.14 version is much better in compiling. 

However, both versions give me an error when I run the compiled application after gmake, gmake install. I go to bin directory and type "./nngssrv", it told me: 
Bus error (core dumped)

GDB trace is here: 
-----------------------------------------------
gso_dev_2# gdb nngssrv nngssrv.core 
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Core was generated by `nngssrv'.
Program terminated with signal 10, Bus error.
Reading symbols from /lib/libcrypt.so.2...done.
Loaded symbols for /lib/libcrypt.so.2
Reading symbols from /lib/libm.so.3...done.
Loaded symbols for /lib/libm.so.3
Reading symbols from /lib/libc.so.5...done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x2818bbc5 in __vfprintf () from /lib/libc.so.5
(gdb) bt
#0  0x2818bbc5 in __vfprintf () from /lib/libc.so.5
#1  0x2818a513 in vfprintf () from /lib/libc.so.5
#2  0x28177352 in fprintf () from /lib/libc.so.5
#3  0x0805f98c in commands_init () at command.c:1149
#4  0x0805aeab in main (argc=1116382465, argv=0x807e702) at nngsmain.c:162
-----------------------------------------------

What is a "Bus error"? 

Any hints to overcome this last barrier?

thanks a lot, 

Regards,
Xu Qiang




More information about the freebsd-questions mailing list