From: frank@niagara.nyo.dec.com (Frank Wortner)
Subject: Re: Problem with shared libraries
Date: Wed, 27 Jul 1994 19:05:28 GMT [thread overview]
Message-ID: <1994Jul27.190528.29931@datum.nyo.dec.com> (raw)
In-Reply-To: id.5MJB1.TYJ@nmti.com
In article <id.5MJB1.TYJ@nmti.com>, rwp@nmti.com (roland pringle) writes:
|>I get no link errors. Only upon execution of the Fortran program do I get an
|>error that says it is unable to map libxxx.so. Libxxx.so will vary depending
|>upon the order of the shared libraries entered on the link command, i.e.,
|>f77 -called_shared xthreads main.o -L/path/to -lxxx -lyyy -lzzz
|>
Here's a couple of tests you could try:
1) DBX the executable and type the command
listobj
That will tell you where the executable is looking for libraries.
2) Set the environmental variable _RLD_ARGS to "-trace" or "-v".
That will make the loader trace it's actions. Try "-v" first:
it produces less output.
3) Is your program running setuid or setgid? The loader then
restricts the library search path to the default directories
(/usr/shlib /usr/ccs/lib /usr/cmplrs/cc /usr/lib /usr/local/lib).
4) Have you tried setting the library's SONAME when you build it?
Use the -soname option to do this:
ld -shared -soname /path/to/libxxx.so -o libxxx.so *.o
This will force the loader to load "/path/to/libxxx.so" at
runtime.
Frank
next prev parent reply other threads:[~1994-07-27 19:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-07-22 16:30 Problem with shared libraries roland pringle
1994-07-22 17:18 ` John Stoffel
1994-07-25 14:10 ` Frank Wortner
1994-07-25 19:07 ` roland pringle
1994-07-27 19:05 ` Frank Wortner [this message]
[not found] ` <JOHN.94Jul22131852@avante.wpi.edu>
1994-07-25 15:45 ` roland pringle
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox