BIND 9 configuration Problems on HP UX

Rick Jones rick.jones2 at hp.com
Fri Mar 31 01:48:44 UTC 2006


Bill Larson <wllarso at swcp.com> wrote:
> 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.

Alas, I've no systems without the HP ANSI C compiler or I'd be able to
check if the bundled compiler complained about the -Ae option.

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

Well, on my 11.11 system:

$ which cc
/bin/cc
$ what /usr/bin/cc
/usr/bin/cc:
        $Revision: 92453-07 linker linker crt0.o B.11.47 051104 $
        LINT B.11.X.34412-34415.GP CXREF B.11.X.34412-34415.GP
        HP92453-01 B.11.X.34412-34415.GP HP C Compiler
         $ PATCH/11.00:PHCO_27774  Oct  3 2002 09:45:59 $ 
$ what /bin/cc
/bin/cc:
        $Revision: 92453-07 linker linker crt0.o B.11.47 051104 $
        LINT B.11.X.34412-34415.GP CXREF B.11.X.34412-34415.GP
        HP92453-01 B.11.X.34412-34415.GP HP C Compiler
         $ PATCH/11.00:PHCO_27774  Oct  3 2002 09:45:59 $ 

That's the unbundled stuff.  In my case, the bundled compiler seems to
be /usr/ccs/bin/cc:

$ what /usr/ccs/bin/cc
/usr/ccs/bin/cc:
        HP92453-01 A.11.01.21 HP C (Bundled) Compiler
         $   Sep  8 2000 23:13:51 $ 

# find / -name cc
/usr/bin/cc
/usr/ccs/bin/cc
/opt/ansic/bin/cc
# ll /usr/bin/cc
lr-xr-xr-t   1 root  sys 17 May  3  2004 /usr/bin/cc -> /opt/ansic/bin/cc

WRT doing "which cc" can take that one step further and do a "what
`which cc`" (mind the type of single quote) and it will be quite
explicit as to which compiler it happens to be.

rick jones

So, I lied about not being able to try the -Ae option against the
bundled compiler :)

$ /usr/ccs/bin/cc -Ae
(Bundled) cc: warning 480: The -A option is available only with the
C/ANSI C product; ignored.

And just to further "clarify" things - clarify as in muddy :)

# uname -a
HP-UX linger B.11.23 U ia64 4203217935 unlimited-user license
# find / -name cc
/var/adm/sw/save/PHSS_34046/C/opt/ansic/bin/cc
/tmp/patches/PHSS_34046/C/opt/ansic/bin/cc
/usr/bin/cc
/usr/ccs/bin/cc
/opt/ansic/bin/cc
# ll /usr/bin/cc
lr-xr-xr-t   1 root       sys             17 Jan 13  2005 /usr/bin/cc -> /opt/ansic/bin/cc
# ll /bin/cc
lr-xr-xr-t   1 root       sys             17 Jan 13  2005 /bin/cc -> /opt/ansic/bin/cc
# which cc
/usr/bin/cc
# cc -Ae
# /usr/ccs/bin/cc -Ae
(Bundled) cc: warning 922: "-Ae" is unsupported in the bundled
compiler, ignored.
# /usr/ccs/bin/cc -O 
(Bundled) cc: warning 922: "-O" is unsupported in the bundled
compiler, ignored.
# what /usr/ccs/bin/cc
/usr/ccs/bin/cc:
        HP aC++/C for Itanium(R)-based systems B3910B A.05.50 [May 15 2003]
# what /usr/bin/cc
/usr/bin/cc:
        HP aC++/C for Integrity Servers B3910B A.06.06 [Nov 7 2005]

It seems the bundled compiler on Itanium doesn't say "bundled" in its
what string, but does in its error message about -Ae and -O

-- 
Wisdom Teeth are impacted, people are affected by the effects of events.
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...



More information about the bind-users mailing list