Re: ELF Dynamic Linking Problems

Stanley Keymer (stankey@keymer.pp.fi)
Thu, 15 Feb 1996 13:07:14 +0200


At 11:44 14.2.1996 PST, you wrote:
>On Wed, 14 Feb 1996 08:53:57 -0600 you said:
>>Hello Linux ELF dynamic linkers!
>>
>>I am trying to get dynamic linking and loading to work using gcc 2.7.0 (ELF
>>and a.out installed) and
>>ld 2.6, Linux kernel 2.1.11 on a 486DX2/50 with 16mb of ram and 8mb swap.
>>
>>
>>Am I missing a library? a command line option? Do I need to alter the
>>search path in some way?
>>I am sure the dlopen etc. are in libdl.so.1 or am I wrong?
>>
> You are missing a symlink. This is something I missed for the longest
>time until I figured it out on my own after I wrote the author of ld.so
>about it and got no response. When linking programs against shared librar
>ies there also needs to be a libfoo.so link so in your case just do 'ln -s
>/usr/lib/libdl.so.1 /usr/lib/libdl.so'.
>
>Curtiss
>
>

Having the same problem so tried the above, infact i think it should be
ln -s /lib/lbdl.so.1 /usr/lib/libdl.so.

Here is the error i now get:

make[1]: Leaving directory `/usr/src/linux-1.2/arch/i386/kernel'
make[1]: Entering directory `/usr/src/linux-1.2/arch/i386/mm'
make[1]: Nothing to be done for `modules'.
make[1]: Leaving directory `/usr/src/linux-1.2/arch/i386/mm'
ld -qmagic -Ttext 0xfffe0 arch/i386/kernel/head.o init/main.o init/version.o \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o
net/net.o ipc/ipc.o \
fs/filesystems.a \
drivers/block/block.a drivers/char/char.a drivers/net/net.a
drivers/sound/sound.a \
/root/linux/lib/lib.a -o vmlinux
ld: cannot open arch/i386/mm/mm.o: No such file or directory
make: *** [vmlinux] Error 1

Any ideas?

Stanley Keymer

---------------------------------------------------------------------
------
| ______ \*/
|
-----| \*/ / o o \ -@~
|-----
| | ~@- / || \ / E-Mail: stankey@keymer.pp.ff
| |
-----| \_< \____/ >_/
|-----
| \____U___/ WWW:
http://pesonal.eunet.fi/pp/keymer/home.html |
---------------------------------------------------------------------
------