Subject: linux emulation finding wrong libraries?
To: None <netbsd-help@netbsd.org>
From: J. Clifford Dyer <webmaster@cacradicalgrace.org>
List: netbsd-help
Date: 12/04/2006 09:41:08
I'm having trouble getting linux emulation to work properly.  I have the
Suse (9.X) packages installed, but when I run a linux binary, I get
errors regarding version information on the related libraries, e.g.:

$ skype
./skype: /usr/lib/libpthread.so.0: no version information available
(required by ./skype)
./skype: /usr/lib/libpthread.so.0: no version information available
(required by ./skype)
./skype: /usr/lib/libpthread.so.0: no version information available
(required by ./skype)
./skype: /usr/lib/libpthread.so.0: no version information available
(required by ./skype)
./skype: /usr/lib/libgcc_s.so.1: version `GLIBC_2.0' not found (required
by ./skype)
./skype: /usr/lib/libgcc_s.so.1: version `GLIBC_2.0' not found (required
by /usr/lib/libstdc++.so.5)

$ soffice
/usr/pkg/openoffice.org2.0/program/javaldx: /usr/lib/libpthread.so.0: no
version information available (required by
/usr/pkg/openoffice.org2.0/program/libuno_sal.so.3)
/usr/pkg/openoffice.org2.0/program/javaldx: /usr/lib/libpthread.so.0: no
version information available (required by
/usr/pkg/openoffice.org2.0/program/libuno_sal.so.3)
/usr/pkg/openoffice.org2.0/program/javaldx: /usr/lib/libpthread.so.0: no
version information available (required by
/usr/pkg/openoffice.org2.0/program/libxml2.so.2)
/usr/pkg/openoffice.org2.0/program/javaldx: /usr/lib/libpthread.so.0: no
version information available (required by
/usr/pkg/openoffice.org2.0/program/libxml2.so.2)
/usr/pkg/openoffice.org2.0/program/javaldx: symbol lookup error:
/usr/lib/libpthread.so.0: undefined symbol: __isthreaded
/usr/pkg/openoffice.org2.0/program/soffice.bin:
/usr/lib/libpthread.so.0: no version information available (required by
/usr/pkg/openoffice.org2.0/program/libvcl680li.so)
/usr/pkg/openoffice.org2.0/program/soffice.bin:
/usr/lib/libpthread.so.0: no version information available (required by
/usr/pkg/openoffice.org2.0/program/libsvt680li.so)
/usr/pkg/openoffice.org2.0/program/soffice.bin:
/usr/lib/libpthread.so.0: no version information available (required by
/usr/pkg/openoffice.org2.0/program/libtl680li.so)
/usr/pkg/openoffice.org2.0/program/soffice.bin:
/usr/lib/libpthread.so.0: no version information available (required by
/usr/pkg/openoffice.org2.0/program/libuno_sal.so.3)
/usr/pkg/openoffice.org2.0/program/soffice.bin:
/usr/lib/libpthread.so.0: no version information available (required by
/usr/pkg/openoffice.org2.0/program/libuno_sal.so.3)
/usr/pkg/openoffice.org2.0/program/soffice.bin:
/usr/lib/libpthread.so.0: no version information available (required by
/usr/pkg/openoffice.org2.0/program/libicuuc.so.26)
/usr/pkg/openoffice.org2.0/program/soffice.bin:
/usr/lib/libpthread.so.0: no version information available (required by
/usr/pkg/openoffice.org2.0/program/libxml2.so.2)
/usr/pkg/openoffice.org2.0/program/soffice.bin:
/usr/lib/libpthread.so.0: no version information available (required by
/usr/pkg/openoffice.org2.0/program/libxml2.so.2)
/usr/pkg/openoffice.org2.0/program/soffice.bin: symbol lookup error:
/usr/lib/libpthread.so.0: undefined symbol: __isthreaded

If I run it as root, (`sudo skype`, for example), it works.  In that
case, skype freezes up my X when I try to dial a number, but that's
another issue for another time....  For now, any thoughts on how I can
get linux emulation to grab libraries properly for all users?

FWIW, permissions look okay:

$ ls -l /emul/linux/lib|grep pthread
-rwxr-xr-x  1 root  wheel    90390 Nov 20 11:11 libpthread-0.10.so
lrwxr-xr-x  1 root  wheel       18 Nov 20 11:11 libpthread.so.0 ->
libpthread-0.10.so

$ ls -ld /emul/linux/lib
drwxr-xr-x  4 root  wheel  2048 Nov 20 11:11 /emul/linux/lib


Cheers,
Cliff