Article View: gnu.gcc.help
Article #42449Finding the shared libraries.
From: Rodrigo Vanegas
Date: Sat, 02 Dec 1995 00:00
Date: Sat, 02 Dec 1995 00:00
33 lines
1345 bytes
1345 bytes
I'm having some problem linking with a shared library but I am a loss
to find a solution. On SVR4, Solaris 2.4, and gcc 2.6.3, I link with
the following.
gcc -I/usr/ucbinclude -s -o socket so_release.o socket.o io.o
utils.o socketp.o -lc -lsocket -lnsl -L/usr/ucblib -lucb
When I go to run the executable I get
% ./socket
ld.so.1: ./socket: fatal: libucb.so.1: can't open file: errno=2
Killed
Running ldd, I find
% ldd socket
libc.so.1 => /usr/lib/libc.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libucb.so.1 => (not found)
libdl.so.1 => /usr/lib/libdl.so.1
libintl.so.1 => /usr/lib/libintl.so.1
libw.so.1 => /usr/lib/libw.so.1
but the library is just where I expect it
% ls -l /usr/ucblib/libucb.so.1
-rwxr-xr-x 1 bin bin 55632 Apr 7 1995 /usr/ucblib/libucb.so.1
So what gives? Any ideas?
--
Rodrigo <Vanegas@bbn.com>
Technical Details
Message-ID:
<VANEGAS.95Dec2114951@jade.bbn.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,fe398e7b1bea9357,start X-Google-Attributes: gid11318c,public From: vanegas@jade.bbn.com (Rodrigo Vanegas) Subject: Finding the shared libraries. Date: 1995/12/02 Message-ID: <VANEGAS.95Dec2114951@jade.bbn.com> X-Deja-AN: 120710892 distribution: world organization: BBN reply-to: vanegas@bbn.com newsgroups: gnu.gcc.help