HP-UX 10.20 compile

dharris at kcp.com dharris at kcp.com
Wed Dec 1 22:47:08 UTC 1999



Thanks to all who replied, even those who were underwhelmed by the
question.  Changing -fpic to -fPIC appears to have done the job.  I have
many newly-built files and 'make install' seems to have worked.  'named' is
running and appears to serve clients.

In the spirit of helping the community I present the results of my BIND
8.2.2-P5 build for HP-UX 10.20

Had to change src/port/hpux10/Makefile.get.gcc to remove the "-ansi -fpic"
flags and replace them with "-fPIC".
The "-ansi" had to go because otherwise the make bled all kinds of syntax
errors like "no ; at end of struct".
The "-fpic" replacement removed the ld errors reported in the origination
of this thread.

Changed (maybe didn't have to) the "-d" flag on bison to "--yacc
--defines".
This was suggested by an item posted last month.

Questions filed into the "nice to know but don't need the answers to
proceed" are:
Is there a cleaner way to use the Makefile.set.gcc other than renaming it
to Makefile.set?
Why did the "-ansi" flag have to go - is this an HPUX artifact?
Why doesn't the crew at hpux.cs.utah.edu have a pre-built BIND, just like
the pre-built yacc, gcc, flex, and binutils?

Thanks again.

                    Delmer




Mark_Andrews at iengines.com on 11/30/99 09:07:19 PM
                                                              
                                                              
                                                              
 To:      dharris at bagman.kcp.com                              
                                                              
 cc:      bind-users at isc.org                                  
                                                              
                                                              
                                                              
 Subject: Re: HP-UX 10.20 compile                             
                                                              






     We have had feedback that we need to use -fPIC instead of -fpic.
     Below may a symptom of that.  I don't have access to a HPUX 10.20
     machine to check.

     From the gcc man page:
     Linker Options
          -llibrary -nostartfiles -nostdlib -static -shared
          -symbolic -Xlinker option -Wl,option -u symbol

     Mark
>
>
> I have patched HP-UX 10.20 with the referenced libc, sed, and ld patches.
> I have installed the hpux.cs.utah.edu HP-UX depot versions of gcc, flex,
> bison, and binutils.  I have downloaded the 8.2.2-P5 package from
isc.org.
> I figured out (finally) that I needed "CC=gcc -fpic" and "YACC=bison
--yacc
> --defines" in the Makefile.set in the src/port/hpux10 path.  I defined
the
> PATH to allow access to gcc, flex, bison, and binutils.  Everything
looked
> so good until the
>
> "gcc -fpic -O -o named ..."
>
> pops up, followed shortly by
>
> "/usr/ccs/bin/ld: Data Linkage Table (+z) overflow in file db_dump.o -
use
> +Z option to recompile"
>
> I haven't seen this problem in the last month of the news group.  Would
> someone please tell me something to do which will allow me to compile and
> load the BIND 8.2.2-P5 package successfully on an HP-UX 10.20 system?  I
am
> sure there is some way to tell ld to use the +Z option, but the only way
I
> know (export LDOPTS=+Z) causes other errors.  Thanks in advance.
>
>                     Delmer D. Harris
>
>
>
--
Mark Andrews, Internet Engines Inc. / Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at iengines.com





More information about the bind-users mailing list