Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95051 - sdl-perl tosses "undefined symbol: filledpieColor"
Summary: sdl-perl tosses "undefined symbol: filledpieColor"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-04 12:35 UTC by Michael Hill
Modified: 2006-11-18 08:05 UTC (History)
2 users (show)

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


Attachments
sdl-perl-2.1.3-gfxPie.patch (sdl-perl-2.1.3-gfxPie.patch,904 bytes, patch)
2006-09-13 11:39 UTC, Mark Glines
Details | Diff
ebuild-apply-patch.diff (ebuild-apply-patch.diff,328 bytes, patch)
2006-09-13 11:41 UTC, Mark Glines
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Hill 2005-06-04 12:35:28 UTC
I first noticed this when emerge -u world wanted to upgrade frozen-bubble a
month or two ago.  That failed with a Perl error, and I traced it to SDL_perl.

Reproducible: Always
Steps to Reproduce:
1. perl -e 'use SDL;'


Actual Results:  
Can't load
'/usr/lib/perl5/vendor_perl/5.8.6/i686-linux/auto/SDL_perl/SDL_perl.so' for
module SDL_perl:
/usr/lib/perl5/vendor_perl/5.8.6/i686-linux/auto/SDL_perl/SDL_perl.so: undefined
symbol: filledpieColor at /usr/lib/perl5/5.8.6/i686-linux/DynaLoader.pm line 230.
 at /usr/lib/perl5/vendor_perl/5.8.6/i686-linux/SDL.pm line 13
Compilation failed in require at
/usr/lib/perl5/vendor_perl/5.8.6/i686-linux/SDL.pm line 13.
BEGIN failed--compilation aborted at
/usr/lib/perl5/vendor_perl/5.8.6/i686-linux/SDL.pm line 13.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.


Expected Results:  
Should have run without an error.

I've had occasional problems with gcc-3.4 that are resolved by using gcc-3.3, so
I tried using gcc-3.3.5-r1 to rebuild sdl-perl.  That didn't solve the problem.

[mhill@shadowfax:~] 13:16:52 $ emerge info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.11-gentoo-r9 i686)
=================================================================
System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.6.12
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16-r1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /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/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache digest distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://cudlug.cudenver.edu/gentoo/
http://www.gtlib.cc.gatech.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X acpi alsa apm audiofile avi bcmath berkdb bitmap-fonts bonobo
bzlib calendar caps cdb cdr crypt cscope ctype cups curl dba dbase dbx dedicated
dga dlloader doc dvd dvdr emboss encode esd exif fbcon fftw flac flatfile
font-server foomaticdb freetds ftp gd gif ginac gmp gnome gnutls gpm gtk gtk2
hardened hardenedphp imagemagick imlib inifile jack jpeg kde libwww mbox
memlimit mhash mikmod milter mime mmap mmx mng mozilla mp3 mpeg mpi mysql
ncurses nocardbus nocd nomotif odbc ogg oggvorbis opengl oss pam pcntl pcre pda
pdflib perl php pic pie plotutils png posix ppds python qt quicktime readline
real samba sdl shared sharedmem simplexml sndfile sockets speex spell spl sse
ssl svg sysvipc tcltk tcpd tidy tiff tokenizer truetype truetype-fonts
type1-fonts usb vhosts videos vorbis wmf xine xml xml2 xmlrpc xmms xpm xsl xv
xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-04 12:48:58 UTC
/usr/portage/dev-lang/perl/files/perl-cleaner is your friend. ;-)

*** This bug has been marked as a duplicate of 92186 ***
Comment 2 Michael Hill 2005-06-05 23:01:15 UTC
Begging your pardon, but the problem I am experiencing has nothing at all to do
with bug 92186.  That one involved sdl-perl not being built as a dependency for
frozen-bubble.  This one has nothing to do with frozen-bubble, save that it was
an attempted update of that package that stumbled over this problem with sdl-perl.

My problem, again, is that the current sdl-perl package (sdl-perl-2.1.2-r1,
built May 11), which my system has had installed since at least version
sdl-perl-1.20.3, built on Nov 27, 2004, is manifesting a missing symbol when
invoked from Perl.

