Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22245 - media-sound/alsa-tools fails to compile with gcc-3.3
Summary: media-sound/alsa-tools fails to compile with gcc-3.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on: 22324
Blocks:
  Show dependency tree
 
Reported: 2003-06-05 01:05 UTC by Paul Marks
Modified: 2003-11-19 08:35 UTC (History)
2 users (show)

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


Attachments
Fixes the multi-line string literal in as10k1.c (as10k1-gcc-3.3.patch,2.09 KB, patch)
2003-06-05 01:10 UTC, Paul Marks
Details | Diff
Fix other compilation problems (alsa-tools-0.9.4-r1.ebuild,1.39 KB, text/plain)
2003-06-05 01:20 UTC, Paul Marks
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Marks 2003-06-05 01:05:28 UTC
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"
Comment 1 Paul Marks 2003-06-05 01:08:41 UTC
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.
Comment 2 Paul Marks 2003-06-05 01:10:26 UTC
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.
Comment 3 Paul Marks 2003-06-05 01:20:07 UTC
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.
Comment 4 Paul Marks 2003-06-07 21:28:24 UTC
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.
Comment 5 Ioannis Aslanidis (RETIRED) gentoo-dev 2003-10-16 11:48:00 UTC
Version 0.9.7-r3 does NOT work either!
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2003-11-19 08:35:00 UTC
closing with 0.9.8