public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-amd64] LD_PRELOAD of 32 bits libs
@ 2005-09-02 23:23 Gustavo Felisberto
  2005-09-03  2:32 ` [gentoo-amd64] " Duncan
  2005-09-03 10:24 ` [gentoo-amd64] " Kevin F. Quinn
  0 siblings, 2 replies; 3+ messages in thread
From: Gustavo Felisberto @ 2005-09-02 23:23 UTC (permalink / raw
  To: gentoo-amd64

[-- Attachment #1: Type: text/plain, Size: 1244 bytes --]

I'm trying to LD_PRELOAD some 32 bits libs to use with 32 bits apps.
file ./libartsdsp.so.0 ./libartsc.so.0 /lib32/libdl-2.3.5.so
/opt/skype/skype.bin
./libartsdsp.so.0:     ELF 32-bit LSB shared object, Intel 80386,
version 1 (SYSV), not stripped
./libartsc.so.0:       ELF 32-bit LSB shared object, Intel 80386,
version 1 (SYSV), not stripped
/lib32/libdl-2.3.5.so: ELF 32-bit LSB shared object, Intel 80386,
version 1 (SYSV), stripped
/opt/skype/skype.bin:  ELF 32-bit LSB executable, Intel 80386, version 1
(SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), stripped

These are the libs and the executable, and what happens is:
LD_PRELOAD=./libartsdsp.so.0:./libartsc.so.0:/lib32/libdl-2.3.5.so
/opt/skype/skype.bin
ERROR: ld.so: object './libartsdsp.so.0' from LD_PRELOAD cannot be
preloaded: ignored.
ERROR: ld.so: object './libartsc.so.0' from LD_PRELOAD cannot be
preloaded: ignored.
ERROR: ld.so: object '/lib32/libdl-2.3.5.so' from LD_PRELOAD cannot be
preloaded: ignored.

Any ideas?

-- 
Gustavo Felisberto
(HumpBack)
Web: http://dev.gentoo.org/~humpback
Blog: http://blog.felisberto.net/
------------
It's most certainly GNU/Linux, not Linux. Read more at
http://www.gnu.org/gnu/why-gnu-linux.html .
-------------

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gentoo-amd64]  Re: LD_PRELOAD of 32 bits libs
  2005-09-02 23:23 [gentoo-amd64] LD_PRELOAD of 32 bits libs Gustavo Felisberto
@ 2005-09-03  2:32 ` Duncan
  2005-09-03 10:24 ` [gentoo-amd64] " Kevin F. Quinn
  1 sibling, 0 replies; 3+ messages in thread
From: Duncan @ 2005-09-03  2:32 UTC (permalink / raw
  To: gentoo-amd64

Gustavo Felisberto posted <4318DEEB.60808@gentoo.org>, excerpted below, 
on Sat, 03 Sep 2005 00:23:23 +0100:

> I'm trying to LD_PRELOAD some 32 bits libs to use with 32 bits apps.
> file ./libartsdsp.so.0 ./libartsc.so.0 /lib32/libdl-2.3.5.so
> /opt/skype/skype.bin
> ./libartsdsp.so.0:     ELF 32-bit LSB shared object, Intel 80386,
> version 1 (SYSV), not stripped
> ./libartsc.so.0:       ELF 32-bit LSB shared object, Intel 80386,
> version 1 (SYSV), not stripped
> /lib32/libdl-2.3.5.so: ELF 32-bit LSB shared object, Intel 80386,
> version 1 (SYSV), stripped
> /opt/skype/skype.bin:  ELF 32-bit LSB executable, Intel 80386, version 1
> (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), stripped
> 
> These are the libs and the executable, and what happens is:
> LD_PRELOAD=./libartsdsp.so.0:./libartsc.so.0:/lib32/libdl-2.3.5.so
> /opt/skype/skype.bin
> ERROR: ld.so: object './libartsdsp.so.0' from LD_PRELOAD cannot be
> preloaded: ignored.
> ERROR: ld.so: object './libartsc.so.0' from LD_PRELOAD cannot be
> preloaded: ignored.
> ERROR: ld.so: object '/lib32/libdl-2.3.5.so' from LD_PRELOAD cannot be
> preloaded: ignored.
> 
> Any ideas?

Shot in the dark...  your LD_PRELOAD is using mostly (but not all)
relative paths. What happens if you try all absolute paths?  Might as well
try all relative as well, while you are at it.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman in
http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html


-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-amd64] LD_PRELOAD of 32 bits libs
  2005-09-02 23:23 [gentoo-amd64] LD_PRELOAD of 32 bits libs Gustavo Felisberto
  2005-09-03  2:32 ` [gentoo-amd64] " Duncan
@ 2005-09-03 10:24 ` Kevin F. Quinn
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin F. Quinn @ 2005-09-03 10:24 UTC (permalink / raw
  To: gentoo-amd64

On 3/9/2005 1:23:23, Gustavo Felisberto (humpback@gentoo.org) wrote:
> I'm trying to LD_PRELOAD some 32 bits libs to use with 32 bits apps.
> file ./libartsdsp.so.0 ./libartsc.so.0 /lib32/libdl-2.3.5.so
> /opt/skype/skype.bin
> ../libartsdsp.so.0:     ELF 32-bit LSB shared object, Intel 80386,
> version 1 (SYSV), not stripped
> ../libartsc.so.0:       ELF 32-bit LSB shared object, Intel 80386,
> version 1 (SYSV), not stripped
> /lib32/libdl-2.3.5.so: ELF 32-bit LSB shared object, Intel 80386,
> version 1 (SYSV), stripped
> /opt/skype/skype.bin:  ELF 32-bit LSB executable, Intel 80386, version 1
> (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), 
> stripped 
> These are the libs and the executable, and what happens is:
> LD_PRELOAD=./libartsdsp.so.0:./libartsc.so.0:/lib32/libdl-2.3.5.so
> /opt/skype/skype.bin
> ERROR: ld.so: object './libartsdsp.so.0' from LD_PRELOAD cannot be
> preloaded: ignored.
> ERROR: ld.so: object './libartsc.so.0' from LD_PRELOAD cannot be
> preloaded: ignored.
> ERROR: ld.so: object '/lib32/libdl-2.3.5.so' from LD_PRELOAD cannot be
> preloaded: ignored.
> 
> Any ideas?

My guess would be that it can't find other 32-bit libraries that it needs,
like libpthread.so, libc.so and ld-linux.so. Try setting LD_LIBRARY_PATH to /lib32, if that's where they are.  I'm not an amd64 user, but I'd guess /lib32 isn't in ld.so.conf by default.

Kev.



-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-09-03 10:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-02 23:23 [gentoo-amd64] LD_PRELOAD of 32 bits libs Gustavo Felisberto
2005-09-03  2:32 ` [gentoo-amd64] " Duncan
2005-09-03 10:24 ` [gentoo-amd64] " Kevin F. Quinn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox