On 23 May 2013, at 15:03, Bruce Tulloch wrote:
On Thu, May 23, 2013 at 10:50 PM, Jonas Maebe <jonas.ma...@elis.ugent.be
>wrote:
On 23 May 2013, at 14:32, Bruce Tulloch wrote:
On Thu, May 23, 2013 at 10:28 PM, Jonas Maebe <jonas.ma...@elis.ugent.be
>
**wrote:
On 23 May 2013, at 14:25, Bruce Tulloch wrote:
Do you have a libdl.so in your library search path? And what kind
of
reference to libdl does link.res contain?
Yes, it's in the search path as:
root@beria:/lib/arm-linux-gnueabihf# ls -l libdl*
-rw-r--r-- 1 root root 9812 Feb 23 00:37 libdl-2.13.so
lrwxrwxrwx 1 root root 13 Feb 23 00:37 libdl.so.2 -> libdl-2.13.so
You don't have libdl.so, only libdl.so.2. The latter is for use at
run
time, the former for use at link/compile time. Install the libc-dev
or
similar package in your crossroot to get it along with other missing
symlinks. Do not start creating those manually, it will only lead
to errors
and confusion down the line.
Okay, but it is installed:
root@beria:~# apt-file search libdl.so
libc6: /lib/arm-linux-gnueabihf/libdl.so.2
libc6-dev: /usr/lib/arm-linux-gnueabihf/libdl.so
The topic of this thread is about cross-compiling, but those are the
files on the native system. Are you getting this error while cross-
compiling or while compiling natively? If you are compiling natively,
try compiling something with "gcc -### x.c -ldl" to see what
parameters gcc passes to linker (create an empty x.c file first).
root@beria:~# apt-show-versions libc6-dev
libc6-dev/wheezy uptodate 2.13-38+rpi2
but I noticed that:
root@beria:/usr/lib/arm-linux-gnueabihf# ls -l libdl*
-rw-r--r-- 1 root root 9042 Feb 23 00:38 libdl.a
lrwxrwxrwx 1 root root 35 Feb 23 00:38 libdl.so ->
/lib/arm-linux-gnueabihf/libdl.so.2
which means they're the same file.
Yes, they are the same file. Why that is the case and why nevertheless
need both is what I tried to explain in my previous message.
Jonas
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal