Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91367 (ooo) - /usr/lib/libsandbox.so: cannot open shared object file
Summary: /usr/lib/libsandbox.so: cannot open shared object file
Status: RESOLVED FIXED
Alias: ooo
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-03 16:00 UTC by Mark D.
Modified: 2005-05-06 18:59 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sys-apps/sandbox/sandbox-1.2.5.ebuild (sandbox-1.2.5.ebuild,2.21 KB, text/plain)
2005-05-05 14:04 UTC, Jeremy Huddleston (RETIRED)
Details
sys-apps/sandbox/sandbox-1.2.5.ebuild (sandbox-1.2.5.ebuild,2.25 KB, text/plain)
2005-05-05 15:54 UTC, Jeremy Huddleston (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark D. 2005-05-03 16:00:01 UTC
I had app-office/openoffice-bin-1.1.4-r1 installed and working fine on my computer, decided to try out the masked openoffice 2.0 beta, emerged it. emerged fine. When I ran it, it pegged my cpu at 100% for a minute with some java process before failing. So I unmerged it and attempted to put older open office back on.
Unfortunately this is not possible anymore

Reproducible: Always
Steps to Reproduce:




app-office/openoffice-bin-1.1.4-r1  +java -kde 0 kB

Total size of downloads: 0 kB

Do you want me to merge these packages? [Yes/No] y
>>> emerge (1 of 1) app-office/openoffice-bin-1.1.4-r1 to /
>>> md5 files   ;-) openoffice-bin-1.1.1.ebuild
>>> md5 files   ;-) openoffice-bin-1.9.95.ebuild
>>> md5 files   ;-) openoffice-bin-1.1.4-r1.ebuild
>>> md5 files   ;-) files/digest-openoffice-bin-1.1.1
>>> md5 files   ;-) files/digest-openoffice-bin-1.9.95
>>> md5 files   ;-) files/digest-openoffice-bin-1.1.4-r1
>>> md5 files   ;-) files/1.1.1/ooffice-wrapper-1.3
>>> md5 files   ;-) files/1.1.4/ooffice-wrapper-1.3
>>> md5 files   ;-) files/1.9/ooffice-wrapper-1.9
>>> md5 src_uri ;-) OOo_1.1.4_LinuxIntel_install.tar.gz
>>> md5 src_uri ;-) libsot645li.so
>>> Unpacking source...
>>> Unpacking OOo_1.1.4_LinuxIntel_install.tar.gz to
/var/tmp/portage/openoffice-bin-1.1.4-r1/work
>>> Unpacking libsot645li.so to /var/tmp/portage/openoffice-bin-1.1.4-r1/work
unpack libsot645li.so: file format not recognized. Ignoring.
>>> Source unpacked.
>>> Test phase [not enabled]: app-office/openoffice-bin-1.1.4-r1

>>> Install openoffice-bin-1.1.4-r1 into
/var/tmp/portage/openoffice-bin-1.1.4-r1/image/ category app-office
 * Installing OpenOffice.org into build root...
./setup: error while loading shared libraries: /usr/lib/libsandbox.so: cannot
open shared object file: No such file or directory

!!! ERROR: app-office/openoffice-bin-1.1.4-r1 failed.
!!! Function src_install, Line 86, Exitcode 127
!!! Setup failed
Comment 1 Mark D. 2005-05-03 16:02:04 UTC
Portage 2.0.51.20-r5 (default-linux/amd64/2004.3, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.11
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.3
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache digest distlocks fixpackages sandbox strict"GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 # X a a52 aac aalib acpi alsa audio avi bidi bitmap-fonts cdr codecs computer's crypt cups dbus dvd dvdr eds esd faad fam flac font-server gdbm gif gnome gpm gstreamer gtk gtk2 hal hardware i'm imlib ipv6 java jp2 jpeg junit lzw lzw-tiff matroska mozilla moznocompose moznoirc moznomail mp3 mpeg ncurses nls not nptl nptlonly nvidia ogg oggvorbis opengl oss pam perl png python qt quicktime readline real samba scanner sdl server snmp spell sqlite ssl tcltk tcpd this truetype truetype-fonts type1-fonts usb userlocales v4l v4l2 vid vorbis wxwindows xine xml xml2 xmms xpm xrandr xv xvid zlib userland_GNU kernel_linux libc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 2 Andreas Proschofsky (RETIRED) gentoo-dev 2005-05-03 23:13:07 UTC
This does not look like a OOo bug. Do you have sys-apps/sandbox installed? If yes try to reinstall, looks like a symlink is missing
Comment 3 Mark D. 2005-05-03 23:17:34 UTC
I re-emerged sandbox, exactly the same error when compiling openoffice.
This sandbox thing is new... I could uninstall it, emerge an old version of portage, and then attempt to emerge openoffice...
Comment 4 Andreas Proschofsky (RETIRED) gentoo-dev 2005-05-04 10:09:03 UTC
Reassigning
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2005-05-04 12:14:45 UTC
Try to update to sandbox-1.2.5.
Comment 6 SpanKY gentoo-dev 2005-05-04 16:27:21 UTC
this is fixed in 1.2.5 now ... sync up and try again

2004.3 profiles had no multilib logic
Comment 7 Mark D. 2005-05-04 21:21:57 UTC
I observe no change while attempting to emerge openoffice-bin, after upgrading sandbox and portage. Should I upgrade my profile?
Comment 8 SpanKY gentoo-dev 2005-05-04 21:53:34 UTC
what does `file -L /usr/lib*/libsandbox.so` show ?

on my amd64/2004.3 it shows:
/usr/lib/libsandbox.so:   ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), stripped
/usr/lib32/libsandbox.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped
/usr/lib64/libsandbox.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), stripped

