From: Uncle George <gatgul@gatworks.com>
To: axp-list@redhat.com
Subject: Re: gp-relative relocation against dynamic symbol SwGlobalDocShell::pObjectFactory
Date: Sat, 16 Aug 2003 16:36:59 -0400 [thread overview]
Message-ID: <3F3E95EB.6000904@gatworks.com> (raw)
In-Reply-To: 200308161215.52948.kelledin+AXP@skarpsey.dyndns.org
I'm reasonably sure that you might need PIC code to create a dynamic
library, from static &
other dynamic libraries, I'm not so sure thats true if you want an
executable, derived from static & dynamic libraries.
But you are quite correct, the libswlib.a was not created with -fPIC (
of -fpic) . I dont think any other Port of OpenOffice uses -fPIC at this
stage. Nor was -fpic used when I compiled using the RH7.2/alpha/c++3
distributed compiler ( I think it was the same with the RH8.0/Intel/c++
(sources built on Alpha )) . I'll have to wait some hours again to see
what comes out of the build oven.
/gat
As a side note, I was able to overcome the "gp-relative relocation
against dynamic symbol" by fixing the source. Then the linker barfed at
not having enough core. Oh well.
Kelledin wrote:
>On Saturday 16 August 2003 03:01 am, Uncle George wrote:
>
>
>>What does this statement mean? I cant tell if its an error or
>>not
>>
>>/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.2.2/../..
>>/../../alphaev56-unknown-linux-gnu/bin/ld:
>>/mnt/sdb4/redhat/BUILD/oo_1.0.2_src/solver/641/unxlnga.pro/lib
>>/libswlib.a(swlib.o): gp-relative relocation against dynamic
>>symbol
>>SwGlobalDocShell::pObjectFactory
>>/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.2.2/../..
>>/../../alphaev56-unknown-linux-gnu/bin/ld:
>>/mnt/sdb4/redhat/BUILD/oo_1.0.2_src/solver/641/unxlnga.pro/lib
>>/libswlib.a(swlib.o): gp-relative relocation against dynamic
>>symbol
>>SwGlobalDocShell::pObjectFactory
>>/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.2.2/../..
>>/../../alphaev56-unknown-linux-gnu/bin/ld:
>>/mnt/sdb4/redhat/BUILD/oo_1.0.2_src/solver/641/unxlnga.pro/lib
>>/libswlib.a(swlib.o): gp-relative relocation against dynamic
>>symbol
>>SwGlobalDocShell::pObjectFactory
>>collect2: ld returned 1 exit status
>>
>>
>
>That means libswlib.a wasn't compiled with -fpic or -fPIC. Any
>object file or static library that gets linked to a dynamic
>library needs to be compiled with -fpic or -fPIC on Alpha,
>otherwise you're likely to get the "gp-relative relocation"
>error.
>
>
>
next prev parent reply other threads:[~2003-08-16 20:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-16 8:01 gp-relative relocation against dynamic symbol SwGlobalDocShell::pObjectFactory Uncle George
2003-08-16 17:15 ` Kelledin
2003-08-16 20:36 ` Uncle George [this message]
2003-08-17 0:40 ` Kelledin
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox