[plug] old binaries

Anthony J. Breeds-Taurima tony at cantech.net.au
Tue Nov 6 09:06:13 WST 2001


On Mon, 5 Nov 2001, Rob Dunne wrote:

> how do I get it to run? The compatibility rpm (sorry I dont
> have its name here) in RH7.1 seems to be for compiling 
> stuff to run on a RH6.2 system -- but how do I get a RH6.2
> binary to run on a newer system?

I certainly not an expert in this area so you'll want to look into what I say,
or hopefully someone else on the list will correct my mistakes.  Also you
should check the thread at:
	http://www.cantech.net.au/plug/2001-09/msg00775.html
As that delat with builing apps for older kernels and libraries.

RedHat 7.1 did bad things in this respect it shipped a gcc that was devel and
had no forward or backward compatability.  If you build it on RedHat 7.x it'll
only run on RedHat 7.x.  You can install the appropriate *compat*rpm's and 
kgcc from the CD.  Then make sure you build all your code with kgcc.  kgcc is
egcs-something under a different name.

Another option is to build a static binary that has no depedancies on system
libs.  it will be bigger (than one that does use the system libs) BUT you
should be able to take it to/from either version of RedHat you emention above.
 
> I have found two rpm that look interesting -- however
> 1) one of them will over-write /sbin/ldconfig 
> -- Is is safe to install 

I wouldn't.

> 2) is it OK to install an mandrake rpm on a RH machine -- or
> will it break things?

For some things it's okay but I wouldn't put system libraries in that group.
 
> [lycra]# rpm -qlp libc-5.4.44-1glibc.i386.rpm |grep libc.s
> /usr/i486-linux-libc5/lib/libc.so.5.4.44
> [lycra]# rpm -qlp ld.so-1.9.11-4mdk.i386.rpm 
> /lib/ld-linux.so.1
> /lib/ld-linux.so.1.9.11
> /sbin/ldconfig
> /usr/share/doc/ld.so-1.9.11
> /usr/share/doc/ld.so-1.9.11/README
> /usr/share/doc/ld.so-1.9.11/copyright
> /usr/share/man/man8/ldconfig.8.bz2

RedHat-6.2 came with:
ld.so-1.9.5-13.i386.rpm ; and
libc-5.3.12-31.i386.rpm 

# rpm -qlp ld.so-1.9.5-13.i386.rpm 
/lib/ld-linux.so.1
/lib/ld-linux.so.1.9.5
/lib/ld.so
/lib/ld.so.1.9.5
/lib/libdl.so.1.9.5
/usr/man/man1/ldd.1.gz
/usr/man/man3/dlclose.3.gz
/usr/man/man3/dlerror.3.gz
/usr/man/man3/dlopen.3.gz
/usr/man/man3/dlsym.3.gz
/usr/man/man8/ld.so.8.gz
/usr/man/man8/ldconfig.8.gz


NOTE: no conflicting ldconfig :)
The install/uninstall scripts for libc will handle adding it to
/etc/ld.so.conf so it's just a matter of grabbing them.

I'm sure there are similar RPMS for each version os redhat so just install the
ones for yours :)

If you need the RPMS above you can get them from:
ftp://ftp.cantech.net.au/pub/Linux/RedHat/redhat-6.2/RPMS

HTH

Tony.

/*
 * "The significant problems we face cannot be solved at the 
 * same level of thinking we were at when we created them."
 * --Albert Einstein
 */



More information about the plug mailing list