While it has been said before that the new "features" of the gcc C++ compiler, this popped up on me for another example that the main yacas-1.056.patch missed one problem I had in plugins/opengl/openglapi.cc file there is another "};" that the new gcc breaks on same thing that is in most of the main patch file Reproducible: Always Steps to Reproduce: 1. emerge -vu yacas 2. ... 3. gcc complains about extra ";" Actual Results: as stated in the 3rd step gcc complains about extra ; on line 562 of openglapi.cc (which is made dynamically from the stub) Expected Results: generally compile without error, but I'm not sure how to submit to the main patch file (or if this is fixed in some CVS version) adding own patch and ebuild later, not seen it anywhere on the bugs lists so far Gentoo Base System version 1.6.8 Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-rc2 i686) ================================================================= System uname: 2.6.10-rc2 i686 Intel(R) Xeon(TM) CPU 1.70GHz Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 18 2004, 06:08:33)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.9.4, 1.4_p6, 1.5, 1.6.3, 1.7.9 sys-devel/binutils: 2.15.92.0.2-r1, 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-Os -march=pentium3 -fomit-frame-pointer -mmmx -msse -pipe" 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/env.d" CXXFLAGS="-Os -march=pentium3 -fomit-frame-pointer -mmmx -msse -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.osuosl.org/ ftp://ftp.ndlug.nd.edu/pub/gentoo/" LDFLAGS="" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="x86 X acl apm avi berkdb bitmap-fonts crypt directfb encode esd fam fbcon foomaticdb fortran gdbm gif gpm gtk gtk2 imagemagick imlib ipv6 java jpeg libwww mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl smp spell sse ssl svga tcpd tiff truetype xml2 xmms xv zlib"
Created attachment 48246 [details, diff] Patches extra ; in openglapi.cc
Created attachment 48247 [details] Slight revision of old ebuild to apply the patch
I can't reproduce this with the same gcc version. Could you perhaps send me the source file that makes gcc choke on your system?
Created attachment 48402 [details] File which breaks the compile For me this breaks the compile, it is created from the openglapi.stub, assuming this part of it: extern \"C\" { LispPluginBase* maker(void) { return NULL; } }; #endif //HAVE_GL_GLUT_H ");
Actually, I just checked the homepage for Yacas. Looks like they are on 1.0.57 for the current version I wonder if they fixed most of the stuff the patch file uses http://yacas.sourceforge.net/downloads.html
I wonder, too. But first it would be nice to get compile errors of the stable version fixed :-) Let me guess: You don't have media-libs/glut installed? That would explain why it failed on your system and didn't on mine. I think we should get GSL usage and GL stuff as optional dependencies with the next version. Applying your patch, declaring this fixed. Thanks!
About .57, I've created bug #77948