When building opensp with gcc-4.1.0, compilation fails due to an "extra qualification error" in the file include/InternalInputSource.h. I realize that gcc-4.1.0 is unsupported software, but since this is easy to fix I thought I would provide a patch for others to use. I will attach the patchfile and new ebuild after filing. (Since this is my first contribution of this nature, any input on how to correctly submit patches will be gratefully accepted!) Reproducible: Always Steps to Reproduce: 1.Install GCC-4.1.0_beta20051112 2.Switch to gcc-4.1 with "gcc-config" 3.Emerge opensp-1.5.1 Actual Results: Compilation failed with "error: extra qualification" in file include/InternalInputSource.h Expected Results: Compiled correctly. 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="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/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" 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 ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="" 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 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" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Created attachment 73413 [details, diff] Patch file that allows GCC 4 to compile opensp.
Created attachment 73414 [details] Ebuild I used to apply the patch. This probably isn't necessary, but figured it might help people to apply this. Here's the easy way to make this work: 1. Download the patch file and the ebuild. Place the ebuild in /usr/portage/app-text/opensp/ and place the patch in /usr/portage/app-text/opensp/files/ 2. Generate md5 sums for the ebuild and the patch. Modify the Manifest accordingly. 3. emerge as normal.
Looks good. You send this upstream as well? Also, just a personal preference, but unified diffs are much easier to read :)
*** This bug has been marked as a duplicate of 112804 ***