[solved] 32bit binary in 64bit VE [message #34174] |
Wed, 10 December 2008 20:02 |
zeek
Messages: 3 Registered: December 2008
|
Junior Member |
|
|
I'm having trouble getting a 32bit executable running inside a 64 bit VE. It runs fine in the host node but the VE doesn't like it. The binary is the Perforce client so I can't recompile it as 64 bit. 32 bit compatibility is built into the HN kernel.
vz # ldd /vz/root/1002/usr/local/bin/p4
libc.so.6 => /lib32/libc.so.6 (0xb7e33000)
/lib/ld-linux.so.2 (0xb7f6e000)
vz # vzctl exec 1002 ldd /usr/local/bin/p4
not a dynamic executable
[Updated on: Mon, 15 December 2008 07:08] by Moderator Report message to a moderator
|
|
|
|
Re: 32bit binary in 64bit VE [message #34195 is a reply to message #34178] |
Fri, 12 December 2008 18:30 |
zeek
Messages: 3 Registered: December 2008
|
Junior Member |
|
|
piavlo wrote on Thu, 11 December 2008 04:07 |
projsrv3 ~ # zgrep CONFIG_IA32_EMULATION /proc/config.gz
CONFIG_IA32_EMULATION=y
projsrv3 ~ # ls -la /vz/private/103/lib/ld-linux.so.2
lrwxrwxrwx 1 root root 22 2008-03-15 18:24 /vz/private/103/lib/ld-linux.so.2 -> ../lib32/ld-linux.so.2
projsrv3 ~ # file -L /vz/private/103//lib/ld-linux.so.2
/vz/private/103//lib/ld-linux.so.2: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
|
Thanks for your answer.
# ls -la /vz/private/1003/lib/ld-linux-x86-64.so.2
lrwxrwxrwx 1 root root 11 Dec 10 13:51 /vz/private/1003/lib/ld-linux-x86-64.so.2 -> ld-2.6.1.so
# file -L /vz/private/1003/lib/ld-linux-x86-64.so.2
/vz/private/1003/lib/ld-linux-x86-64.so.2: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), stripped
I must've done something wrong somewhere so I rm'd the VE and started fresh and now p4 works:
# vzctl exec 1003 /usr/local/bin/p4
Perforce -- the Fast Software Configuration Management System.
...
|
|
|