ports/68109: x11-toolkits/plib: unbreak TORCS on amd64.

Thierry Thomas thierry at pompo.net
Sat Jun 19 12:20:25 UTC 2004


>Number:         68109
>Category:       ports
>Synopsis:       x11-toolkits/plib: unbreak TORCS on amd64.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 19 12:20:23 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Thierry Thomas
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD graf.pompo.net 4.10-STABLE FreeBSD 4.10-STABLE #0: Sun Jun 6 19:02:53 CEST 2004 thierry at graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF020727 i386


	
>Description:
	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.

>How-To-Repeat:
	See logs on bento / pointyhat:
	<http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.5.2004061001/torcs-1.2.2_1.log>

>Fix:
	Please apply the following patch (or anything similar):

--- plib.diff begins here ---
diff -urN x11-toolkits/plib.orig/Makefile x11-toolkits/plib/Makefile
--- x11-toolkits/plib.orig/Makefile	Tue Jun  1 19:26:23 2004
+++ x11-toolkits/plib/Makefile	Tue Jun  1 21:31:16 2004
@@ -18,7 +18,7 @@
 USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	CC="${CC}" CFLAGS="${CFLAGS}" \
-		CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
+		CXX="${CXX}" CXXFLAGS="${CXXFLAGS} -fPIC" \
 		CPPFLAGS="${PTHREAD_CFLAGS}" \
 		LDFLAGS="${PTHREAD_LIBS}"
 CONFIGURE_ARGS=	--with-GL=${X11BASE} --with-x
--- plib.diff ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list