linux23dragon wrote:
However, I'll put the $LIBRARY_PATH in the /etc/profile
Please believe me.
PS: I'm happy to do more tests for you if you want. I have built 5 complete
LFS and one DIY-Linux systems in the last 3-4 years.
Strange. I'm wondering about your libGL.so symlinks. An invalid
symlink earlier in the library search path would give way to that error.
For instance, if the libs were moved after installation. To demonstrate:
[EMAIL PROTECTED] ttt]# ldconfig -v | grep "GL"
ldconfig: Path `/lib' given more than once
ldconfig: Path `/usr/lib' given more than once
libGLU.so.1 -> libGLU.so.1.3
libGLw.so.1 -> libGLw.so.1.0
libGL.so.1 -> libGL.so.1.2
[EMAIL PROTECTED] ttt]# mv /usr/X11R6/lib/libGL* /opt/lib/
[EMAIL PROTECTED] ttt]# ldconfig -v | grep "GL"
ldconfig: Path `/lib' given more than once
ldconfig: Path `/usr/lib' given more than once
ldconfig: Cannot stat /usr/lib/libGL.so: No such file or directory
libGLU.so.1 -> libGLU.so.1.3
libGLw.so.1 -> libGLw.so.1.0
libGL.so.1 -> libGL.so.1.2
[EMAIL PROTECTED] ttt]# cat > true.c << "EOF"
> #include <stdio.h>
> int main() { return 0; }
> EOF
[EMAIL PROTECTED] ttt]# gcc -lGL -o true true.c
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
[EMAIL PROTECTED] ttt]# export LIBRARY_PATH=/opt/lib:/usr/lib:/lib
[EMAIL PROTECTED] ttt]# gcc -lGL -o true true.c
[EMAIL PROTECTED] ttt]# unset LIBRARY_PATH
[EMAIL PROTECTED] ttt]# gcc -lGL -o true true.c
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
[EMAIL PROTECTED] ttt]# rm /usr/lib/libGL.so
[EMAIL PROTECTED] ttt]# ldconfig -v | grep "GL"
ldconfig: Path `/lib' given more than once
ldconfig: Path `/usr/lib' given more than once
libGLU.so.1 -> libGLU.so.1.3
libGLw.so.1 -> libGLw.so.1.0
libGL.so.1 -> libGL.so.1.2
[EMAIL PROTECTED] ttt]# gcc -lGL -o true true.c
[EMAIL PROTECTED] ttt]# ldd true
linux-gate.so.1 => (0xffffe000)
libGL.so.1 => /opt/lib/libGL.so.1 (0xb7eee000)
libc.so.6 => /lib/libc.so.6 (0xb7dcd000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7dbb000)
libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0xb7db6000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xb7da8000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb7cdd000)
libdl.so.2 => /lib/libdl.so.2 (0xb7cd8000)
/lib/ld-linux.so.2 (0xb7f60000)
[EMAIL PROTECTED] ttt]# ls /opt/lib/
libGL.so libGL.so.1.2 libGLU.so.1 libGLw.so libGLw.so.1.0
libGL.so.1 libGLU.so libGLU.so.1.3 libGLw.so.1
[EMAIL PROTECTED] ttt]# ./true
[EMAIL PROTECTED] ttt]# echo $?
0
[EMAIL PROTECTED] ttt]# exit
exit
[EMAIL PROTECTED] ~]#
Hope that helps track it down.
-- DJ Lucas
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page