Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261958 - games-simulation/flightgear-1.9.1 failed to load libopenal.so.0
Summary: games-simulation/flightgear-1.9.1 failed to load libopenal.so.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-10 09:18 UTC by Bas van Dijk
Modified: 2010-01-06 18:26 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bas van Dijk 2009-03-10 09:18:11 UTC
I just upgraded to the unstable flightgear-1.9.1.

When I try to execute it I get:

$ fgfs
fgfs: error while loading shared libraries: libopenal.so.0: cannot open shared object file: No such file or directory

Note that I have openal-1.6.372 installed:

$ equery files openal
...
/usr/lib/libopenal.so -> libopenal.so.1
/usr/lib/libopenal.so.1 -> libopenal.so.1.6.372
/usr/lib/libopenal.so.1.6.372
...

I tried revdep-rebuild but it didn't find any missing shared library dependencies. Then I re-emerged both simgear-1.9.1 (a dependency of flightgear which depends on openal) and flightgear-1.9.1. The problem remained.

$ emerge --info
Portage 2.1.6.7 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-i686-AMD_Athlon-tm-_64_Processor_3200+-with-glibc2.0
Timestamp of tree: Tue, 10 Mar 2009 01:45:02 +0000
distcc 3.0 i686-pc-linux-gnu [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.6.3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB nl"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/local/layman/haskell /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac accessibility acpi alsa apache2 async bash-completion berkdb bzip2 cairo captury cddb cdparanoia cdr cdrom cli cracklib crypt cups dbus divx djvu dnd doc dts dv dvb dvd dvdr dvdread dvi dvi2tty eds emacs emboss enca encode escreen evo exif extra fam fame fbcon fbcondecor ffmpeg fftw firefox flac fortran gdbm ghcbootstrap gif gpm graphics graphviz gs gtk gtk2 hal haskell hdri history html htmlhandbook iconv ide imap irc isdnlog java javascript jbig joystick jpeg jpeg2k kde kipi kpathsea lame latex lcms libnotify lzo mad midi mikmod mmap mmx mmxext mng mozbranding mozdevelop moznopango mozsvg mp2 mp3 mp4 mpeg mpeg2 mplayer msn mudflap musepack music musicbrainz ncurses nls nptl nptlonly nsplugin ntfs ogg openal openexr opengl openmp pam pcre pdf perl png ppds pppd pstricks python qt-static qt3 qt3support qt4 quicktime rar readline realmedia reflection reiserfs rtc samba science sdl session sound speex spell spl srt sse sse2 ssl startup-notification statistics subtitles subversion svg svga sysfs tcpd tetex tex4ht tga theora threads tiff toolkit-scroll-bars transcode truetype unicode unzip usb v4l v4l2 vidix visualization vnc vorbis win32codecs wma wmf wmp x264 x86 xanim xcb xcomposite xft xine xml xorg xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB nl" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

regards,

Bas


Reproducible: Always
Comment 1 Bas van Dijk 2009-03-10 09:32:40 UTC
Note that it works when I make a symlink from /usr/lib/libopenal.so.0 to /usr/lib/libopenal.so

However, this is of course not a real solution.
Comment 2 Tupone Alfredo gentoo-dev 2009-03-10 16:38:03 UTC
Can you run this command:

readelf -d /usr/games/bin/fgfs  | grep NEEDED
Comment 3 Bas van Dijk 2009-03-11 12:46:07 UTC
(In reply to comment #2)
> Can you run this command:
> 
> readelf -d /usr/games/bin/fgfs  | grep NEEDED
> 

sure

$ readelf -d /usr/games/bin/fgfs  | grep NEEDED
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libSDL-1.2.so.0]
 0x00000001 (NEEDED)                     Shared library: [libglut.so.3]
 0x00000001 (NEEDED)                     Shared library: [libGLU.so.1]
 0x00000001 (NEEDED)                     Shared library: [libGL.so.1]
 0x00000001 (NEEDED)                     Shared library: [libXmu.so.6]
 0x00000001 (NEEDED)                     Shared library: [libXt.so.6]
 0x00000001 (NEEDED)                     Shared library: [libSM.so.6]
 0x00000001 (NEEDED)                     Shared library: [libICE.so.6]
 0x00000001 (NEEDED)                     Shared library: [libXi.so.6]
 0x00000001 (NEEDED)                     Shared library: [libXext.so.6]
 0x00000001 (NEEDED)                     Shared library: [libX11.so.6]
 0x00000001 (NEEDED)                     Shared library: [libdl.so.2]
 0x00000001 (NEEDED)                     Shared library: [libalut.so.0]
 0x00000001 (NEEDED)                     Shared library: [libopenal.so.1]
 0x00000001 (NEEDED)                     Shared library: [libm.so.6]
 0x00000001 (NEEDED)                     Shared library: [libosgParticle.so.55]
 0x00000001 (NEEDED)                     Shared library: [libosgSim.so.55]
 0x00000001 (NEEDED)                     Shared library: [libosgViewer.so.55]
 0x00000001 (NEEDED)                     Shared library: [libosgGA.so.55]
 0x00000001 (NEEDED)                     Shared library: [libosgText.so.55]
 0x00000001 (NEEDED)                     Shared library: [libosgDB.so.55]
 0x00000001 (NEEDED)                     Shared library: [libosgUtil.so.55]
 0x00000001 (NEEDED)                     Shared library: [libosg.so.55]
 0x00000001 (NEEDED)                     Shared library: [libOpenThreads.so.11]
 0x00000001 (NEEDED)                     Shared library: [libosgFX.so.55]
 0x00000001 (NEEDED)                     Shared library: [libstdc++.so.6]
 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]

Interestingly libopenal.so.0 isn't mentioned but libopenal.so.1 is.
Comment 4 Tupone Alfredo gentoo-dev 2009-03-11 13:25:56 UTC
So .. 
the only things that seems to me that can use the audio is libalut.so

You can do the 
readelf -d /usr/lib/libalut.so.0 | grep NEEDED
to see if it is runtime depending on libopenal.so.0

If so do 

equery belongs /usr/lib/libalut.so.0 

to see what package install it (probably media-libs/freealut)
and rebuild.


Comment 5 Bas van Dijk 2009-03-11 14:07:11 UTC
(In reply to comment #4)
> So .. 
> the only things that seems to me that can use the audio is libalut.so
> 
> You can do the 
> readelf -d /usr/lib/libalut.so.0 | grep NEEDED
> to see if it is runtime depending on libopenal.so.0
> 
> If so do 
> 
> equery belongs /usr/lib/libalut.so.0 
> 
> to see what package install it (probably media-libs/freealut)
> and rebuild.
> 

Thanks, reemerging freealut did the trick.
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2009-03-11 15:16:06 UTC
Probably running revdep-rebuild would have worked as well - which should be run regularly on a gentoo box.
Comment 7 Bas van Dijk 2009-03-11 15:23:36 UTC
(In reply to comment #6)
> Probably running revdep-rebuild would have worked as well - which should be run
> regularly on a gentoo box.
 
Well, like I explained in the bugreport I tried that (I do a revdep-rebuild after every update automatically) but it didn't work.

Thanks for your help.

Bas