[fpc-pascal] Crosscompile linking problems
Lukas Gebauer
gebylist at mlp.cz
Wed Jul 13 11:32:28 CEST 2005
> > > > > > C:\FPC\2.0.0\lib\/libc.so: undefined reference to
> > > > > > `_dl_lookup_versioned_symbol_skip at GLIBC_PRIVATE'
> > > > > > C:\FPC\2.0.0\lib\/libpthread.so: undefined reference to
> > > > > > `_rtld_global at GLIBC_PRIVATE'
> > > > > > C:\FPC\2.0.0\lib\/libc.so: undefined reference to
> > > > > > `_dl_lookup_versioned_symbol at GLIBC_PRIVATE'
> > > > > > Have you some ideas? Have I missed somethink?
>
> So you have a -FL parameter?
I have solution! :-)
I must add ld-linux explicitly by -k parameter first! After this
linking is OK. -k parameters seems to be a trick what I missed
before...
Just linked executable is not runnable under linux until I add -FL.
(because otherwise it is linked with ld-linux.so.1)
So, my commandline is now:
fpc webtouch -Tlinux -XPi386-linux- -kc:\fpc\2.0.0\lib\ld-
linux.so.2 -FL/lib/ld-linux.so.2
(and I have -Fl in FPC config, of course!)
My appliation run on linux wery well now.
Thanks for your comments!
--
Lukas Gebauer.
E-mail: gebauerl at mlp.cz
http://www.ararat.cz/synapse/ - Ararat Synapse - TCP/IP Lib.
More information about the fpc-pascal
mailing list