Bug 68109

Summary: x11-toolkits/plib: unbreak TORCS on amd64.
Product: Ports & Packages Reporter: Thierry Thomas <thierry>
Component: Individual Port(s)Assignee: Dag-Erling Smørgrav <des>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
plib.diff none

Description Thierry Thomas 2004-06-19 13:20:23 UTC
	games/torcs is marked broken on amd64 because it fails with the
	following error:

	c++ -shared -o simuv2.so simu.o simuitf.o car.o aero.o engine.o axle.o steer.o susp.o brake.o wheel.o transmission.o differential.o collide.o categories.o -L/tmp/a/ports/games/torcs/work/torcs-1.2.2/export/lib -L/usr/local/lib -L/usr/X11R6/lib -L/usr/lib   -lplibsg -lplibul -L/tmp/a/ports/games/torcs/work/torcs-1.2.2/export/lib -lsolid
	/usr/bin/ld: /usr/X11R6/lib/libplibsg.a(sg.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
	/usr/X11R6/lib/libplibsg.a: could not read symbols: Bad value
	gmake[4]: *** [simuv2.so] Error 1

	Even if the plib libraries are built statically, TORCS use them to build
	dynamic libraries, and it must be compiled with -fPIC.

Fix: Please apply the following patch (or anything similar):
How-To-Repeat: 	See logs on bento / pointyhat:
	<http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.5.2004061001/torcs-1.2.2_1.log>
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2004-06-19 13:24:24 UTC
Responsible Changed
From-To: freebsd-ports-bugs->des


Over to the maintainer. 

Please back Responsible: to me.
Comment 2 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2004-06-22 10:09:47 UTC
State Changed
From-To: open->closed

Fixed, thanks.