LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Using older GLIBC version (https://www.linuxquestions.org/questions/programming-9/using-older-glibc-version-476519/)

Lekha 08-23-2006 05:27 AM

Using older GLIBC version
 
Hello, all :)

I need to compile program on one computer and then to distribute binary to other computers, where GLIBC is older. Computer, where I'm compiling has glibc-2.4-8, other computers - glibc-2.2.5-44

Problem is that I can't upgrade them - there are 100s of them. So, could you advise me something? I've got errors:
./program.out: /usr/lib/libpthread.so.0: version `GLIBC_2.3.2' not found (required by ./libmono.so.0)
./program.out: /lib/i686/libc.so.6: version `GLIBC_2.3.2' not found (required by ./libmono.so.0)
./program.out: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by ./libmono.so.0)

jim mcnamara 08-23-2006 03:02 PM

Consider statically linking the binaries. They will be a lot larger than otherwise, but they won't require any libraries to exist on the new machines.

Lekha 08-24-2006 12:34 AM

I tried this, there were some warnings:
Quote:

warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
And on other machine it was fatal error:
Quote:

FATAL: kernel too old
Segmentation fault (core dumped)
Maybe this is because of shared libraries I didn't copy?!


All times are GMT -5. The time now is 07:53 AM.