From owner-freebsd-questions@FreeBSD.ORG Wed May 18 02:00:31 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E3A716A4CE for ; Wed, 18 May 2005 02:00:31 +0000 (GMT) Received: from mx2.fujixerox.co.jp (mx2.fujixerox.co.jp [192.26.96.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 425C243D96 for ; Wed, 18 May 2005 02:00:30 +0000 (GMT) (envelope-from Qiang.Xu@fujixerox.com) Received: from isvw2.fujixerox.co.jp ([129.249.27.132]) by mx2.fujixerox.co.jp (8.11.6p2a/3.7W) with ESMTP id j4I20Fm08450; Wed, 18 May 2005 11:00:15 +0900 (JST) Received: from ms1.fujixerox.co.jp (isvw2 [129.249.27.132]) by isvw2.fujixerox.co.jp (8.11.6p2a/3.7W) with ESMTP id j4I203s18746; Wed, 18 May 2005 11:00:04 +0900 (JST) Received: from sgpaphq-smtp01.fujixerox.com ([13.198.8.73]) by ms1.fujixerox.co.jp (8.11.6p2a/3.7W) with ESMTP id j4I208a02423; Wed, 18 May 2005 11:00:08 +0900 (JST) Received: from 10.198.8.10 by sgpaphq-smtp01.fujixerox.com with ESMTP id 50224841116381599; Wed, 18 May 2005 09:59:59 +0800 Received: from localhost (localhost [127.0.0.1]) by localhost.sgp.fujixerox.com (Postfix) with SMTP id 811B51D99B; Wed, 18 May 2005 09:53:24 +0800 (SGT) Received: from sess.xssc.sgp.xerox.com (unknown [13.198.33.122]) by imss.sgp.fujixerox.com (Postfix) with ESMTP id 7F0F11D93F; Wed, 18 May 2005 09:53:22 +0800 (SGT) From: Xu Qiang To: Dan Nelson , Giorgos Keramidas Date: Wed, 18 May 2005 10:02:42 +0800 X-Sent-Folder-Path: Sent Items X-Mailer: Oracle Connector for Outlook 9.0.4 60130 (9.0.2711) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-Id: <20050518015322.7F0F11D93F@imss.sgp.fujixerox.com> cc: "Qiang \(XSSC\) Xu" cc: freebsd-questions@freebsd.org Subject: RE: The availability of socketbits.h? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2005 02:00:31 -0000 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