🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42104

Position Independent Code - Help

#42104
From: Ray E. Drake
Date: Thu, 11 Jan 1996 00:00
25 lines
1456 bytes
Does anyone know if the -fpic and -fPIC options in gcc 2.6.3 are
supported for an HP 9000 running HP-UX 9.04. I'm trying to compile
perl 5.002 beta to use GDBM. The compile dies with the following 
message:

        Making GDBM_File (dynamic)
make[1]: Entering directory
`/usr2/gnu/builds/perl5.002beta1/ext/GDBM_File'
make[1]: Leaving directory 
`/usr2/gnu/builds/perl5.002beta1/ext/GDBM_File'
make[1]: Entering directory 
`/usr2/gnu/builds/perl5.002beta1/ext/GDBM_File'
LD_RUN_PATH="/usr2/gnu/lib" ld -o 
../../lib/auto/GDBM_File/GDBM_File.none -b -L/
usr/local/lib -L/usr2/gnu/lib GDBM_File.o   -L/usr/local/lib -lgdbm
/bin/ld: DP-Relative Code in file /usr2/gnu/lib/libgdbm.a(gdbmopen.o) - 
Shared Library must be Position-Independent
collect2: ld returned 1 exit status

Any help would be greatly appreciated. Thanks in advance.

-- 
Ray E. Drake
Software Analyst/Programmer/Admin for COLSA Corp.
Supporting WebVantage, a provider of WWW solutions for Gov. agencies.
Technical Details
Message-ID: <30F553EC.5F4C@redstone.army.mil>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,848b1f5762aca46a,start
X-Google-Attributes: gid11318c,public
From: "Ray E. Drake" <rdrake@redstone.army.mil>
Subject: Position Independent Code - Help
Date: 1996/01/11
Message-ID: <30F553EC.5F4C@redstone.army.mil>
X-Deja-AN: 135159555
content-type: text/plain; charset=us-ascii
organization: COLSA CORP
mime-version: 1.0
newsgroups: gnu.gcc.help
x-mailer: Mozilla 2.0b5 (Win95; I)