after that, i really have no idea what it takes for this stuff to work properly ... perhaps jeremy can fill us in on the details
Comment 9 Mark D. 2005-05-04 21:56:36 UTC
/usr/lib/libsandbox.so:   ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), stripped
/usr/lib64/libsandbox.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), stripped
Comment 10 Jeremy Huddleston (RETIRED) gentoo-dev 2005-05-05 02:31:22 UTC
mark, yeah, it looks like you don't have a 32bit sandbox library.  Did you try the latest sandbox ebuild?

az: Is HAVE_64BIT_ARCH working as expected?

Mark: Do you have a multilib gcc installed?
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2005-05-05 02:42:46 UTC
Well, yeah - but it is not in the CFLAGS when build for old 2004.3 amd64 profile ... Although I guess that should not really matter if he dont have a 32bit sandbox ...
Comment 12 SpanKY gentoo-dev 2005-05-05 05:44:22 UTC
should we be doing `append-flags -DSB_HAVE_64BIT_ARCH` under multilib configurations ?  as az said, we currently arent ...
Comment 13 Mark D. 2005-05-05 09:17:33 UTC
Jeremy, I'm using sandbox-1.2.5

No multilib:
[ebuild   R   ] sys-devel/gcc-3.4.3.20050110-r2  (-altivec) -bootstrap -boundschecking -build -debug -fortran -gcj +gtk -hardened -ip28 -multilib -multislot (-n32) (-n64) +nls -nocxx -objc -static (-uclibc) 0 kB
Comment 14 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-05-05 11:43:03 UTC
Sounds like no-multilib sandbox may be broken?  It doesn't have a multilib use flag...
Comment 15 Simon Stelling (RETIRED) gentoo-dev 2005-05-05 11:57:17 UTC
Mark is using 2004.3
Comment 16 Jeremy Huddleston (RETIRED) gentoo-dev 2005-05-05 14:04:18 UTC
Created attachment 58156 [details]
sys-apps/sandbox/sandbox-1.2.5.ebuild

Can you please test out this ebuild to make sure it builds the 32bit libsandbox
on 2004.3 for you.  I'll be much happier when we can do without all these hacks
in sandbox, glibc, etc...
Comment 17 SpanKY gentoo-dev 2005-05-05 15:02:44 UTC
with the src_install, shouldnt you make sure that the native ABI is the last one to get installed ?  otherwise who knows what kind of sandbox binary you'll end up with in /usr/bin/
Comment 18 Jeremy Huddleston (RETIRED) gentoo-dev 2005-05-05 15:44:42 UTC
vapier: it is.  get_install_abis returns the list of ABIS making sure that DEFAULT _ABI is the last one in the list.
Comment 19 Jeremy Huddleston (RETIRED) gentoo-dev 2005-05-05 15:54:30 UTC
Created attachment 58164 [details]
sys-apps/sandbox/sandbox-1.2.5.ebuild

Youu actually might need this one if the previous one didn't work.  It adds
-L/emul/... to CFLAGS for x86 to tell the linker where to find libc
Comment 20 Mark D. 2005-05-05 18:13:31 UTC
I tried both, they both have no effect.
Unless I'm doing this whole ebuild thing wrong....

cd /usr/portage/sys-apps/sandbox/
rm -rf *
cp /home/mark/sandbox-1.2.5.ebuild .
ebuild sandbox-1.2.5.ebuild digest
emerge sandbox
Comment 21 Jeremy Huddleston (RETIRED) gentoo-dev 2005-05-06 00:29:34 UTC
Mark, can you please show me the log... I wish I still had a 2004.3 chroot to test this with...
Comment 22 Jeremy Huddleston (RETIRED) gentoo-dev 2005-05-06 02:46:13 UTC
I just made a 2004.3/lib64 chroot and a 2004.3 chroot and verified that it does work there.  Mark, can you please be a little more specific?  Do you have a multilib gcc?  It looks like you don't have a multilib gcc, so you can't get a multilib sandbox.  I'm going to commit that change as -r1 as I've tested it on sparc32, sparc64, sparc64 multilib, x86, and amd64 2004.3, 2004.3/lib64 and 2005.0.

Comment 23 Mark D. 2005-05-06 12:44:38 UTC
1115408769: Started emerge on: May 06, 2005 12:46:09
1115408769:  *** emerge --verbose --ask --buildpkg openoffice-bin
1115408770:  >>> emerge (1 of 1) app-office/openoffice-bin-1.1.4-r1 to /
1115408770:  === (1 of 1) Cleaning (app-office/openoffice-bin-1.1.4-r1::/usr/portage/app-office/openoffice-bin/openoffice-bin-1.1.4-r1.ebuild)
1115408771:  === (1 of 1) Compiling/Packaging (app-office/openoffice-bin-1.1.4-r1::/usr/portage/app-office/openoffice-bin/openoffice-bin-1.1.4-r1.ebuild)
1115408775:  *** terminating.

No, no multilib
Comment 24 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-05-06 13:45:19 UTC
You cannot emerge anything-bin without multilib.  That's what multilib is for, to enable -bin emerges.  This means that currently, no openoffice without multilib.  The next major rev of openoffice is supposed to have native amd64 support.
Comment 25 Mark D. 2005-05-06 18:59:22 UTC
Cool, multilib fixes everything.

Though, this seriously makes me wonder why openoffice-bin was working before without multilib.