Error-messages when compiling bind 9.3.2

Jason Mitchell jm at hcn.com.au
Fri Jan 13 03:21:32 UTC 2006


Hi Tom,

Couple of questions:

Are you running SPARC or i386 Solaris 10?
Which gcc are you using (sunfreeware or other)?

I've just successfully compiled 9.3.2 on Solaris 10 Sparc using the 
sunfreeware gcc 3.3.2.

If you are using the sunfreeware gcc on either x86 or sparc there are 
some important notes regarding header files on the site at:

http://www.sunfreeware.com/programlistintel10.html#gcc33 (for i386) and
http://www.sunfreeware.com/programlistsparc10.html#gcc33 (for sparc).

Heres some info from my server:

-bash-3.00# pwd
/opt/build/bind-9.3.2
-bash-3.00# ./bin/named/named -v
BIND 9.3.2
-bash-3.00# gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as 
--with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.3.2
-bash-3.00# set | grep PATH
PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/ccs/bin:/usr/ucb:/usr/sfw/bin
-bash-3.00# uname -a
SunOS filly 5.10 Generic_118822-23 sun4u sparc SUNW,Sun-Fire-V240

Cheers,

Jason

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.
>
>  
>



More information about the bind-users mailing list