LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-21-2009, 06:21 PM   #1
prokhor
LQ Newbie
 
Registered: Aug 2009
Posts: 8

Rep: Reputation: 0
Problems using qemu-x86_64


Hi there

I try to run 64 bit binaries on an IA32...
qemu provides a script called qemu-x86_64 which allows to run 64 bit software on 32 bit.
The first problem was that the (64 bit binary) searched for some 64 bit library in lib64 which i solved by:
"
mkdir lib64
cp library lib64
"

Now I have two problems:
my 64 bit binary searches for some other library (libpthread.so.0) and is trying to load it from /etc/ld.so.preload which originally doesn't exist on my OSes (SUSE 11.1 / Mandriva)
I tryed to make a /etc/ld.so.preload and to put paths in it so it can load. It didn't work.

ERROR: ld.so: object '/lib64/libpthread.so.0' from /etc/ld.so.preload cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib' from /etc/ld.so.preload cannot be preloaded: ignored.
.program: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

the -strace option didn't give me more information than that libpthread.so.0 couldn't be preloaded from /etc/ld.so.preload .

Any suggestions?

Rgds
 
Old 09-21-2009, 06:26 PM   #2
prokhor
LQ Newbie
 
Registered: Aug 2009
Posts: 8

Original Poster
Rep: Reputation: 0
PS: with -strace:

qemu-x86_64 -strace program
4702 uname(0x4007ecc0) = 0
4702 brk(0,1074261323,0,1074270920,33954567,4) = 0x00000000005e8000
4702 mmap(0,4096,3,34,4294967295,0) = 0x0000000042081000
4702 open("/etc/ld.so.preload",0,0) = 5
4702 fstat(5,(nil)) = 0
4702 mmap(0,32,3,2,5,0) = 0x0000000042082000
4702 close(5) = 0
4702 open("/lib64/libpthread.so.0",0,0) = 5
4702 read(5,0,1074259688) = 640
4702 close(5) = 0
4702 writev(2,(nil),0x4007e600)ERROR: ld.so: object '/lib64/libpthread.so.0' from /etc/ld.so.preload cannot be preloaded: ignored.
= 100
4702 open("/usr/lib",0,0) = 5
4702 read(5,0,1074259688) = -1 errno=21 (Is a directory)
4702 close(5) = 0
4702 writev(2,(nil),0x4007e600)ERROR: ld.so: object '/usr/lib' from /etc/ld.so.preload cannot be preloaded: ignored.
= 86
4702 munmap(0x42082000,0) = 0
4702 open("/etc/ld.so.cache",0,0) = 5
4702 fstat(5,(nil)) = 0
4702 mmap(0,136445,1,2,5,0) = 0x0000000042083000
4702 close(5) = 0
4702 open("/lib64/tls/i686/libpthread.so.0",0,0) = 5
4702 read(5,0,1074259400) = 640
4702 close(5) = 0
4702 stat("/lib64/tls/i686",(nil)) = 0
4702 open("/lib64/tls/libpthread.so.0",0,0) = -1 errno=2 (No such file or directory)
4702 stat("/lib64/tls",(nil)) = 0
4702 open("/lib64/i686/libpthread.so.0",0,0) = -1 errno=2 (No such file or directory)
4702 stat("/lib64/i686",(nil)) = -1 errno=2 (No such file or directory)
4702 open("/lib64/libpthread.so.0",0,0) = 5
4702 read(5,0,1074259400) = 640
4702 close(5) = 0
4702 stat("/lib64",(nil)) = 0
4702 open("/usr/lib64/tls/i686/libpthread.so.0",0,0) = 5
4702 read(5,0,1074259400) = 640
4702 close(5) = 0
4702 stat("/usr/lib64/tls/i686",(nil)) = 0
4702 open("/usr/lib64/tls/libpthread.so.0",0,0) = 5
4702 read(5,0,1074259400) = 640
4702 close(5) = 0
4702 stat("/usr/lib64/tls",(nil)) = 0
4702 open("/usr/lib64/i686/libpthread.so.0",0,0) = 5
4702 read(5,0,1074259400) = 640
4702 close(5) = 0
4702 stat("/usr/lib64/i686",(nil)) = 0
4702 open("/usr/lib64/libpthread.so.0",0,0) = 5
4702 read(5,0,1074259400) = 640
4702 close(5) = 0
4702 stat("/usr/lib64",(nil)) = 0
4702 writev(2,(nil),0x4007e070)genera: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
= 121
4702 exit_group(127)
 
  


Reply

Tags
bit, emulation, libraries, qemu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ipm timed out error on Red Hat 2.6.9-67.0.22.ELsmp #1 SMP x86_64 x86_64 x86_64 GNU/L bellnarm Linux - Newbie 0 07-07-2009 04:36 PM
Problems installing Widows XP Pro SP2 in kvm/qemu lrieneck General 3 08-08-2008 01:59 AM
QEMU Accelerator Problems crashsystems Linux - Software 9 11-22-2006 01:20 PM
qemu tun problems Moy Easwaran Linux - Networking 1 05-15-2005 12:20 PM
qemu: qemu stopped right after command exec bitpicker Linux - Software 1 03-04-2005 11:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration