Can't compile 8.2.2p5 on HPUX - Please Help

Jeff Newton Jeff_Newton at pmc-sierra.com
Mon Jan 17 19:05:20 UTC 2000


I've been trying to compile 8.2.2p5 on HPUX for the past 2 days with
no luck.  Unfortunately the archives haven't helped me either.  I'm
hoping someone can set me straight....I feel like I'm spinning my 
wheels here.

Thanks in advance for taking the time to help me out.

On HPUX11 with the following Makefile.set

'CC=gcc -ansi -fPIC'
'CDEBUG=-O'
'DESTBIN=/usr/bin'
'DESTSBIN=/usr/sbin'
'DESTEXEC=/usr/sbin'
'DESTMAN=/usr/share/man'
'DESTHELP=/usr/lib'
'DESTETC=/etc'
'DESTRUN=/var/run'
'LDS=:'
'LEX=flex'
'YACC=bison -y -d'
'SYSLIBS=-ll -lnsl'
'INSTALL=install'
'MANDIR=man'
'MANROFF=man'
'CATEXT=$$N'
'PS=ps -p'
'RANLIB=ranlib'

I end up with the following:

gcc -ansi -fPIC  -O -I../../port/hpux10/include -I../../include  -c 
addr.c
gcc -ansi -fPIC -O   -o addr addr.o \
        ../../lib/libbind.a -ll -lnsl
collect2: ld returned 1 exit status
/bin/ld: Can't find library for -lnsl
make[2]: *** [addr] Error 1
make[2]: Leaving directory 
`/tmp_mnt/home/cs/admin/hpux11/src/bind_8.2/src/bin/addr'
make[1]: *** [addr] Error 2
make[1]: Leaving directory 
`/tmp_mnt/home/cs/admin/hpux11/src/bind_8.2/src/bin'
make: *** [all] Error 

Without -lnsl I get massive parse errors like the example below:

../../include/arpa/nameser.h:117: parse error before `*'
../../include/arpa/nameser.h:119: parse error before `*'
../../include/arpa/nameser.h:119: warning: data definition has no type 
or storage class
../../include/arpa/nameser.h:122: parse error before `*'
../../include/arpa/nameser.h:122: warning: data definition has no type 
or storage class
../../include/arpa/nameser.h:123: parse error before `}'
../../include/arpa/nameser.h:123: warning: data definition has no type 
or storage class
../../include/arpa/nameser.h:149: warning: no semicolon at end of 
struct or union
../../include/arpa/nameser.h:149: parse error before `*'
../../include/arpa/nameser.h:150: warning: data definition has no type 
or storage class
../../include/arpa/nameser.h:505: parse error before `__ns_get16'
../../include/arpa/nameser.h:505: parse error before `*'
../../include/arpa/nameser.h:505: warning: data definition has no type 
or storage class


HPUX10.20 with the same Makefile.set as above, yields:

gcc -ansi -fPIC  -O -I../../port/hpux10/include -I../../include  -c 
addr.c
gcc -ansi -fPIC -O   -o addr addr.o \
        ../../lib/libbind.a -ll -lnsl
collect2: ld returned 1 exit status
/bin/ld: Can't find library for -lnsl
make[2]: *** [addr] Error 1
make[2]: Leaving directory 
`/tmp_mnt/home/cs/admin/hpux11/src/bind_8.2/src/bin/addr'
make[1]: *** [addr] Error 2
make[1]: Leaving directory 
`/tmp_mnt/home/cs/admin/hpux11/src/bind_8.2/src/bin'
make: *** [all] Error 2

If I don't use the -lnsl for the HPUX install, it seems to compile
fine but during a make install I get:

        /usr/local/bin/gcc -ansi -fPIC -O   -o named db_dump.o 
db_load.o db_lookup.o db_save.o db_update.o  db_glue.o db_ixfr.o 
db_sec.o db_tsig.o  ns_parser.o ns_lexer.o ns_parseutil.o ns_ctl.o  
ns_forw.o ns_init.o ns_main.o ns_maint.o ns_req.o  ns_resp.o 
ns_stats.o ns_ncache.o ns_xfr.o ns_glue.o  ns_udp.o ns_config.o 
ns_update.o ns_ixfr.o ns_signal.o  ns_sort.o ns_notify.o \
                tmp_version.o ../../lib/libbind.a -ll
collect2: ld returned 1 exit status
/usr/ccs/bin/ld: Unsatisfied symbols:
   yp_first (code)
   yp_match (code)
   yp_next (code)
   yp_get_default_domain (code)
*** Error exit code 1

Stop.
/home/cs/admin/hpux11/src/bind_8.2/src/bin/named-xfer
        /usr/local/bin/gcc -ansi -fPIC -O   -o named-xfer named-xfer.o 
../named/db_glue.o ../named/ns_glue.o ../named/tmp_version.o \
                ../../lib/libbind.a -ll
collect2: ld returned 1 exit status
/usr/ccs/bin/ld: Unsatisfied symbols:
   yp_first (code)
   yp_match (code)
   yp_next (code)
   yp_get_default_domain (code)
*** Error exit code 1

Stop.

----
Jeff Newton
Security Analyst
PMC-Sierra Inc.




More information about the bind-users mailing list