Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153646 - dev-perl/sdl-perl broken with mpeg flag and old libraries in /usr/local/lib
Summary: dev-perl/sdl-perl broken with mpeg flag and old libraries in /usr/local/lib
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-31 23:20 UTC by Mark Purtill
Modified: 2006-11-03 12:38 UTC (History)
0 users

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 Mark Purtill 2006-10-31 23:20:26 UTC
# emerge frozen-bubble
...
>>> Compiling source in /var/tmp/portage/frozen-bubble-1.0.0-r6/work/frozen-bubble-1.0.0 ...
Can't load '/usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/SDL_perl/SDL_perl.so' for module SDL_perl: /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/SDL_perl/SDL_perl.so: undefined symbol: SMPEG_playAudioSDL at /usr/lib/perl5/5.8.8/i686-linux/DynaLoader.pm line 230.
 at /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/SDL.pm line 13
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/SDL.pm line 13.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/SDL.pm line 13.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

    *** I need perl-SDL installed
make: *** [dirs] Error 1

!!! ERROR: games-arcade/frozen-bubble-1.0.0-r6 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  frozen-bubble-1.0.0-r6.ebuild, line 76:   Called die

!!! emake game failed
!!! If you need support, post the topmost build error, and the call stack if relevant.




# emerge --info
Portage 2.1.1-r1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) XP 1900+
Gentoo Base System version 1.12.5
Last Sync: Wed, 01 Nov 2006 06:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-ggdb -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-ggdb -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer nostrip sandbox sfperms strict userpriv"
GENTOO_MIRRORS="ftp://213.186.33.38/gentoo-distfiles/ ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.pacific.net.au/linux/Gentoo ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.osuosl.org/ "
LINGUAS="en ja"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=300"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/xemacs /usr/portage/local/layman/musicbrainz"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow X Xaw3d aac aalib alsa apm arts berkdb bindist bitmap-fonts bzip2 canna cdr cjk cli cracklib crypt cups debug dlloader doc dri dvd elibc_glibc emboss encode esd firefox foomaticdb fortran freetype freewnn gdbm gif gnome gpm gstreamer gtk gtk2 iconv imlib input_devices_joystick input_devices_keyboard input_devices_mouse ipv6 isdnlog java joystick jpeg kde kdexdeltas kernel_linux libg++ libwww linguas_en linguas_ja lm_sensors mad maildir mbox mikmod mmx mng mozsvg mp3 mpeg mule ncurses nls noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nodrm nojdepend nojsch nojython nolog4j nooro noregexp norhino noxalan noxerces nptl nptlonly ogg opengl oss pam pcre perl pic png pppd python qt qt3 qt4 quicktime readline reflection ruby scanner sdl session spell spl sse ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_fbdev video_cards_mga video_cards_vesa vorbis wmf xine xinerama xml xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS
Comment 1 SpanKY gentoo-dev 2006-11-02 11:14:26 UTC
has nothing to do with frozen-bubble

re-emerge sdl-perl
Comment 2 Mark Purtill 2006-11-02 12:27:07 UTC
I did, repeatedly.
Comment 3 Mark Purtill 2006-11-02 12:30:37 UTC
(Sorry for multiple comments; somehow the last one posted before I finished.)  

In fact, sdl-perl wasn't emerged at all before I tried emerging frozen-bubble.  I also tried unemerging sdl-perl and re-emerging it from scratch, and that didn't help either.

If this is a sdl-perl problem, feel free to re-assign as appropriate.
Comment 4 SpanKY gentoo-dev 2006-11-02 18:22:37 UTC
then try re-emerging libsdl/smpeg
Comment 5 Mark Purtill 2006-11-02 21:42:42 UTC
I tried re-emerging libsdl/smpeg, along with all the sld libraries; that had no effect.  I also tried revdep-rebuild and perl-clean, neither of which did anything.  Finally, I unemerged perl and all the modules and removed /usr/lib/perl5, and re-emerged them all.  That also had no effect.

Meanwhile, on another (virtual) machine I have access to, I tried emerging frozen-bubble, and it worked fine.  After playing around I little, I found that if I emerge -C smpeg and turn off the mpeg flag ("dev-perl/sdl-perl -mpeg" in /etc/portage/package.use) and re-emerge sdl-perl, then "perl -e 'use SDL'" works and I can emerge frozen-bubble.  (I suspect the mpeg flag is off on the virtual machine where the compilation works, but it's behind a firewall so I can't check now.)

I also find that if smpeg is installed when sdl-perl is emerged, then "perl -e 'use SDL'" gives the SMPEG_playAudioSDL not found error, even with the mpeg flag off.  (If the flag is on, then libsdl/smpeg is merged anyway.)

Finally, after all that, frozen_bubble crashes with the error:

        [[ Frozen-Bubble-1.0.0 ]]

  http://www.frozen-bubble.org/

  Copyright (c) 2000, 2001, 2002, 2003 Guillaume Cottenceau.
  Artwork: Alexis Younes <73lab at free.fr>
           Amaury Amblard-Ladurantie <amaury at linuxfr.org>
  Soundtrack: Matthias Le Bidan <matthias.le_bidan at caramail.com>
  Design & Programming: Guillaume Cottenceau <guillaume.cottenceau at free.fr>
  Level Editor: Kim and David Joham <[k|d]joham at yahoo.com>

  Sponsored by MandrakeSoft <http://www.mandrakesoft.com/>

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 2, as
  published by the Free Software Foundation.

[SDL Init] [Graphics...] [Levels] [Sound Init]
Ready.
/usr/bin/perl: symbol lookup error: /usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/fb_c_stuff/fb_c_stuff.so: undefined symbol: Mix_FadeInMusicPos

That may be another bug, but it may be another manifestation of the same problem.  (BTW, it doesn't happen on that virtual machine I mentioned, but that's got no sound at all.)



Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2006-11-02 22:06:51 UTC
just curious if it works with sdl-perl-1.20.3-r1
Comment 7 Mark Purtill 2006-11-02 22:37:15 UTC
The compilation works okay, despite the presence of smpeg.  But running frozen-bubble gets the same error about Mix_FadeInMusicPos.
Comment 8 SpanKY gentoo-dev 2006-11-02 23:15:47 UTC
what does `emerge libsdl -pv` show

how about:
readelf -s /usr/lib/libSDL_mixer.so | grep Fade
readelf -s /usr/lib/libsmpeg.so | grep playAudio
readelf -d /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/SDL_perl/SDL_perl.so
Comment 9 Mark Purtill 2006-11-03 09:34:35 UTC
readelf -d /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/SDL_perl/SDL_perl.so did the trick; it showed that SDL_perl was picking up some old sdl and smpeg libraries in /usr/local/lib/; deleting them fixed both problems.  I've updated the summary and mark as INVALID.  (But if anyone knows how to prevent the emerge from looking at /usr/local/lib, please let me know.)
Comment 10 SpanKY gentoo-dev 2006-11-03 12:38:35 UTC
the answer is: dont put things in /usr/local

the compiler is supposed to look there by design so that people can put their own modifications without screwing with /usr