LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-23-2006, 05:27 AM   #1
Lekha
LQ Newbie
 
Registered: Aug 2006
Distribution: Sorry, but it is Win2K :)
Posts: 4

Rep: Reputation: 0
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)
 
Old 08-23-2006, 03:02 PM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
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.
 
Old 08-24-2006, 12:34 AM   #3
Lekha
LQ Newbie
 
Registered: Aug 2006
Distribution: Sorry, but it is Win2K :)
Posts: 4

Original Poster
Rep: Reputation: 0
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?!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using older version of g++ karan101 Programming 3 03-08-2006 02:52 PM
Now Linux want the older version glibc? JBull Linux - General 2 07-04-2005 10:55 PM
Older Version Psycho(Clan) Linux - Newbie 3 04-02-2005 11:17 AM
how to use older versions of glibc turls Programming 4 07-07-2004 03:40 PM
Flash Player - ERROR: Your glibc library is older than 2.2. h1tman Slackware 3 11-27-2003 01:57 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration