graphics/libGL and graphics/libGLU broken with ARCH=i386
Dominic Fandrey
kamikaze at bsdforen.de
Mon Feb 25 11:46:04 UTC 2008
First of all, both ports don't obey my CC/CXX settings (I use ccache).
I'm trying to cross-compile for i386 setting ARCH=i386. Building
graphics/libGL complains about assembler errors. This can be fixed by adding
-m32 to the CFLAGS.
The graphics/libGLU port is a tougher cookie. I have set LOCALBASE to
/usr/local32, however the port shows abominations like
-I/usr/local3232/include while compiling.
I have worked around this by adding -I/usr/local32/include to CFLAGS, but
there are problems I don't know how to solve:
...
mklib: Making FreeBSD shared library: libGLU.so.1
/usr/bin/ld: libutil/error.o: relocation R_X86_64_32S can not be used when
making a shared object; recompile with -fPIC
libutil/error.o: could not read symbols: Bad value
mklib: Installing libGLU.so.1 libGLU.so in ../../../lib
mv: rename libGLU.so.1 to ../../../lib/libGLU.so.1: No such file or directory
gmake[4]: *** [../../../lib/libGLU.so] Error 1
gmake[4]: Leaving directory
`/usr/obj/mobileKamikaze.norad/usr/ports/graphics/libGLU/work/Mesa-7.0.1/src/glu/sgi'
gmake[3]: *** [default] Error 2
gmake[3]: Leaving directory
`/usr/obj/mobileKamikaze.norad/usr/ports/graphics/libGLU/work/Mesa-7.0.1/src/glu/sgi'
gmake[2]: *** [subdirs] Error 1
gmake[2]: Leaving directory
`/usr/obj/mobileKamikaze.norad/usr/ports/graphics/libGLU/work/Mesa-7.0.1/src'
gmake[1]: *** [default] Error 1
gmake[1]: Leaving directory
`/usr/obj/mobileKamikaze.norad/usr/ports/graphics/libGLU/work/Mesa-7.0.1'
gmake: *** [freebsd-dri-x86] Error 2
*** Error code 2
Stop in /usr/ports/graphics/libGLU.
More information about the freebsd-x11
mailing list