LinuxQuestions.org
Review your favorite Linux distribution.
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, 10: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, 10:44 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

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

Rep: Reputation: 375Reputation: 375Reputation: 375Reputation: 375
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, 02: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, 02:25 AM   #6
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 669

Rep: Reputation: 134Reputation: 134
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, 02:27 AM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,043

Rep: Reputation: 375Reputation: 375Reputation: 375Reputation: 375
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 11:44 AM
Recommended Software and compatibility questions... vxd Linux - Software 7 02-26-2006 11:39 PM
C++ runtime library compatibility with Redhat libraries srinatar Suse/Novell 2 01-30-2005 12:47 AM
C++ runtime library compatibility with Redhat libraries ( post #1) srinatar Fedora 1 01-30-2005 12:46 AM
Hardware compatibility questions ZhiYi Linux - Hardware 2 07-13-2003 08:21 PM


All times are GMT -5. The time now is 01:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration