From owner-freebsd-ppc@FreeBSD.ORG Fri Jan 26 15:42:31 2007 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E654016A403; Fri, 26 Jan 2007 15:42:31 +0000 (UTC) (envelope-from sepotvin@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.freebsd.org (Postfix) with ESMTP id C168C13C483; Fri, 26 Jan 2007 15:42:31 +0000 (UTC) (envelope-from sepotvin@videotron.ca) Received: from [10.0.0.136] ([67.70.237.74]) by VL-MH-MR002.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTPA id <0JCH008G6CUGJJ90@VL-MH-MR002.ip.videotron.ca>; Fri, 26 Jan 2007 09:42:18 -0500 (EST) Date: Fri, 26 Jan 2007 09:42:19 -0500 From: "Stephane E. Potvin" In-reply-to: <45B9637E.1020900@freebsd.org> To: Peter Grehan Message-id: <45BA134B.9080608@videotron.ca> Organization: TelcoBridges Inc. MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT References: <45B9637E.1020900@freebsd.org> User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Cc: freebsd-ppc@freebsd.org Subject: Re: xorg-server build hack X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2007 15:42:32 -0000 Hi Peter, I have a local patchset that I'm currently working on that add support for libgcc_s (shared libgcc) which might fix this problem. I have not tested it on powerpc but at least it's compiling (survives a make universe). If you want to give it a try just tell me and I'll send it to you. Regards Steph Peter Grehan wrote: > I built the xorg-server port and had the same issue as has been reported > by a number of people; > > "dlopen: /usr/X11R6/lib/modules/libfb.so: Unsupported relocation type 6 > in non-PLT relocations" > > Turns out this is due to having the Xorg modules statically linking > against libgcc, which contains non-PIC relocations. Also, libgcc may not > be being built correctly since I don't think it should end up having any > unresolved functions, even within itself. > > Regardless, I manually fixed the problem by dropping down into the Xorg > build area for libfb.so > > cd work/xc/programs/Xserver/fb > > editing Makefile to change libgcc to libgcc_pic: > > POSTNOSTDLIB = -Wl,-Bstatic -lgcc_pic -Wl,-Bdynamic > > forcing a rebuild by deleting libfb.so > > rm libfb.so ; gmake > > and then copying the newly built libfb.so to /usr/X11R6/lib/modules/ > > The Radeon driver still isn't working but at least there's snow on the > screen :) > > later, > > Peter. > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org"