I have kern.emul.linux=1 in /etc/sysctl.conf and
have installed the newest redhat_base-8.0p8 package.
Also I've updated to the newest -current.
Then I've copied these libraries from a RH Linux PC:
# ll /usr/local/emul/redhat/RHEL4
2848 -rwxr-xr-x 1 afarber users 1438761 Jul 26 17:12 libc-2.3.4.so
12 -rwxr-xr-x 1 afarber users 5668 Jul 26 17:10 libcom_err.so.2.1
1888 -rwxr-xr-x 1 afarber users 935112 Jul 26 17:05 libcrypto.so.0.9.7a
60 -rwxr-xr-x 1 afarber users 29308 Jul 26 16:45
libgcc_s-3.4.4-20050721.so.1
160 -rwxr-xr-x 1 afarber users 80948 Jul 26 17:07 libgssapi_krb5.so.2.2
264 -rwxr-xr-x 1 afarber users 134640 Jul 26 17:11 libk5crypto.so.3.0
864 -rwxr-xr-x 1 afarber users 413704 Jul 26 17:08 libkrb5.so.3.2
376 -rwxr-xr-x 1 afarber users 191052 Jul 26 16:59 libnspr4.so
28 -rwxr-xr-x 1 afarber users 14332 Jul 26 17:00 libplc4.so
20 -rwxr-xr-x 1 afarber users 8264 Jul 26 17:00 libplds4.so
180 -rwxr-xr-x 1 afarber users 91889 Jul 26 17:18 libpthread-2.3.4.so
448 -rwxr-xr-x 1 afarber users 211948 Jul 26 16:45 libssl.so.4
1472 -rwxr-xr-x 1 afarber users 733488 Jul 26 16:45 libstdc++.so.5.0.7
208 -rwxr-xr-x 1 afarber users 105213 Jul 26 17:45 ld-2.3.4.so
After that I've put that dir on the top of ld.so.conf:
# cat /emul/linux/etc/ld.so.conf
/RHEL4
/usr/lib
/usr/X11R6/lib
/usr/i486-linux-libc5/lib
And have run /emul/linux/sbin/ldconfig
Now the binaries seem to resolve libraries ok:
# ldd ~/FMS_2_0_2_r51_linux/fmsini
/home/afarber/FMS_2_0_2_r51_linux/fmsini:
libpthread.so.0 => /RHEL4/libpthread.so.0 (0x52d98000)
libdl.so.2 => /lib/libdl.so.2 (0x4c819000)
libstdc++.so.5 => /RHEL4/libstdc++.so.5 (0x4dd1c000)
libm.so.6 => /lib/libm.so.6 (0x5576e000)
libgcc_s.so.1 => /RHEL4/libgcc_s.so.1 (0x48e91000)
libc.so.6 => /RHEL4/libc.so.6 (0x56a62000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x51aed000)
But the binaries still don't run:
# ~/FMS_2_0_2_r51_linux/fmsini
~/FMS_2_0_2_r51_linux/fmsini: relocation error: /RHEL4/libc.so.6:
symbol _rtld_global_ro, version GLIBC_PRIVATE not defined in file
ld-linux.so.2 with link time reference
Does anybody have an idea here?
This has smth. to do with ld-linux.so.2 or libc.so.6? I've changed the links:
# ll /usr/local/emul/redhat/lib/ld-linux.so
0 lrwxr-xr-x 1 root wheel 20 Jul 26 17:48
/usr/local/emul/redhat/lib/ld-linux.so -> ../RHEL4/ld-2.3.4.so
# ll /usr/local/emul/redhat/lib/libc.so.6
0 lrwxr-xr-x 1 root wheel 22 Jul 26 17:51
/usr/local/emul/redhat/lib/libc.so.6 -> ../RHEL4/libc-2.3.4.so
But that didn't change anything
Regards
Alex