octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44467] libGL error: failed to load driver: sw


From: ederag
Subject: [Octave-bug-tracker] [bug #44467] libGL error: failed to load driver: swrast
Date: Sun, 08 Mar 2015 10:40:26 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0

Follow-up Comment #7, bug #44467 (project octave):

Thanks for your help.

ldd src/.libs/lt-octave-gui | grep libGL
ldd: src/.libs/lt-octave-gui: No such file or directory

Actually
find . -name "lt-*"
yields nothing. Maybe because I did not make install yet ?

chrpath -l ./libinterp/.libs/liboctinterp.so
./libinterp/.libs/liboctinterp.so:
RUNPATH=/usr/local/build/octave-4.0.0-rc1/liboctave/.libs:/usr/local/openblas-mt-gcc4.8.3/lib64:/usr/local/openblas-mt-gcc4.8.3/lib64/octave/4.0.0-rc1

chrpath -l ./liboctave/.libs/liboctave.so
./liboctave/.libs/liboctave.so: RUNPATH=/usr/local/openblas-mt-gcc4.8.3/lib64

But here is the offending /usr/lib64:
chrpath -l ./libgui/.libs/liboctgui.so
./libgui/.libs/liboctgui.so:
RUNPATH=/usr/local/build/octave-4.0.0-rc1/libinterp/.libs:/usr/local/build/octave-4.0.0-rc1/liboctave/.libs:/usr/lib64:/usr/local/openblas-mt-gcc4.8.3/lib64/octave/4.0.0-rc1:/usr/local/openblas-mt-gcc4.8.3/lib64


And indeed in ./libtool there are

sys_lib_search_path_spec="/usr/lib64/gcc/x86_64-suse-linux/4.8 /usr/lib64
/lib64 /usr/x86_64-suse-linux/lib "

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path="-L/usr/local/openblas-mt-gcc4.8.3/lib64
-L/usr/lib64/gcc/x86_64-suse-linux/4.8
-L/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64
-L/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/lib
-L/usr/lib64/gcc/x86_64-suse-linux/4.8/../../.."

compiler_lib_search_path="-L/usr/local/openblas-mt-gcc4.8.3/lib64
-L/usr/lib64/gcc/x86_64-suse-linux/4.8
-L/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64
-L/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/lib
-L/usr/lib64/gcc/x86_64-suse-linux/4.8/../../.."


but why would these add an rpath for some libs and not others ?

searching for lib64, there are plenty of
FLTK_LDFLAGS = -L/usr/lib64 -lfltk_gl -lGL -lfltk
could it be related ?


Trying workarounds
add -L/usr/X11R6/lib64 to the LDFLAGS like
./configure [...] LDFLAGS="-L/usr/X11R6/lib64
-Wl,-rpath,/usr/local/openblas-mt-gcc4.8.3/lib64" [...]
make -j 3
to no avail.

or as rpath, also in the LDFLAGS
./configure [...]
LDFLAGS=-Wl,-rpath,/usr/local/openblas-mt-gcc4.8.3/lib64:/usr/X11R6/lib64
[...]

which doe not work either, because unfortunately these are appended, not
prepended :

chrpath -l ./libgui/.libs/liboctgui.so
./libgui/.libs/liboctgui.so:
RUNPATH=/usr/local/build/octave-4.0.0-rc1/libinterp/.libs:/usr/local/build/octave-4.0.0-rc1/liboctave/.libs:/usr/lib64:/usr/local/openblas-mt-gcc4.8.3/lib64/octave/4.0.0-rc1:/usr/local/openblas-mt-gcc4.8.3/lib64:/usr/X11R6/lib64


Reading your comment again, here is the readelf output now:

readelf -d ./libgui/.libs/liboctgui.so

Dynamic section at offset 0x338f40 contains 44 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [liboctinterp.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [liboctave.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libQtNetwork.so.4]
 0x0000000000000001 (NEEDED)             Shared library: [libQtOpenGL.so.4]
 0x0000000000000001 (NEEDED)             Shared library: [libQtGui.so.4]
 0x0000000000000001 (NEEDED)             Shared library: [libQtCore.so.4]
 0x0000000000000001 (NEEDED)             Shared library:
[libqscintilla2.so.11]
 0x0000000000000001 (NEEDED)             Shared library: [libfontconfig.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libfreetype.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libGL.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libGLU.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libutil.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libgomp.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x000000000000000e (SONAME)             Library soname: [liboctgui.so.0]
 0x000000000000001d (RUNPATH)            Library runpath:
[/usr/local/build/octave-4.0.0-rc1/libinterp/.libs:/usr/local/build/octave-4.0.0-rc1/liboctave/.libs:/usr/lib64:/usr/local/openblas-mt-gcc4.8.3/lib64/octave/4.0.0-rc1:/usr/local/openblas-mt-gcc4.8.3/lib64:/usr/X11R6/lib64]

and of ldd
ldd ./libgui/.libs/liboctgui.so | grep libGL
        libGL.so.1 => /usr/lib64/libGL.so.1 (0x00007f4e1d394000)
        libGLU.so.1 => /usr/lib64/libGLU.so.1 (0x00007f4e1d114000)

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44467>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]