<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>113558</bug_id>
          
          <creation_ts>2005-11-25 07:50 0000</creation_ts>
          <short_desc>smpeg gives &quot;not in scope&quot; error when compiled with gcc-4.1</short_desc>
          <delta_ts>2005-12-16 19:09:41 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>GCC Porting</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>rmmarm@sdf.lonestar.org</reporter>
          <assigned_to>vapier@gentoo.org</assigned_to>
          <cc>hanno@gentoo.org</cc>
    
    <cc>ryan@epicgames.com</cc>

      

      
          <long_desc isprivate="0">
            <who>rmmarm@sdf.lonestar.org</who>
            <bug_when>2005-11-25 07:50:01 0000</bug_when>
            <thetext>When compiling smpeg with gcc-4.1, the build of &quot;audio/MPEGaudio.cpp&quot; fails with 
&quot;Play_MPEGAudioSDL not in scope&quot;.  That function is a friend of the MPEGAudio class.  I suspect 
new scoping rules caused this to break, but I&apos;m not sure.  I managed to get it working by putting a 
&quot;using namespace std;&quot; at the top of the file and declaring those functions before they are 
&quot;befriended&quot;.  I will attach a patch that worked for me once this bug has been 
filed.

Reproducible: Always
Steps to Reproduce:
1. Install GCC-4.1
2. Try to compile smpeg
3. Watch Rome Burn.
Actual Results:  
Compile failed.

Expected Results:  
Compile should succeed.

Portage 2.0.53_rc7 (default-linux/x86/2005.0, gcc-4.1.0-beta20051112, glibc-2.3.6-r1, 2.6.13-
gentoo-r4 i686)
============================================================
=====
System uname: 2.6.13-gentoo-r4 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.12.0_pre10
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=athlon-xp -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/grass60/etc /usr/kde/2/share/config /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/bind /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -march=athlon-xp -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig ccache distlocks sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/
gentoo&quot;
MAKEOPTS=&quot;&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 3dnow X Xaw3d aalib acpi ada aim alsa apache apache2 apm arts artswrappersuid 
audiofile avi bash-completion berkdb bidi bindist bitmap-fonts bonobo browserplugin bzip2 bzlib 
calendar cdr crypt cscope ctype cups curl curlwrappers dba dedicated dga dio directfb divx4linux 
doc dvd dvdr eds emboss encode esd ethereal exif expat fam fastcgi ffmpeg fftw firefox flac flash 
flatfile foomatic foomaticdb fortran freetds ftp gb gcj gd gdbm ggi gif gimpprint glut gmp gnome 
gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile iconv icq idn imagemagick imap imlib ipv6 jabber 
jack java jikes jpeg junit kde kdexdeltas ladcca lcms libg++ libwww lua mad mbox mcal mhash 
mikmod mime ming mmap mmx mng motif mozcalendar mozilla mp3 mpeg mysql mysqli nas 
ncurses network nls nocd objc ogg oggvorbis openal opengl oscar oss pam pcntl pcre pda pdflib 
perl php pie plotutils plugin png posix postgres ppds python qt quicktime quotes readline recode 
ruby sasl scanner sdl session shared slang sockets softmmu speex spell spl ssl sysvipc szip tcltk 
tcpd tetex theora tidy tiff truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 videos 
vorbis win32codecs wmf wxwindows xine xinerama xml xml2 xmms xpm xsl xv xvid yahoo zlib 
userland_GNU kernel_linux elibc_glibc&quot;
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rmmarm@sdf.lonestar.org</who>
            <bug_when>2005-11-25 07:53:03 0000</bug_when>
            <thetext>Created an attachment (id=73579)
Patch that allows smeg to compile with gcc-4
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-12-16 17:11:29 0000</bug_when>
            <thetext>fixed in cvs, thanks</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ryan@epicgames.com</who>
            <bug_when>2005-12-16 19:09:41 0000</bug_when>
            <thetext>
(This patch is now in smpeg&apos;s CVS at icculus.org, too.)

--ryan.

</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>73579</attachid>
            <date>2005-11-25 07:53 0000</date>
            <desc>Patch that allows smeg to compile with gcc-4</desc>
            <filename>smpeg-0.4.4-gcc4.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIE1QRUdhdWRpby5oCTIwMDUtMTEtMjUgMTA6Mjk6NDcuMDAwMDAwMDAwIC0wNTAwCisrKyBN
UEVHYXVkaW8uaAkyMDA1LTExLTI1IDEwOjMxOjA1LjAwMDAwMDAwMCAtMDUwMApAQCAtMzIsMTIg
KzMyLDE2IEBACiAjaW5jbHVkZSAiTVBFR3JpbmcuaCIKICNlbmRpZgogCit2b2lkIFBsYXlfTVBF
R2F1ZGlvU0RMKHZvaWQgKnVkYXRhLCBVaW50OCAqc3RyZWFtLCBpbnQgbGVuKTsKKyNpZmRlZiBU
SFJFQURFRF9BVURJTworICAgIGludCBEZWNvZGVfTVBFR2F1ZGlvKHZvaWQgKnVkYXRhKTsKKyNl
bmRpZgorCiBjbGFzcyBNUEVHc3RyZWFtOwogCiAvKiBNUEVHL1dBVkUgU291bmQgbGlicmFyeQot
CiAgICAoQykgMTk5NyBieSBXb28tamFlIEp1bmcgKi8KLQorICAgIAogLyoqKioqKioqKioqKioq
KioqKioqKioqKioqLwogLyogRGVmaW5lIHZhbHVlcyBmb3IgTVBFRyAqLwogLyoqKioqKioqKioq
KioqKioqKioqKioqKioqLwotLS0gYXVkaW8vTVBFR2F1ZGlvLmNwcAkyMDA1LTExLTI1IDEwOjI5
OjQ3LjAwMDAwMDAwMCAtMDUwMAorKysgYXVkaW8vTVBFR2F1ZGlvLmNwcAkyMDA1LTExLTI1IDEw
OjI3OjI5LjAwMDAwMDAwMCAtMDUwMApAQCAtMjEsNiArMjEsOCBAQAogCiAvKiBBIGNsYXNzIGJh
c2VkIG9uIHRoZSBNUEVHIHN0cmVhbSBjbGFzcywgdXNlZCB0byBwYXJzZSBhbmQgcGxheSBhdWRp
byAqLwogCit1c2luZyBuYW1lc3BhY2Ugc3RkOworCiAjaW5jbHVkZSAiTVBFR2F1ZGlvLmgiCiAj
aW5jbHVkZSAiTVBFR3N0cmVhbS5oIgo=
</data>        

          </attachment>
    </bug>

</bugzilla>