xorg-server build hack

Stephane E. Potvin sepotvin at videotron.ca
Fri Jan 26 15:42:32 UTC 2007


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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ppc
> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe at freebsd.org"



More information about the freebsd-ppc mailing list