Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 May 2005 23:35:49 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Xu Qiang <Qiang.Xu@fujixerox.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: The availability of socketbits.h?
Message-ID:  <20050517043549.GB90284@dan.emsphone.com>
In-Reply-To: <20050517041306.1888E1D92E@imss.sgp.fujixerox.com>
References:  <20050517041306.1888E1D92E@imss.sgp.fujixerox.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (May 17), Xu Qiang said:
> I am compiling NNGS (No Name Go Server) code in my FreeBSD 5.3
> machine. Yet, I came across the following error:
> ---------------------------------------------------------
> gcc -traditional-cpp -Wall -DFREEBSD -c network.c
> network.c:23: socketbits.h: No such file or directory
> gmake: *** [network.o] Error 1
> ---------------------------------------------------------
> 
> I have searched for this file in my system, but can't find it. 
> 
> To have it present, which software must I install?

That is a Linux internal header that programs should not be including
directly.  What version of nngs are you trying to compile?  I
downloaded nngs-1.1.16 from http://sourceforge.net/projects/nngs/ and
line 23 of src/network.c is a blank line:

   20 #ifdef HAVE_CONFIG_H
   21 #include <config.h>
   22 #endif
   23
   24 #include <stdio.h>
   25 #include <stdlib.h>
   26 #include <assert.h>

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050517043549.GB90284>