I ran the suggested command (perl-cleaner); it helpfully rebuilt about 20 module
packages, but didn't fix the problem.  I also rebuilt libsdl-1.2.8-r1, to no avail.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-06-06 00:37:32 UTC
(In reply to comment #2)
> I ran the suggested command (perl-cleaner); it helpfully rebuilt about 20 module
> packages, but didn't fix the problem.  I also rebuilt libsdl-1.2.8-r1, to no
avail.


Well, sorry that it did not fix the sdl-perl problem. At least now you have a
saner perl setup. :-)
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2005-06-06 01:57:25 UTC
(While I install a fresh copy on my new 2005.0 laptop - my desktop has no 
problems with SDL) - have you upgraded any of the other sdl related packages on 
your box since installing sdl-perl? Looking at the DEP's, besides libsdl there 
are at least 4 other affecting packages: 
        >=media-libs/sdl-mixer-1.2.5 
        >=media-libs/sdl-image-1.2.2 
        >=media-libs/sdl-gfx-2.0.3 
        >=media-libs/sdl-net-1.2.4 
I know munging your emerge.log can be painful. If you have genlop installed you 
can always genlop -s sdl to see the emerge dates on anything related. 
Comment 5 Michael Tharp 2005-07-02 19:54:28 UTC
Confirm bug, even after re-merging sdl-perl. Probably a symbol no longer in SDL
that sdl-perl never purged, as I can't find a reference to it in
/usr/lib/libSDL*.so anywhere.
Comment 6 Michael Hill 2005-07-02 21:28:18 UTC
Sorry, I should've replied a long time ago.  "genlop -s sdl" shows the most
recent activity:

     Sat Jun  4 08:41:14 2005 >>> dev-perl/sdl-perl-2.1.2-r1
     Sat Jun  4 08:45:14 2005 >>> dev-perl/sdl-perl-2.1.2-r1
     Sat Jun  4 23:28:18 2005 >>> media-libs/libsdl-1.2.8-r1
     Sat Jun  4 23:29:40 2005 >>> dev-perl/sdl-perl-2.1.2-r1
     Sat Jun 11 10:25:01 2005 >>> media-libs/sdl-mixer-1.2.6
     Sat Jun 11 10:25:34 2005 >>> media-libs/sdl-image-1.2.4
     Sat Jun 11 10:26:06 2005 >>> media-libs/sdl-gfx-2.0.13
     Sat Jun 11 10:26:25 2005 >>> media-libs/sdl-net-1.2.5

The only other SDL-related packages I have besides the ones named above are
media-libs/sdl-sound and media-libs/sdl-ttf, neither of which seems at all
likely to have a "filledpieColor" symbol.  However, I will try a quick re-emerge
of those two.
Comment 7 Michael Hill 2005-07-02 21:32:30 UTC
Nope, no change.  :^(
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-09-04 04:12:24 UTC
Mass re-assign.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2005-11-09 09:11:09 UTC
Mass re-assign.
Comment 10 Mark Glines 2006-09-13 11:39:48 UTC
Created attachment 96888 [details, diff]
sdl-perl-2.1.3-gfxPie.patch

Apparently sdl-gfx-2.0.12 and above changed the capitalization of the functions "filledpieColor" and "filledpieRGBA" to "filledPieColor" and "filledPieRGBA".  Here's a patch to detect versions and call the right function accordingly, borrowed from Fedora: http://www.redhat.com/archives/fedora-extras-commits/2006-August/msg01200.html)

Mark
Comment 11 Mark Glines 2006-09-13 11:41:47 UTC
Created attachment 96889 [details, diff]
ebuild-apply-patch.diff

And here's a patch to the sdl-perl ebuild, to use it.

Before applying the patch, frozen-bubble does not build, and a previously built copy of it doesn't run.

After applying this patch, frozen-bubble builds and runs correctly.
Comment 12 Michael Hill 2006-09-13 16:28:52 UTC
Mark, thanks for the update.  'Sfunny - just a couple weeks ago I got the jones for Frozen Bubble again, and reinstalled it (I had removed it a long time back because upgrading didn't work), with sdl-perl as a prereq.  Lo and behold, both emerged just fine.  I now have:

dev-perl/sdl-perl-2.1.3-r2
games-arcade/frozen-bubble-1.0.0-r6

So apparently one or both packages got fixed at some point while I wasn't looking.  :^)

If there's no objection, as the original reporter I think we could change this one to FIXED.
Comment 13 Olliver Schinagl 2006-09-20 06:09:15 UTC
Isn't fixed here yet running ~x86 (nor on my x86 where I noticed it).

I'll test the patches and see if it helps.
Comment 14 Olliver Schinagl 2006-09-20 06:18:30 UTC
fixed it on my box. so get these patches into the tree and close this one : )
Comment 15 Michael Cummings (RETIRED) gentoo-dev 2006-11-18 08:05:44 UTC
patch applied, sdl-perl bumped a revision, frozen-bubble tested and seems to play great :)