Error-messages when compiling bind 9.3.2

Danny Mayer mayer at ntp.isc.org
Thu Jan 12 22:29:35 UTC 2006


Tom Schmitt wrote:
> Hi,
> 
> I'm not good in C-coding so I'm not sure if it matters, but when I'm
> compiling BIND 9.3.2 on Solaris 10 with gcc 3.3.2, then I get (when I'm
> running make) not only much warnings, but also some error-messages:
> 
> <SNIP>
> gcc  -I/dns/src/bind-9.3.2 -I./include -I./../include
> -I/dns/src/bind-9.3.2/lib/dns/include -I../../../lib/dns/include
> -I/dns/src/bind-9.3.2/lib/isc/include -I../../../lib/isc
> -I../../../lib/isc/include -I../../../lib/isc/unix/include
> -I../../../lib/isc/pthreads/include  -D_REENTRANT  -D_XPG4_2
> -D__EXTENSIONS__ -g -O2  -W -Wall -Wmissing-prototypes -Wcast-qual
> -Wwrite-strings -Wformat  -c os.c
> os.c: In function `ns_os_daemonize':
> os.c:312: warning: implicit declaration of function `pipe'
> os.c:317: warning: implicit declaration of function `fork'
> os.c:329: warning: implicit declaration of function `close'
> os.c:332: warning: implicit declaration of function `read'
> os.c:334: warning: implicit declaration of function `_exit'
> os.c:348: warning: implicit declaration of function `setsid'
> os.c:364: error: `STDIN_FILENO' undeclared (first use in this function)
> os.c:364: error: (Each undeclared identifier is reported only once
> os.c:364: error: for each function it appears in.)
> os.c:366: warning: implicit declaration of function `dup2'
> os.c:368: error: `STDOUT_FILENO' undeclared (first use in this function)
> os.c:372: error: `STDERR_FILENO' undeclared (first use in this function)
> os.c: In function `ns_os_started':
> os.c:387: warning: implicit declaration of function `write'
> os.c: In function `ns_os_closedevnull':
> os.c:400: error: `STDIN_FILENO' undeclared (first use in this function)
> os.c:401: error: `STDOUT_FILENO' undeclared (first use in this function)
> os.c:402: error: `STDERR_FILENO' undeclared (first use in this function)
> </SNIP>
> 
> Should I worry about these Error-messages or are these just for
> beautification of the code?
> 
> Tom.
> 
Well you didn't build BIND. The build always stops on an error. You may
have some sort of configuration setup error. These look like something
really bad happened.

Danny



More information about the bind-users mailing list