Discussion:
Where does the ELF binary dynamic library name come from?
(too old to reply)
Don
2021-03-02 04:10:38 UTC
Permalink
Greetings,

These arguments (and others) are used with libtool:

-I/usr/local/include/guile/2.2 -L/usr/local/lib -lguile-2.2

yet readelf reveals:

# readelf -d /usr/local/bin/gschem | grep guile
0x0000000000000001 NEEDED Shared library: [libguile-2.0.so.22]

when it ought to point to:

libguile-2.2.so.1

Where does the ELF binary dynamic library name come from?


Further details of the back story are available at:

http://www.delorie.com/archives/browse.cgi?p=geda-user/2021/02/28/12:35:00
http://www.delorie.com/archives/browse.cgi?p=geda-user/2021/02/28/20:30:43

Danke,
--
Don, KB7RPU, https://www.qsl.net/kb7rpu
There was a young lady named Bright Whose speed was far faster than light;
She set out one day In a relative way And returned on the previous night.
Nicolas George
2021-03-02 07:21:18 UTC
Permalink
Post by Don
Where does the ELF binary dynamic library name come from?
$ objdump -p /usr/lib/x86_64-linux-gnu/libX11.so.6 | grep SONAME
SONAME libX11.so.6

(I do not have libguile installed.)
Rainer Weikusat
2021-03-02 18:23:53 UTC
Permalink
Post by Don
Greetings,
-I/usr/local/include/guile/2.2 -L/usr/local/lib -lguile-2.2
# readelf -d /usr/local/bin/gschem | grep guile
0x0000000000000001 NEEDED Shared library: [libguile-2.0.so.22]
libguile-2.2.so.1
Where does the ELF binary dynamic library name come from?
That's something which can only be guessed at with this level of
information. A possible scenario could be: Something linking with a
static version of libguile-2.2 also links with a dynamic libray linked
with libguile 2.0.
Rainer Weikusat
2021-03-03 15:01:05 UTC
Permalink
Post by Rainer Weikusat
Post by Don
Greetings,
-I/usr/local/include/guile/2.2 -L/usr/local/lib -lguile-2.2
# readelf -d /usr/local/bin/gschem | grep guile
0x0000000000000001 NEEDED Shared library: [libguile-2.0.so.22]
libguile-2.2.so.1
Where does the ELF binary dynamic library name come from?
That's something which can only be guessed at with this level of
information. A possible scenario could be: Something linking with a
static version of libguile-2.2 also links with a dynamic libray linked
with libguile 2.0.
Coming to think of it: This can't have happened as the library would
then be recorded in the dynamic section of the library.

Loading...