HP-UX 10.20 compile

G. Roderick Singleton gsingleton at home.com
Wed Dec 1 04:08:00 UTC 1999


Mark_Andrews at iengines.com wrote:
> 
>         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

For gcc-2.9.5 the manpage states:

     -fpic
          If  supported  for  the   target   machines,   generate
          position-independent code, suitable for use in a shared
          library.

     -fPIC
          If supported for the  target  machine,  emit  position-
          independent code, suitable for dynamic linking, even if
          branches need large displacements.

I expect mark is correct that -FPIC is the better choice.
-- 
________________________________________________________________________________
G. Roderick Singleton, <gsingleton at home.com> PATH tech,
71 Underhill Drive, Unit 159, Toronto, ON  M3A 2J8
Voice : 416-452-4583 Fax: 416-452-0036 Toll Free: 1-800-354-PATH
________________________________________________________________________________

*** Notice To Bulk Emailers: Attention!  Pursuant to US Code, Title 47,
Chapter 5, Subchapter II, 227, any & all unsolicited commercial e-mail
sent to this address is subject to a download and archival fee in the
amount of the $1500 US and copies will be forwarded to domain
administrators.  Emailing denotes acceptance of said terms!


More information about the bind-users mailing list