Bug 682

Summary: Local build of blender/blender-freeworld fails with nvidia-185.18.14-2
Product: Fedora Reporter: Jochen Schmitt <Jochen>
Component: xorg-x11-drv-nvidiaAssignee: Nicolas Chauvet <kwizart>
Status: RESOLVED FIXED    
Severity: normal CC: fedora, s.adam
Priority: P5    
Version: 11   
Hardware: All   
OS: GNU/Linux   
namespace:

Description Jochen Schmitt 2009-06-24 17:54:57 CEST
when I try to build blender/blender-freeworld with the most current nvidia driver, I will get the following error messages:

/usr/lib64/libGL.so: undefined reference to `_nv000181gl'
/usr/lib64/libGL.so: undefined reference to `_nv000531gl'
/usr/lib64/libGL.so: undefined reference to `_nv000707gl'
/usr/lib64/libGL.so: undefined reference to `_nv001283gl'
/usr/lib64/libGL.so: undefined reference to `_nv001246gl'
/usr/lib64/libGL.so: undefined reference to `_nv000683gl'
/usr/lib64/libGL.so: undefined reference to `_nv000278gl'
/usr/lib64/libGL.so: undefined reference to `_nv000648gl'
/usr/lib64/libGL.so: undefined reference to `_nv000805gl'
/usr/lib64/libGL.so: undefined reference to `_nv000551gl'
/usr/lib64/libGL.so: undefined reference to `_nv000166gl'
/usr/lib64/libGL.so: undefined reference to `_nv000516gl'
/usr/lib64/libGL.so: undefined reference to `_nv000780gl'
/usr/lib64/libGL.so: undefined reference to `_nv001069gl'
/usr/lib64/libGL.so: undefined reference to `_nv000807gl'
collect2: ld returned 1 exit status
scons: *** [build/linux2/bin/blender] Error 1
scons: building terminated because of errors.
Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.7kErAs (%build)

The whole build log is attached for this bug.
Comment 1 Nicolas Chauvet 2009-06-25 17:23:20 CEST
The libGL version you are quoting is the mesa-GL one along with nvidia glu.h header use. (so there is a vendor missmatch).
If you want to link the nvidia libGL library you will needs -L/usr/lib64/nvidia at link time. (actually you should have done -I/usr/include/nvidia to have nvidia gl.h specifics header, so your installation is broken)

Later we will introduce such support with a dedicated gl.pc (pkgconfig support to link to proprietary driver).

Of course, we will not be allowed to redistribute publicly GPLv2+ software linked with proprietary libraries.
But improvement over end-user rebuilt for their own usage could be possible. (nevertheless blender built with mesa-libGL should work well)

Comment 2 Jochen Schmitt 2009-06-25 18:20:21 CEST
Thank you for your comments. I have found some old junk from nvidia-177 and broek symlinks in /usr/lib64. After I have deleted this stuff and reinstalled the mesa packages, all works fine.