nvidia drivers
Simon 'corecode' Schubert
corecode at fs.ei.tum.de
Sat Nov 22 01:11:52 PST 2008
Petr Janda wrote:
Trying to compile billiardgl to try it out I get this error:
/usr/libexec/binutils217/elf/ld: warning: libXext.so.6, needed
by /usr/obj/pkgsrc/games/billardgl/work/.buildlink/lib/libGL.so, may conflict
with libXext.so.6.4.0
/usr/libexec/binutils217/elf/ld: warning: libX11.so.6, needed
by /usr/obj/pkgsrc/games/billardgl/work/.buildlink/lib/libGL.so, may conflict
with libX11.so.6.2.0
/usr/libexec/binutils217/elf/ld: warning: libGL.so.1.0.5, needed
by /usr/obj/pkgsrc/games/billardgl/work/.buildlink/lib/libGLU.so, may
conflict with libGL.so.1
/usr/libexec/binutils217/elf/ld: warning: libGL.so.w, needed
by /usr/pkg/lib/libGL.so.1.0.5, may conflict with libGL.so.1
/usr/pkg/lib/libGLcore.so.1: undefined reference to `___toupper'
/usr/obj/pkgsrc/games/billardgl/work/.buildlink/lib/libGL.so: undefined
reference to `__error'
/usr/pkg/lib/libGLcore.so.1: undefined reference to `___runetype'
/usr/pkg/lib/libGLcore.so.1: undefined reference to `___tolower'
Whats happening here and how to fix it? I seem to be getting this on every
OpenGL game that i try to compile.
Yah, that's tricky. I solved it the following way:
- install mesa
- install nvidia drivers+libs
- have /usr/pkg/lib/libGL.so point to /usr/pkg/lib/libGL.so.1.0.5, which
should be from mesa. It is important that this lib has the SONAME set to
libGL.so.1 (you can check with objdump -x)
now compiling should link to the mesa lib, but then libGL.so.1 will be
used by the runtime linker.
But looking at your compiler output, libGLU depends on libGL.so.1.0.5,
which is bad. You will need
<http://chlamydia.fs.ei.tum.de/~corecode/unsorted/libtool-dragonfly.diff>
this patch as well, I believe (and recompile Mesa+libs depending on Mesa).
Not sure whether I have submitted this to pkgsrc/upstream. Maybe somebody
could do that? :)
cheers
simon
--
<3 the future +++ RENT this banner advert +++ ASCII Ribbon /"\
rock the past +++ space for low â¬â¬â¬ NOW!1 +++ Campaign \ /
Party Enjoy Relax | http://dragonflybsd.org Against HTML \
Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
More information about the Kernel
mailing list