[fpc-pascal]libc problem!

Peter Vreman pfv at cooldown.demon.nl
Thu Feb 1 23:55:24 CET 2001

> I made some cgi programs using free pascal. it works very fine. but
> now i'm moving to a new server (SuSE 7) and the programs don't work
> anymore (at leat not the one that use mysql). The following error is
> displayed:
> ./login: error in loading shared libraries: ./login: undefined symbol: __libc_init
> I have searched in the message archive and found some similar threads,
> but in my case it does not help to upgrade the fpc compiler (using
> snapshot from 21th february.
> BUT: On my local machine (SuSE 6.3) and on the older server (SuSE 6.1)
> the programs work.
> I noticed also that on the new server there is only libc 6:
> /lib/libc.so.6
> whereas on the other machines (also my local one) there is libc 4 and 6:
> /lib/libc.so.4  (symlink)
> /lib/libc.so.4.7.6
> /lib/libc.so.6
> I also have read that the compiler detects the libc version. So is the
> libc version set at compile time? I alway compile the programs on my
> local machine and then upload them to the web server.

At compiletime as an other startup module is necessary.

> Maybe the compiler detects and uses libc v4 and that is not available
> on the new server,
> What shall I do? I don't like much to change the web servers
> configuration (i mean, if it's possible NOT to install other libc
> versions).
> Please help!

Try recompiling on the new server. And be sure that the libraries are the
same on all machines, then you're really sure that things work on all


More information about the fpc-pascal mailing list