From owner-freebsd-ppc@FreeBSD.ORG Fri Jan 26 03:25:13 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 807D716A9F3 for ; Fri, 26 Jan 2007 03:25:13 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.freebsd.org (Postfix) with ESMTP id 1BDBF13C4B6 for ; Fri, 26 Jan 2007 03:25:10 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from [10.33.24.110] (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.5.7-GR) with ESMTP id CMF35752 (AUTH peterg@ptree32.com.au); Fri, 26 Jan 2007 12:10:49 +1000 (EST) Message-ID: <45B9637E.1020900@freebsd.org> Date: Thu, 25 Jan 2007 18:12:14 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8b) Gecko/20051014 MIME-Version: 1.0 To: freebsd-ppc@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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 03:25:13 -0000 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.