Problem in compiling bind 4.9.7 for solaris 2.6

Asif asif at lhe.orbit.net.pk
Fri Oct 29 09:48:26 UTC 1999


Hi,

We have a Sun Ultra Sparc running Solaris 2.6.  Bind 4.9.4 is already running and is configured as a secondary server.  I want to upgrade it to Bind 4.9.7

I have already downloaded the source and have tried to compile as follows

( /software) # ls

BSD                 README              contrib             res
CHANGES             TODO                doc                 shres
INSTALL             bin                 include             tools
Makefile            bind-4.9.7-REL.tar  man
Makefile.orig       compat              named
OPTIONS             conf                native.b

( software ) # vi Makefile

I have uncommented lines under solaris2 using gcc compiler

When I run "make"  i get the following error message

(software )# make

/software/named/res
gcc -DSVR4 -D_SYS_STREAM_H -DMAXHOSTNAMELEN=256 -g -I../include -I../compat/incc
In file included from ../include/arpa/inet.h:68,
                 from base64.c:47:
../compat/include/sys/bitypes.h:78: warning: redefinition of `int8_t'
/usr/include/sys/int_types.h:62: warning: `int8_t' previously declared here
../compat/include/sys/bitypes.h:80: warning: redefinition of `int16_t'
/usr/include/sys/int_types.h:68: warning: `int16_t' previously declared here
../compat/include/sys/bitypes.h:82: warning: redefinition of `int32_t'
/usr/include/sys/int_types.h:69: warning: `int32_t' previously declared here
In file included from base64.c:58:
../conf/portability.h:643: conflicting types for `gethostname'
/usr/include/unistd.h:254: previous declaration of `gethostname'
*** Error code 1
make: Fatal error: Command failed for target `base64.o'
Current working directory /software/named/res
*** Error code 1
make: Fatal error: Command failed for target `all'


Please guide.

Also can u guide what should I do with the running bind 4.9.4

Waiting for your reply

thanks and regards

asif



More information about the bind-users mailing list