Can't compile 8.2.2p5 on HPUX - Please Help

Mark.Andrews at nominum.com Mark.Andrews at nominum.com
Tue Jan 18 00:39:48 UTC 2000


> 
> Its already installed.  Can you think of a reason why the compile 
> wouldn't find it?

	A botched gcc build.  "gcc -v -ansi -fPIC" will report how ld
	is being called.

	You could also manually expand the -lnsl.

	Mark

> The makefile settings I'm using (below) are pretty
> simplistic.
> 
> Anybody out there willing to share their successful src tree for a
> HPUX11 or HPUX10 compile?
> 
> Cheers,
> 
> > 	The nsl library is part of the operating system.  Install
> > 	it from CD.
> > 
> > 1 hp <marka> % ls -l /usr/lib/libnsl*
> > -r-xr-xr-x   1 bin        bin         667648 Nov  6  1997 
> /usr/lib/libnsl.1
> > -r--r--r--   1 bin        bin         803956 Nov  6  1997 
> /usr/lib/libnsl.a
> > lrwxr-xr-x   1 root       sys             17 Mar 30  1998 
> /usr/lib/libnsl.sl -> /usr/lib/libnsl.1
> > -r-xr-xr-x   1 bin        bin          98304 Nov  6  1997 
> /usr/lib/libnsl_s.1
> > -r-xr-xr-x   1 bin        bin         122880 Mar 15  1999 
> /usr/lib/libnsl_s.2
> > -r--r--r--   1 bin        bin         161512 Mar 15  1999 
> /usr/lib/libnsl_s.a
> > lrwxr-xr-x   1 root       sys             19 Mar 30  1998 
> /usr/lib/libnsl_s.sl -> /usr/lib/libnsl_s.2
> > 2 hp <marka> % 
> > 
> > 	Mark
> > > 
> > > 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.
> > > 
> > > 
> > > 
> > --
> > Mark Andrews, Nominum Inc. / Internet Software Consortium
> > 1 Seymour St., Dundas Valley, NSW 2117, Australia
> > PHONE: +61 2 9871 4742                 INTERNET: 
> Mark.Andrews at nominum.com
> > 
> 
> ----
> Jeff Newton
> Security Analyst
> PMC-Sierra Inc.
> 
--
Mark Andrews, Nominum Inc. / Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews at nominum.com



More information about the bind-users mailing list