Multi-line string literals have been deprecated in gcc-3.3, and as10k1/as10k1.c still contains a multi-line string literal. Reproducible: Always Steps to Reproduce: 1. Use a system with gcc-3.3 or newer 2. Try to emerge media-sound/alsa-tools-0.9.4 Actual Results: alsa-tools fails to compile, with a multitude of syntactical errors Expected Results: alsa-tools should compile with any compiler version. There is also a warning about a label at the end of a loop, but that appears to be a necessary evil to parse the command line arguments for as10k1. This is all the relevant information from 'emerge info': Portage 2.0.48-r1 (default-x86-1.4, gcc-3.3, glibc-2.3.2-r2) ================================================================= System uname: 2.5.69 i686 AMD Athlon(tm) processor GENTOO_MIRRORS=" ftp://gentoo.linux.no/pub/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/portage.local" USE="x86 oss 3dnow apm avi crypt cups gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png spell truetype xml2 xv zlib gdbm berkdb readline arts tetex X sdl gpm tcpd pam libwww ssl python imlib oggvorbis gnome qt kde opengl acpi alsa bonobo cdr dga doc dvd esd gb gd ggi gtk2 gtkhtml guile maildir mng mozilla mysql odbc pda perl pic postgres qtmt rio500 ruby svg tcltk tiff usb wmf xml -encode -java -gtk -motif -quicktime -slang -svga -xmms" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O3 -pipe" CXXFLAGS="-march=athlon-tbird -O3 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j1" AUTOCLEAN="yes" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" FEATURES="buildpkg ccache digest sandbox"
The other components, sb16_csp and sbiload fail to compile unless explicitly passed a --with-kernel=... argument for ./configure. As far as I can tell, the best solution is to pass --with-kernel=`uname -r` to all parts of the package.
Created attachment 12811 [details, diff] Fixes the multi-line string literal in as10k1.c This fixes the multi-line string literal problem in as10k1.c, but does not address the "label at the end of a loop" error.
Created attachment 12812 [details] Fix other compilation problems This is an edited ebuild to fix the compilation of 'sb16_csp' and 'sbiload', in addition to incorporating the code to automagically apply the patch for as10k1.c. May not need to be bumped to -r1, it's just how I did it... This also builds the (new?) 'sscape_ctl' and 'vxloader' programs in alsa-tools.
Seems that my bug went unfound by whoever reported #22324. The multiline string literal patch is a duplicate, but the ebuild still adds the two new components that come in alsa-tools-0.9.4. It's your choice as to whether or not this gets closed or marked as a duplicate or whatnot. Just figured I'd update this. Also moving to category "ebuilds," since I was confused as to which category this should be in (since it was a GCC-3.3 related issue...). Sorry for any inconvenience.
Version 0.9.7-r3 does NOT work either!
closing with 0.9.8