Date: Wed, 18 May 2005 10:02:42 +0800 From: Xu Qiang <Qiang.Xu@fujixerox.com> To: Dan Nelson <dnelson@allantgroup.com>, Giorgos Keramidas <keramida@ceid.upatras.gr> Cc: freebsd-questions@freebsd.org Subject: RE: The availability of socketbits.h? Message-ID: <20050518015322.7F0F11D93F@imss.sgp.fujixerox.com>
next in thread | raw e-mail | index | archive | help
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" f= unction 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 ar= e welcome to change it and/or distribute copies of it under certain condition= s. 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=3D1116382465, argv=3D0x807e702) at nngsmain.c:= 162 ----------------------------------------------- What is a "Bus error"? = Any hints to overcome this last barrier? thanks a lot, = Regards, Xu Qiang
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050518015322.7F0F11D93F>