From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 7D9D340379 for ; Thu, 14 Nov 2002 16:37:06 -0500 (EST) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id gAELb6g05670 for axp-list@listman.redhat.com; Thu, 14 Nov 2002 16:37:06 -0500 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 gAELb6D05664 for ; Thu, 14 Nov 2002 16:37:06 -0500 Received: from lakemtao08.cox.net (lakemtao08.cox.net [68.1.17.113]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id gAELDkw30477 for ; Thu, 14 Nov 2002 16:13:46 -0500 Received: from ip68-0-126-129.tu.ok.cox.net ([68.0.126.129]) by lakemtao08.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20021114213659.UAOZ16972.lakemtao08.cox.net@ip68-0-126-129.tu.ok.cox.net>; Thu, 14 Nov 2002 15:36:59 -0600 Content-Type: text/plain; charset="iso-8859-1" From: Ted Goodridge To: axp-list@redhat.com, Kelledin Subject: Re: Shared objects+global variables? Date: Thu, 14 Nov 2002 15:37:00 -0600 User-Agent: KMail/1.4.3 References: <200211132121.28796.kelledin+AXP@skarpsey.dyndns.org> <200211140656.56074.kelledin+AXP@skarpsey.dyndns.org> <200211140711.38600.kelledin+AXP@skarpsey.dyndns.org> In-Reply-To: <200211140711.38600.kelledin+AXP@skarpsey.dyndns.org> MIME-Version: 1.0 Message-Id: <200211141537.00566.tedgoodridgejr@acm.org> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by int-mx1.corp.redhat.com id gAELb6D05664 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.1 Precedence: bulk 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: > > > > ... whenever I try to compile a library that does this, > > > > ld complains about "gp-relative relocations" and refuses > > > > to link. > > > > > > You MUST use -fpic or -fPIC. > > > Ummm. Well... > > It works now. I'm not exactly sure why, but recompiling gcc > seemed to fix the problem. I wish I knew how that happened... So you recompiled GCC with -fPIC (from LFS), then you were able to compile Glib without problems? or is this related to another package? Ted