I compiled a C program under Ubuntu 12.04, put the Debian package out of it, and I want to install it on a server running Debian Lenny.
The last time I did this (about two months ago), it worked: I could install the package and run the binary. But now I get the following error message:
(binary name): /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by (binary name))
Besides upgrading my machine to Ubuntu 12.4, the only significant change we made to the code was the strdup()
call, for which I had to enable the function check macro _POSIX_C_SOURCE=200809L
.
Upgrading a server to the latest version of Debian is not my preferred option since it is not under my direct control.
How to fix this problem?
source share