Date: 17 Jun 2001 05:36:18 -0000 From: dev-null@no-id.com To: freebsd-questions@freebsd.org Subject: RE: Linux emulation problem Message-ID: <20010617053618.28976.qmail@propane.zoomph.net>
next in thread | raw e-mail | index | archive | help
The reason I think it may be the problem below is because:
bash-2.04$ brandelf *
File 'libjpeg.so.62' is of brand 'SVR4' (0).
File 'libpng.so.2' is of brand 'SVR4' (0).
bash-2.04$ file *
libjpeg.so.62: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), not stripped
libpng.so.2: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), not stripped
---------------------------
I think I may have worked out the problem. Could someone confirm?
I could be wrong (not my programming area), but it seems the dynamic linker is taking into consideration different ELF header e_ident members than brandelf(1). Or maybe I'm using brandelf(1) incorrectly.
sys/elf_common.h shows the following:
#define EI_OSABI 7 /* Operating system / ABI identification */
#define EI_ABIVERSION 8 /* ABI version */
#define OLD_EI_BRAND 8 /* Start of architecture identification. */
Could there be some mix-up in there? As I said, it's not my area and I only gleaned over a few ELF header files...
Thanks.
---------------------------------------
Hi,
I'm running FreeBSD 4.2-RELEASE with linux binary emulation. I recently downloaded
the linux port of the opera web browser from www.opera.com, but I'm encountering
a shared library problem that has me a bit puzzled.
Any suggestions?
--
bash-2.04$ cd opera-5.0-static.i386
bash-2.04$ ls
LICENSE images opera.adr opera.xpm opera_32x32.png styles
buttons install.sh opera.desktop opera_16x16.png opera_48x48.png
help opera opera.wmconfig opera_22x22.png runme.sh
bash-2.04$ ldd opera
opera:
libm.so.6 => /lib/libm.so.6 (0x28625000)
libjpeg.so.62 => not found
libpng.so.2 => not found
libpthread.so.0 => /lib/libpthread.so.0 (0x28642000)
libdl.so.2 => /lib/libdl.so.2 (0x28653000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x28656000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x286fa000)
libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x28707000)
libc.so.6 => /lib/libc.so.6 (0x2871a000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x28610000)
libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x2880d000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x28859000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x28862000)
bash-2.04$ mkdir lib
bash-2.04$ cp /usr/local/lib/libjpeg.so.9 lib/libjpeg.so.62
bash-2.04$ cp /usr/local/lib/libpng.so.4 lib/libpng.so.2
bash-2.04$ export LD_LIBRARY_PATH=./lib
bash-2.04$ ldd opera
opera:
opera: error in loading shared libraries: libjpeg.so.62: ELF file OS ABI invalid.
opera: exit status 127
bash-2.04$ cd lib
bash-2.04$ brandelf *
File 'libjpeg.so.62' is of brand 'FreeBSD' (9).
File 'libpng.so.2' is of brand 'FreeBSD' (9).
bash-2.04$ brandelf -f 0 *
bash-2.04$ brandelf *
File 'libjpeg.so.62' is of brand 'SVR4' (0).
File 'libpng.so.2' is of brand 'SVR4' (0).
bash-2.04$ cd ..
bash-2.04$ ldd opera
opera:
opera: error in loading shared libraries: libjpeg.so.62: ELF file ABI version invalid.
opera: exit status 127
bash-2.04$
--
This message has been sent via an anonymous mail relay at www.no-id.com.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010617053618.28976.qmail>
