John H. Robinson, IV wrote: > Darren New wrote: > > > > Um, sure. Show me a 10-year-old Linux program or Mac program that runs > > without recompiling? > > I can't make it to QUITE ten years.
But I can come closer: % uname -s -r -v -m -p -i -o; cat /etc/redhat-release Linux 2.6.18-1.2747.el5 #1 SMP Thu Nov 9 18:55:30 EST 2006 i686 i686 i386 GNU/Linux Red Hat Enterprise Linux Server release 4.92 (Tikanga) % wget http://archive.debian.org/dists/Debian-1.3.1/main/binary-i386/base/ldso_1.8.12-1.deb --snip-- % ar p ldso_1.8.12-1.deb data.tar.gz | tar xzf - usr/bin ; ls -l usr/bin/ldd; usr/bin/ldd /bin/ls -rwxr-xr-x 1 jhriv jhriv 97840 Jul 26 1997 usr/bin/ldd linux-gate.so.1 => (0x0064d000) librt.so.1 => /lib/librt.so.1 (0x00526000) libacl.so.1 => /lib/libacl.so.1 (0x00df7000) libselinux.so.1 => /lib/libselinux.so.1 (0x042e6000) libc.so.6 => /lib/libc.so.6 (0x0066b000) libpthread.so.0 => /lib/libpthread.so.0 (0x00900000) /lib/ld-linux.so.2 (0x0064e000) libattr.so.1 => /lib/libattr.so.1 (0x00df0000) libdl.so.2 => /lib/libdl.so.2 (0x007c7000) libsepol.so.1 => /lib/libsepol.so.1 (0x0429e000) The just-shy-of 10 year old usr/bin/ldd freaks out slightly on a 64 bit CPU, hence this test is on a 32 bit Red Hat Enterprise Linux 5 beta: % file /bin/ls /bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped % usr/bin/ldd /bin/ls statically linked (ELF) It is not quite 10 years old (give it a month and a half) but it is from 1997, and it does still work. Feel free to test either the sash or this ldd on your just-compiled Gentoo system. If you have wget, ar, and GNU tar (or gzip + tar) then you can get at the binary bits directly yourself. Obviously, the ldd will have to be tested on a 32 bit system. -john -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
