inkscape: error while loading shared libraries: libinkscape_base.so:

Bug #1586011 reported by Shlomi Fish
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Qantas94Heavy

Bug Description

After building inkscape-0.92pre1.tar.bz2 from src.rpm using an update patch on Mageia Linux v6 x86-64 and installing it under /usr, it gives me:

shlomif@telaviv1:~$ which inkscape
/usr/bin/inkscape
shlomif@telaviv1:~$ inkscape
inkscape: error while loading shared libraries: libinkscape_base.so: cannot open shared object file: No such file or directory
shlomif@telaviv1:~$

Setting LD_LIBRARY_PATH to /usr/lib/inkscape fixes the problem and inkscape appears to start fine. Perhaps a libpath or an rpath are missing.

Revision history for this message
Shlomi Fish (shlomif-gmail) wrote :

This is the patch for the "mgarepo co inkscape" that was used to build the .rpm. The cmake command is:

/usr/bin/cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib64 -DCMAKE_INSTALL_LIBEXECDIR:PATH=/usr/libexec -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-DNDEBUG -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-DNDEBUG -DLIB_SUFFIX=64 -DCMAKE_SKIP_RPATH:BOOL=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON '-DCMAKE_MODULE_LINKER_FLAGS=-Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=OFF

su_v (suv-lp)
tags: added: linux packaging
Revision history for this message
Shlomi Fish (shlomif-gmail) wrote :

Today I tried to do:

+%cmake -DCMAKE_SKIP_RPATH:BOOL=

instead of

+%cmake

and now I'm getting this error instead which is similar and has the same workaround:

shlomif@telaviv1:~$ inkscape
inkscape: error while loading shared libraries: libgdl_LIB.so: cannot open shared object file: No such file or directory
shlomif@telaviv1:~$ export LD_LIBRARY_PATH=^C
shlomif@telaviv1:~$ LD_5~^CBRARY_PATH=/home/shlomif/apps/glibc-git-to-del/lib/ m
ake test
shlomif@telaviv1:~$ export ^C
shlomif@telaviv1:~$ LD_LIBRARY_PATH=/usr/lib/inkscape inkscape

(inkscape:17467): Gtk-WARNING **: Theme directory base/ of theme oxygen has no size field

shlomif@telaviv1:~$

I'm also going to try with setting it to =OFF.

Revision history for this message
Shlomi Fish (shlomif-gmail) wrote :

OK, same problem as comment #2 when doing:

+%cmake -DCMAKE_SKIP_RPATH:BOOL=OFF

Revision history for this message
Shlomi Fish (shlomif-gmail) wrote :

I tried cancelling more flags but to no avail. Then I looked at the output of "strace inkscape" and saw this:

open("/usr/bin/../lib/inkscape/../lib/inkscape/tls/x86_64/libgdl_LIB.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/bin/../lib/inkscape/../lib/inkscape/tls/x86_64", 0x7ffd701aa7f0) = -1 ENOENT (No such file or directory)
open("/usr/bin/../lib/inkscape/../lib/inkscape/tls/libgdl_LIB.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/bin/../lib/inkscape/../lib/inkscape/tls", 0x7ffd701aa7f0) = -1 ENOENT (No such file or directory)
open("/usr/bin/../lib/inkscape/../lib/inkscape/x86_64/libgdl_LIB.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/bin/../lib/inkscape/../lib/inkscape/x86_64", 0x7ffd701aa7f0) = -1 ENOENT (No such file or directory)
open("/usr/bin/../lib/inkscape/../lib/inkscape/libgdl_LIB.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/bin/../lib/inkscape/../lib/inkscape", 0x7ffd701aa7f0) = -1 ENOENT (No such file or directory)
open("/lib64/tls/x86_64/libgdl_LIB.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib64/tls/x86_64", 0x7ffd701aa7f0) = -1 ENOENT (No such file or directory)
open("/lib64/tls/libgdl_LIB.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib64/tls", 0x7ffd701aa7f0) = -1 ENOENT (No such file or directory)
open("/lib64/x86_64/libgdl_LIB.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib64/x86_64", 0x7ffd701aa7f0) = -1 ENOENT (No such file or directory)
open("/lib64/libgdl_LIB.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

Based on this - another workaround for starting /usr/bin/inkscape is to symlink /usr/lib/lib to point to /usr/lib.

Revision history for this message
Shlomi Fish (shlomif-gmail) wrote :

OK, I have some news: by building inkscape inside the .src.rpm with this command, it successfully builds and runs:

/usr/bin/cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr

I'll attach my diff to the Mageia src.rpm checkout soon and I'll continue bisecting.

Revision history for this message
Shlomi Fish (shlomif-gmail) wrote :

The working Mageia src.rpm configuration that runs inkscape fine - not a patch to inkscape itself.

Revision history for this message
Shlomi Fish (shlomif-gmail) wrote :

OK, I was able to reduce the problem to this scenario ( also tested outside of the src.rpm build):

export LDFLAGS=' -Wl,--as-needed -Wl,--enable-new-dtags'
cmake .. -DCMAKE_SKIP_RPATH:BOOL=ON '-DCMAKE_MODULE_LINKER_FLAGS=-Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags'

Is this a bug at our side?

Regards,

-- Shlomi Fish

Revision history for this message
Qantas94Heavy (qantas94heavy) wrote :

Hi, is this still an issue with the latest Inkscape version (0.92.4)?

Changed in inkscape:
status: New → Incomplete
Revision history for this message
Shlomi Fish (shlomif-gmail) wrote :

@Qantas: after building the 0.92.4 tarball using:

<<<
export LDFLAGS=' -Wl,--as-needed -Wl,--enable-new-dtags'
cmake .. -DCMAKE_INSTALL_PREFIX="$HOME/apps/to-del-inkscape" -DCMAKE_SKIP_RPATH:BOOL=ON '-DCMAKE_MODULE_LINKER_FLAGS=-Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags'
>>>

with this patch applied: http://svnweb.mageia.org/packages/cauldron/inkscape/current/SOURCES/im7.patch?view=log

and installing it, I get:

```
[shlomif@telaviv1 ~]$ /home/shlomif/apps/to-del-inkscape/bin/inkscape
/home/shlomif/apps/to-del-inkscape/bin/inkscape: error while loading shared libraries: libinkscape_base.so: cannot open shared object file: No such file or directory
[shlomif@telaviv1 ~]$

```

Changed in inkscape:
status: Incomplete → New
assignee: nobody → Qantas94Heavy (qantas94heavy)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.