Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-07-2009, 09:41 AM
|
#1
|
LQ Newbie
Registered: Jan 2009
Posts: 4
Rep:
|
Library compatibility questions
Hi,
I'm thinking about migrating an old 2.4-system that uses some closed source libraries *dodging the rotten eggs*, to a shiny new 2.6-kernel.
My question is, will i be able to use these binary libs that are compiled for 2.4 under 2.6? If so, will it require that i build the new kernel using the same toolchain that I am using now?
|
|
|
01-07-2009, 09:44 AM
|
#2
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep:
|
Quote:
will i be able to use these binary libs that are compiled for 2.4 under 2.6
|
In general: no.
Technically it depends what they are and how they were compiled.
Last edited by Simon Bridge; 01-07-2009 at 09:48 AM.
|
|
|
01-07-2009, 09:45 AM
|
#3
|
LQ Newbie
Registered: Jan 2009
Posts: 4
Original Poster
Rep:
|
wow, that was fast
Could you explain why this will not work?
Does it make any difference if it is static/shared?
Last edited by tknutsson; 01-07-2009 at 09:51 AM.
|
|
|
01-07-2009, 10:38 AM
|
#4
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Quote:
Originally Posted by tknutsson
wow, that was fast
Could you explain why this will not work?
|
It entirely depends on the libraries really. Having a 2.4 or 2.6 kernel shouldn't really matter for *most* user land programs. But your glibc version is really critical, and there the kernel headers come into scene.
If your programs require a given feature that's present in older versions of glibc or your kernel then you are going to need to patch them, how much work will be needed depends on the application. It really depends on how low level this apps are.
Quote:
Does it make any difference if it is static/shared?
|
It could. But if the applications are very old there are a million things that could go wrong.
Why not just copy them into an usb stick and try to run them after booting from a modern livecd? You could as well install a newer distro into a vm or something like that.
|
|
|
01-08-2009, 01:20 AM
|
#5
|
LQ Newbie
Registered: Jan 2009
Posts: 4
Original Poster
Rep:
|
Quote:
Originally Posted by i92guboj
It entirely depends on the libraries really. Having a 2.4 or 2.6 kernel shouldn't really matter for *most* user land programs. But your glibc version is really critical, and there the kernel headers come into scene.
If your programs require a given feature that's present in older versions of glibc or your kernel then you are going to need to patch them, how much work will be needed depends on the application. It really depends on how low level this apps are.
It could. But if the applications are very old there are a million things that could go wrong.
Why not just copy them into an usb stick and try to run them after booting from a modern livecd? You could as well install a newer distro into a vm or something like that.
|
Ok, since i cannot look into the code i guess that the only way to know for sure is to execute them on 2.6 and see what happens. However, by the way they are used i would guess that they mostly use stdio for file i/o, some sockets and math. Have there been any major changes in those areas in libc?
|
|
|
01-08-2009, 01:25 AM
|
#6
|
ELF Statifier author
Registered: Oct 2007
Posts: 676
Rep:
|
Quote:
Originally Posted by i92guboj
Why not just copy them into an usb stick and try to run them after booting from a modern livecd? You could as well install a newer distro into a vm or something like that.
|
Good idea. If it's work you are lucky. If not you can try to use Ermine ( http://magicErmine.com) or statifier ( http://statifier.sf.net).
Both of them able to pack dynamically linked executable and all shared library this executable uses into one self-contained executable, that can run virtually on any Linux distribution (with same processor . Statifier is license under GPL, Ermine is commercial. On the other hand executble packed with statifier can have problem on systems with memory randomization.
|
|
|
01-08-2009, 01:27 AM
|
#7
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Well, the simpler the program is, the better chance you get to run it successfully. Nothing major should have changed there, but even minor changes can sometimes break compatibility.
|
|
|
All times are GMT -5. The time now is 12:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|