LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 01-07-2009, 09:41 AM   #1
tknutsson
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Rep: Reputation: 0
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?
 
Old 01-07-2009, 09:44 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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.
 
Old 01-07-2009, 09:45 AM   #3
tknutsson
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 01-07-2009, 10:38 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by tknutsson View Post
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.
 
Old 01-08-2009, 01:20 AM   #5
tknutsson
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by i92guboj View Post
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?
 
Old 01-08-2009, 01:25 AM   #6
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by i92guboj View Post
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.
 
Old 01-08-2009, 01:27 AM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
compatibility questions Compu Linux - Hardware 1 08-06-2007 10:44 AM
Recommended Software and compatibility questions... vxd Linux - Software 7 02-26-2006 10:39 PM
C++ runtime library compatibility with Redhat libraries srinatar SUSE / openSUSE 2 01-29-2005 11:47 PM
C++ runtime library compatibility with Redhat libraries ( post #1) srinatar Fedora 1 01-29-2005 11:46 PM
Hardware compatibility questions ZhiYi Linux - Hardware 2 07-13-2003 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:22 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