Need help getting 32-bit userspace binaries to run in a remastered 64-bit system based on corepure64.gz 5.X with 32-bit userspace binaries from .../5.x/x86/tzc/...
The 64-bit system works fine. For packages that exist in 32-bit form but not in 64-bit form, I unpack the .tcz files and move files from /usr/local/bin to /usr/local/binx32 and from /usr/local/lib to /usr/local/libx32. I added /usr/local/libx32 to /etc/ld.so.conf and ran ldconfig.
On the booted system, "ldconfig -p" shows both 32-bit and 64-bit libraries properly annotated. An example binary, /usr/local/binx32/ps exists, is owned by root.root, and has mode 555. The "file" command says this: (hand-typed due to lack of network connectivity)
/usr/local/binx32/ps: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.0, stripped
The "ldd" command says this:
/usr/local/binx32/ps: error while loading shared libraries: /usr/local/binx32/ps: wrong ELF class: ELFCLASS32
Attempting to run (or exec) /usr/local/binx32/ps from bash yields this:
bash: /usr/local/binx32/ps: No such file or directory
Attempting to run /usr/local/binx32/ps from /bin/sh yields this:
/bin/sh: /usr/local/binx32/ps: Not found
Is there something I need to poke into /proc or /sys to enable running 32-bit binaries on the 64-bit kernel?
Any other suggestions?
Thanks in advance.