<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Thomas.<br>
<br>
Got it working now. <br>
<br>
Thanks a lot for all your help !<br>
<br>
(I usually need to understand what is happening before accepting a
solution.) <br>
<br>
In the end I suppose something went wrong some days ago and after I
know that I need to provide the path to libdl.so, I could do the
command line correctly and compile your and my projects. <br>
<br>
libdl.so in fact is where you suggested: <br>
<br>
<tt>=====================================================</tt><tt><br>
</tt><tt>[/opt/arm-none-linux-gnueabi/lib] # ls -l</tt><tt><br>
</tt><tt> -rw-r--r-- 1 admin administ 654 Feb 14 2012
Mcrt1.o</tt><tt><br>
</tt><tt> -rw-r--r-- 1 admin administ 1508 Feb 14 2012
Scrt1.o</tt><tt><br>
</tt><tt> -rw-r--r-- 1 admin administ 1508 Feb 14 2012
crt1.o</tt><tt><br>
</tt><tt> -rw-r--r-- 1 admin administ 1168 Feb 14 2012
crti.o</tt><tt><br>
</tt><tt> -rw-r--r-- 1 admin administ 827 Feb 14 2012
crtn.o</tt><tt><br>
</tt><tt> -rw-r--r-- 1 admin administ 2012 Feb 14 2012
gcrt1.o</tt><tt><br>
</tt><tt> drwxr-xr-x 2 admin administ 4096 Jan 3 11:35
ldscripts/</tt><tt><br>
</tt><tt> -rwxr-xr-x 1 admin administ 27344 Feb 14 2012
libcrypt-2.5.so*</tt><tt><br>
</tt><tt> lrwxrwxrwx 1 admin administ 13 Jan 3 11:36
libcrypt.so -> libcrypt.so.1*</tt><tt><br>
</tt><tt> lrwxrwxrwx 1 admin administ 15 Jan 3 11:36
libcrypt.so.1 -> libcrypt-2.5.so*</tt><tt><br>
</tt><tt> <b>-rwxr-xr-x 1 admin administ 15192 Feb 14
2012 libdl-2.5.so*</b></tt><b><tt><br>
</tt></b><tt><b> </b><b>lrwxrwxrwx 1 admin administ
10 Jan 3 11:36 libdl.so -> libdl.so.2*</b></tt><b><tt><br>
</tt></b><b><tt> lrwxrwxrwx 1 admin administ 12 Jan 3
11:36 libdl.so.2 -> libdl-2.5.so*</tt></b><b><tt><br>
</tt></b><tt><b> </b>-rwxr-xr-x 1 admin administ 731885
Feb 14 2012 libm-2.5.so*</tt><tt><br>
</tt><tt> lrwxrwxrwx 1 admin administ 9 Jan 3 11:36
libm.so -> libm.so.6*</tt><tt><br>
</tt><tt> lrwxrwxrwx 1 admin administ 11 Jan 3 11:36
libm.so.6 -> libm-2.5.so*</tt><tt><br>
</tt><tt> -rwxr-xr-x 1 admin administ 135935 Feb 14 2012
libpthread-2.5.so*</tt><tt><br>
</tt><tt> lrwxrwxrwx 1 admin administ 15 Jan 3 11:36
libpthread.so -> libpthread.so.0*</tt><tt><br>
</tt><tt> lrwxrwxrwx 1 admin administ 17 Jan 3 11:36
libpthread.so.0 -> libpthread-2.5.so*</tt><tt><br>
</tt><tt> -rwxr-xr-x 1 admin administ 75709 Feb 14 2012
libresolv-2.5.so*</tt><tt><br>
</tt><tt> lrwxrwxrwx 1 admin administ 14 Jan 3 11:36
libresolv.so -> libresolv.so.2*</tt><tt><br>
</tt><tt> lrwxrwxrwx 1 admin administ 16 Jan 3 11:36
libresolv.so.2 -> libresolv-2.5.so*</tt><tt><br>
</tt><tt> -rwxr-xr-x 1 admin administ 40684 Feb 14 2012
librt-2.5.so*</tt><tt><br>
</tt><tt> lrwxrwxrwx 1 admin administ 10 Jan 3 11:36
librt.so -> librt.so.1*</tt><tt><br>
</tt><tt> lrwxrwxrwx 1 admin administ 12 Jan 3 11:36
librt.so.1 -> librt-2.5.so*</tt><tt><br>
</tt><tt> -rwxr-xr-x 1 admin administ 13662 Feb 14 2012
libutil-2.5.so*</tt><tt><br>
</tt><tt> lrwxrwxrwx 1 admin administ 12 Jan 3 11:36
libutil.so -> libutil.so.1*</tt><tt><br>
</tt><tt> lrwxrwxrwx 1 admin administ 14 Jan 3 11:36
libutil.so.1 -> libutil-2.5.so*</tt><tt><br>
</tt><tt> </tt><tt>=====================================================</tt><tt><br>
</tt><br>
I understand that you suggested that the advice to pull libdl.so is
in dl.pp: <br>
<br>
const LibDL = 'dl';<br>
function dlopen(Name : PChar; Flags : longint) : Pointer; cdecl;
external libdl;<br>
<br>
But here (again) I fail to understand how the linker knows that the
file libdl.so is the target and not dl.o<br>
<br>
For me the show-stopper had been that the linker did not complain
that it did not find a file (i.e. libdl.so) that obviously is
requested by an appropriate instruction in a pascal unit, but
instead complains about unresolved externals. <br>
<br>
I have no idea what can be done about this behavior, but I think
it's rather nasty. <br>
<br>
Thanks again,<br>
-Michael<br>
<br>
<br>
<br>
<br>
<br>
</body>
</html>