BIND 9 configuration Problems on HP UX

Bill Larson wllarso at swcp.com
Fri Mar 31 00:49:21 UTC 2006


On Mar 30, 2006, at 4:51 AM, narendar reddy wrote:

> I am attaching the outputs of my
> ./configure
> make commands and my Makefile in /usr/local/src/bind-9.3.1 directory.
> Initially i installed Bind9.3.1 on HP UX system ( say some X).
> Now i am getting installation problems on this same sytem X only. So 
> there
> is no need to worry about compiler or root account problems because on 
> this
> system only i installed previously with these (same compiler, with root
> account only) only.

The list strips off attachments, but I received the copy that you sent 
directly to me.

Your list of the output from "make" shows:

> making all in /usr/local/src/bind-9.3.1/lib/isccc/include/isccc
> 	  cc -Ae -z  -g  -I/usr/local/src/bind-9.3.1 -I. 
> -I/usr/local/src/bind-9.3.1/lib/dns/include  -I../../lib/dns/include 
> -I/usr/local/src/bind-9.3.1/lib/isc/include  -I../../lib/isc  
> -I../../lib/isc/include  -I../../lib/isc/unix/include  
> -I../../lib/isc/pthreads/include 
> -I/usr/local/src/bind-9.3.1/lib/isccc/include  
> -I../../lib/isccc/include   -D_REENTRANT  -D_XOPEN_SOURCE_EXTENDED   
> +w1 +W 474,530  -c alist.c
> 	  cc -Ae -z  -g  -I/usr/local/src/bind-9.3.1 -I. 
> -I/usr/local/src/bind-9.3.1/lib/dns/include  -I../../lib/dns/include 
> -I/usr/local/src/bind-9.3.1/lib/isc/include  -I../../lib/isc  
> -I../../lib/isc/include  -I../../lib/isc/unix/include  
> -I../../lib/isc/pthreads/include 
> -I/usr/local/src/bind-9.3.1/lib/isccc/include  
> -I../../lib/isccc/include   -D_REENTRANT  -D_XOPEN_SOURCE_EXTENDED   
> +w1 +W 474,530  -c cc.c
> 	  cc -Ae -z  -g  -I/usr/local/src/bind-9.3.1 -I. 
> -I/usr/local/src/bind-9.3.1/lib/dns/include  -I../../lib/dns/include 
> -I/usr/local/src/bind-9.3.1/lib/isc/include  -I../../lib/isc  
> -I../../lib/isc/include  -I../../lib/isc/unix/include  
> -I../../lib/isc/pthreads/include 
> -I/usr/local/src/bind-9.3.1/lib/isccc/include  
> -I../../lib/isccc/include   -D_REENTRANT  -D_XOPEN_SOURCE_EXTENDED   
> +w1 +W 474,530  -c ccmsg.c
> 	  cc -Ae -z  -g  -I/usr/local/src/bind-9.3.1 -I. 
> -I/usr/local/src/bind-9.3.1/lib/dns/include  -I../../lib/dns/include 
> -I/usr/local/src/bind-9.3.1/lib/isc/include  -I../../lib/isc  
> -I../../lib/isc/include  -I../../lib/isc/unix/include  
> -I../../lib/isc/pthreads/include 
> -I/usr/local/src/bind-9.3.1/lib/isccc/include  
> -I../../lib/isccc/include   -D_REENTRANT  -D_XOPEN_SOURCE_EXTENDED   
> +w1 +W 474,530  -c sexpr.c
> 	/usr/bin/ar cruv libisccc.a alist.o base64.o cc.o ccmsg.o  lib.o  
> result.o sexpr.o symtab.o version.o
> a - alist.o
> a - cc.o
> a - ccmsg.o
> a - sexpr.o
> *** Error exit code 5
> *** Error exit code 1
> *** Error exit code 1

So, in lib/isccc, you successfully build alist.c, cc.c, ccmsg.c, and 
sexpr.c.  There should also be alist.o, cc.o, ccmsg.o, and sexpr.o 
files in this directory but these were not found when the "ar" command 
was run.  Maybe they were not built maybe because the associated ".c" 
files couldn't be found in this directory.  Why weren't these files 
built?  Do you have the files "alist.c", "cc.c", "ccmsg.c", and 
"sexpr.c" in this directory?  If not, the "make" command will not 
compile them and this would explain your problem.

Again, download a new copy of the BIND-9.3.1 sources and try the build 
again.  It appears that you do not have all of the necessary files in 
your source tree, so humor me and start over again from the ISC 
sources.

Now, a couple of questions.  What C-compiler are you using?  The output 
from "make" simply says "cc".  The output from "configure" doesn't make 
this clear to me either.  If the cc compiler is the bundled compiler 
that comes with HP-UX to build the kernel, then things won't work.

 From memories long ago when I was working with HP-UX, I think that if 
you run "which cc" you should get a cc that is in /opt and not /usr/bin 
if you are using the HP ANSI-C compiler.  The /usr/bin/cc compiler is 
the one that is only used for building the kernel.  As Rick Jones said, 
you need an ANSI-C compiler.  As the README file says, compiling BIND 
is only supported with gcc only if it is the "vendor's usual compiler". 
  If you have an ANSI-C compiler in an /opt directory but are using the 
one in /usr/bin, then you have a problem with your PATH statement.

Also, from the FAQ:

	Q:	I'm trying to compile BIND 9, and "make" is failing due
		to files not being found.  Why?

	A: 	Using a parallel or distributed "make" to build BIND 9 is
		not supported, and doesn't work.  If you are using one of
		these, use normal make or gmake instead.

This may be your situation.  Is it possible that you are using a 
parallel make rather than a normal one?  Again, "which make" will tell 
you a lot.

I think that you need to look into your situation a little bit more.  
Look into why the files that should be built with "make" aren't.  This 
is something unusual with your situation, and I suspect that it doesn't 
impact the rest of the BIND community even those working under HP-UX.

Bill Larson



More information about the bind-users mailing list