Re: [LIP] Binary compatibility across Linux distros.

Swapnil Nagle <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
> How to verify if the binary that I build on a Red Hat Linux for x86 
> shall execute as-is on SuSe Linux distro ? It is a C binary, compiled 
> under Red Hat 7.3 (I guess it has the older version of gcc out there, 
> not so sure.) No special distro-related features' are used (I am not 
> even aware of them.)

It depends on the library versions that you have compiled it against, 
mainly glibc.

>
> I think the binaries should execute cross-distros' if -
> * the arch platform is same.

Most definitely they should be same :)

> * the kernel versions are same (or very near each other.)

That is not much of a problem since you don't directly interact with the 
kernel. All the functionality will be exposed through glibc.

> So, I need to find out that SuSe distro, which has the same kernel 
> version as the one in RHL 7.3 (for example.)
>
If you are making a custom app, your best bet is to package it as a rpm. 
rpm format will encode all the dependencies and print out suitable 
errors if compatible libraries are not found.

-- Swapnil



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.