Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Error with version of libraries with scilab
Date: Wed, 09 Oct 2013 21:52:35
Message-Id: 5255D013.8070108@gmail.com
In Reply to: [gentoo-user] Error with version of libraries with scilab by "José Romildo Malaquias"
1 On 09/10/2013 23:41, José Romildo Malaquias wrote:
2 > Hello.
3 >
4 > I have installed the *binary distribution of scilab* available form its
5 > download page.
6 >
7 > About two months ago, I was using it without problems.
8 >
9 > Now it does not work anymore. Running the binary gives the following
10 > error message:
11 >
12 > $ /alt/scilab-5.4.1/bin/scilab
13 > scilab-bin: /alt/scilab-5.4.1/lib/thirdparty/libz.so.1: version `ZLIB_1.2.3.4' not found (required by /usr/lib64/libpng16.so.16)
14 >
15 > I need helping understanding this message and fixing this issue on my
16 > ~amd64 system.
17 >
18 > Romildo
19 >
20
21
22
23 libpng16 is a library you already have on your system (not bundled with
24 scilab). And strangely, this *system* library is complaining that it
25 can't find the correct version of libz. These libs have names (sonames)
26 so you can tell different versions apart and use the right one.
27
28 But the system libpng has no business trying to use a third party app
29 under any circumstances. And in fact in regular use it doesn't, see mine:
30
31 $ ldd /usr/lib64/libpng16.so.16
32 linux-vdso.so.1 (0x00007fff7d79a000)
33 libz.so.1 => /lib64/libz.so.1 (0x00007ff9ad6ab000)
34 libm.so.6 => /lib64/libm.so.6 (0x00007ff9ad3b5000)
35 libc.so.6 => /lib64/libc.so.6 (0x00007ff9ad00a000)
36 /lib64/ld-linux-x86-64.so.2 (0x00007ff9adb3c000)
37
38 See? system libpng uses system libz.
39
40 How does this happen? Easy. The authors of scilab are probably fiddling
41 with LD_LIBRARY_PATH, which just happens to be one of the more dangerous
42 things you can do in Unix.
43
44 Go find the startup script for scilab and edit the mods to
45 LD_LIBRARY_PATH to put the scilab directory at the end (not the
46 beginning where it is now)
47
48
49 --
50 Alan McKinnon
51 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] Error with version of libraries with scilab "José Romildo Malaquias" <j.romildo@×××××.com>