Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7573 - smpeg-0.4.4-r4 doesn't build well with gcc 3.2
Summary: smpeg-0.4.4-r4 doesn't build well with gcc 3.2
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: Normal major (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Blocks: 7289
  Show dependency tree
Reported: 2002-09-06 05:41 UTC by jawed hancali
Modified: 2003-09-23 20:32 UTC (History)
1 user (show)

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

new patch with gcc3.2 (smpeg-0.4.4-gcc-3.1.patch,276 bytes, patch)
2002-09-06 05:43 UTC, jawed hancali
Details | Diff
smpeg ebuild that also works for gcc3.2 (smpeg-0.4.4-r4.ebuild,1.59 KB, text/plain)
2002-09-25 17:50 UTC, Vince Verleye
error log (log,46.72 KB, text/plain)
2002-09-27 12:02 UTC, Andreas Kotowicz
error log (emerge.log,47.92 KB, text/plain)
2003-08-31 16:18 UTC, Dennis Saenger

Note You need to log in before you can comment on or make changes to this bug.
Description jawed hancali 2002-09-06 05:41:43 UTC
if you try to build something with you get some unresolved
symbols (ldd -r /usr/lib/ will show the unresolved symbols)

this is because isn't linked with libgcc_s
the problem is resolved if we link it with libstdc++ instead of libsupc++

so here is a patch to apply instead of the gcc3.1 one
Comment 1 jawed hancali 2002-09-06 05:43:46 UTC
Created attachment 3703 [details, diff]
new patch with gcc3.2

link with libstdc++ instead of libsupc++
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2002-09-23 08:45:10 UTC

     Getting feedback from my bug users that this patch resolves their sdl 
issues. Any chance on the patch being included in portage?
Comment 3 Vince Verleye 2002-09-25 17:50:12 UTC
Created attachment 4190 [details]
smpeg ebuild that also works for gcc3.2

Save the patch ( ) as

Place this submitted ebuild in /usr/portage/media-libs/smpeg/files/ to
overwrite the old one.

To get frozen-bubble work:
emerge libsdl smpeg sdl-mixer frozen-bubble

(so you'll need to rebuild whatever needs smpeg to get something working)

It works here.. 
Have fun.

PS: Have a look at the code, it's probably not that good and all of that, and
it probably should be r5. Use it if you want to, change it if you like :)
Comment 4 Vince Verleye 2002-09-25 17:58:03 UTC
Should ofcourse be:

Place this submitted ebuild as
/usr/portage/media-libs/smpeg/smpeg-0.4.4-r4.ebuild to
overwrite the old one.

Sorry about that.
Comment 5 Andreas Kotowicz 2002-09-27 12:00:35 UTC
this patch does not work for me :( see my log
Comment 6 Andreas Kotowicz 2002-09-27 12:02:10 UTC
Created attachment 4258 [details]
error log

emerge using your patch and new ebuild still does not work
Comment 7 Vince Verleye 2002-10-01 09:21:57 UTC

That doesn't seem related to this bug though. Post on
if you haven't already, perhaps someone can come up with a solution to that.
Comment 8 Andreas Kotowicz 2002-10-07 11:31:14 UTC
Vince: you're right. there was a broken link causing this problem
Comment 9 Chris Williams 2003-01-07 00:38:55 UTC
This problem of unresolved symbols does not seem to hold under GCC 3.2.1.  On my
machine _without_ the Bug 7573 patch:
[code]# ldd /usr/lib/ => /usr/lib/ (0x4006f000) => /lib/ (0x400e2000) =>
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/ (0x40132000) => /lib/ (0x401ff000) => /lib/ (0x40222000) => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/
(0x40350000) => /usr/lib/ (0x40358000) => /lib/ (0x403e5000) => /usr/kde/3/lib/ (0x403e8000) => /usr/lib/ (0x403ee000) => /usr/lib/ (0x403f6000) => /usr/X11R6/lib/ (0x4041e000) => /usr/X11R6/lib/ (0x404fe000) => /usr/lib/ (0x4050f000)
        /lib/ => /lib/ (0x80000000)

# qpkg -I -v gcc 
sys-devel/gcc-3.2.1 *

# qpkg -I -v smpeg
media-libs/smpeg-0.4.4-r4 *

# emerge info
Portage 2.0.46-r4 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2)
System uname: 2.4.20 i686 AMD Athlon(TM) XP 2400+
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg gnome libg++ mikmod mmx
mpeg ncurses nls pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib alsa
gdbm berkdb slang readline arts tetex svga java X sdl gpm tcpd pam libwww ssl
perl python esd imlib oggvorbis gtk qt kde motif opengl mozilla cdr tcltk"
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
CXXFLAGS="-mcpu=athlon-xp -O3 -pipe"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"

So all is well.  The library shows none of the unresolved symbols the bug talks of.
Comment 10 SpanKY gentoo-dev 2003-07-09 12:40:49 UTC
i was able to build it with gcc-3.2.3
Comment 11 Heinrich Wendel (RETIRED) gentoo-dev 2003-07-26 04:53:38 UTC
seems to work -> close
Comment 12 Dennis Saenger 2003-08-31 16:18:36 UTC
Created attachment 16874 [details]
error log

emerge of smpeg using the new ebuild and the patch does not work here.
# gcc -v
gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)
Comment 13 SpanKY gentoo-dev 2003-09-23 20:32:31 UTC
your problem is unrelated to a gcc bug, you're probably missing a few sdl libraries

make a new bug if you cant track it down