From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.back-rdu.redhat.com (8.11.6/8.11.6) with ESMTP id h7GKRFN29367 for ; Sat, 16 Aug 2003 16:27:15 -0400 Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id h7GKSuj12117 for axp-list@listman.back-rdu.redhat.com; Sat, 16 Aug 2003 16:28:56 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id h7GKSts12111 for ; Sat, 16 Aug 2003 16:28:55 -0400 Received: from laptopserver.gatworks.com (pool-151-205-109-143.ny325.east.verizon.net [151.205.109.143]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id h7GKSrt11228 for ; Sat, 16 Aug 2003 16:28:55 -0400 Received: (qmail 2878 invoked from network); 16 Aug 2003 20:37:22 -0000 Received: from unknown (HELO gatworks.com) (127.0.0.1) by laptopserver.gatworks.com with SMTP; 16 Aug 2003 20:37:22 -0000 Message-ID: <3F3E95EB.6000904@gatworks.com> Date: Sat, 16 Aug 2003 16:36:59 -0400 From: Uncle George User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830 X-Accept-Language: en-us, en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: gp-relative relocation against dynamic symbol SwGlobalDocShell::pObjectFactory References: <3F3DE4CA.80304@gatworks.com> <200308161215.52948.kelledin+AXP@skarpsey.dyndns.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.13 Precedence: junk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: 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. > > >