LinuxQuestions.org
Have you heard the LinuxQuestions.org Podcast?
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags , , , , ,

Reply
 
Thread Tools
Old 09-21-2009, 07:21 PM   #1
prokhor
LQ Newbie
 
Registered: Aug 2009
Posts: 6
Thanked: 0
Problems using qemu-x86_64


[Log in to get rid of this advertisement]
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
linuxsuse prokhor is offline  
Tag This Post , , , , ,
Reply With Quote
Old 09-21-2009, 07:26 PM   #2
prokhor
LQ Newbie
 
Registered: Aug 2009
Posts: 6
Thanked: 0

Original Poster
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)
linuxsuse prokhor is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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-09-2009 01:44 AM
Problems installing Widows XP Pro SP2 in kvm/qemu lrieneck General 3 08-08-2008 02:59 AM
QEMU Accelerator Problems crashsystems Linux - Software 9 11-22-2006 02:20 PM
qemu tun problems Moy Easwaran Linux - Networking 1 05-15-2005 01:20 PM
qemu: qemu stopped right after command exec bitpicker Linux - Software 1 03-05-2005 12:25 AM


All times are GMT -5. The time now is 07:14 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration