emerge --info: Portage 2.1_pre3-r1 (default-linux/x86/2005.0, gcc-4.0.2, glibc-2.3.6-r2, 2.6.14-rc5-mm1 i686) ================================================================= System uname: 2.6.14-rc5-mm1 i686 AMD Athlon(tm) XP 2800+ Gentoo Base System version 1.12.0_pre14 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [disabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.17 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.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -ggdb -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -ggdb -O2 -pipe" DISTDIR="/mnt/aux/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /mnt/aux/portage-overlay" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 7zip aac acpi aim alsa ao apache2 audiofile avi bash-completion bzip2 chroot crypt cups curl emacs fam ffmpeg flac flood gd gif glut gmp gstreamer idn imagemagick jack joystick jpeg lcms libsamplerate mad mhash mikmod mmap mmx mng mp3 mp4live mpeg mpeg2 mysql ncurses nocardbus nosendmail nptl nptlonly offensive ogg oscar pam pcre php png readline rtc ruby sharedmem slang sndfile speex sse ssl szip theora tiff transcode udev unicode usb utf8 uudeview vidix vorbis webdav xvid zip zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS The error: In file included from alsa.c:40: /usr/include/sound/asound.h:171: error: syntax error before 'snd_pcm_access_t' /usr/include/sound/asound.h:179: error: syntax error before 'snd_pcm_format_t' /usr/include/sound/asound.h:243: error: syntax error before 'snd_pcm_subformat_t' /usr/include/sound/asound.h:262: error: syntax error before 'snd_pcm_state_t' /usr/include/sound/asound.h:302: error: syntax error before 'snd_pcm_hw_param_t' /usr/include/sound/asound.h:342: error: '__force' undeclared here (not in a function) /usr/include/sound/asound.h:342: error: syntax error before 'snd_pcm_hw_param_t' /usr/include/sound/asound.h:343: error: syntax error before 'snd_pcm_hw_param_t' /usr/include/sound/asound.h:345: error: syntax error before 'snd_pcm_hw_param_t' /usr/include/sound/asound.h:346: error: syntax error before 'snd_pcm_hw_param_t' /usr/include/sound/asound.h:386: error: syntax error before 'snd_pcm_state_t' /usr/include/sound/asound.h:395: error: syntax error before 'suspended_state' /usr/include/sound/asound.h:397: error: syntax error before '}' token /usr/include/sound/asound.h:400: error: syntax error before 'snd_pcm_state_t' /usr/include/sound/asound.h:404: error: syntax error before 'suspended_state' /usr/include/sound/asound.h:419: error: field 'status' has incomplete type /usr/include/sound/asound.h:448: error: invalid application of 'sizeof' to incomplete type 'struct snd_pcm_status' /usr/include/sound/asound.h:448: error: array type has incomplete element type /usr/include/sound/asound.h:448: error: invalid application of 'sizeof' to incomplete type 'struct snd_pcm_status' /usr/include/sound/asound.h:448: error: invalid application of 'sizeof' to incomplete type 'struct snd_pcm_status' /usr/include/sound/asound.h:448: error: enumerator value for 'SNDRV_PCM_IOCTL_STATUS' is not an integer constant /usr/include/sound/asound.h:710: error: syntax error before 'snd_ctl_elem_type_t' /usr/include/sound/asound.h:720: error: syntax error before 'snd_ctl_elem_iface_t' /usr/include/sound/asound.h:752: error: syntax error before 'snd_ctl_elem_iface_t' /usr/include/sound/asound.h:756: error: 'index' redeclared as different kind of symbol /usr/include/sound/asound.h:757: error: syntax error before '}' token /usr/include/sound/asound.h:769: error: field 'id' has incomplete type /usr/include/sound/asound.h:770: error: syntax error before 'snd_ctl_elem_type_t' /usr/include/sound/asound.h:796: error: conflicting types for 'reserved' /usr/include/sound/asound.h:396: error: previous declaration of 'reserved' was here /usr/include/sound/asound.h:797: error: syntax error before '}' token /usr/include/sound/asound.h:800: error: field 'id' has incomplete type /usr/include/sound/asound.h:829: error: invalid application of 'sizeof' to incomplete type 'struct snd_ctl_elem_info' /usr/include/sound/asound.h:829: error: array type has incomplete element type /usr/include/sound/asound.h:829: error: invalid application of 'sizeof' to incomplete type 'struct snd_ctl_elem_info' /usr/include/sound/asound.h:829: error: invalid application of 'sizeof' to incomplete type 'struct snd_ctl_elem_info' /usr/include/sound/asound.h:829: error: enumerator value for 'SNDRV_CTL_IOCTL_ELEM_INFO' is not an integer constant /usr/include/sound/asound.h:832: error: invalid application of 'sizeof' to incomplete type 'struct snd_ctl_elem_id' /usr/include/sound/asound.h:832: error: array type has incomplete element type /usr/include/sound/asound.h:832: error: invalid application of 'sizeof' to incomplete type 'struct snd_ctl_elem_id' /usr/include/sound/asound.h:832: error: invalid application of 'sizeof' to incomplete type 'struct snd_ctl_elem_id' /usr/include/sound/asound.h:832: error: enumerator value for 'SNDRV_CTL_IOCTL_ELEM_LOCK' is not an integer constant /usr/include/sound/asound.h:833: error: invalid application of 'sizeof' to incomplete type 'struct snd_ctl_elem_id' /usr/include/sound/asound.h:833: error: array type has incomplete element type /usr/include/sound/asound.h:833: error: invalid application of 'sizeof' to incomplete type 'struct snd_ctl_elem_id' /usr/include/sound/asound.h:833: error: invalid application of 'sizeof' to incomplete type 'struct snd_ctl_elem_id' /usr/include/sound/asound.h:833: error: enumerator value for 'SNDRV_CTL_IOCTL_ELEM_UNLOCK' is not an integer constant /usr/include/sound/asound.h:835: error: invalid application of 'sizeof' to incomplete type 'struct snd_ctl_elem_info' /usr/include/sound/asound.h:835: error: array type has incomplete element type /usr/include/sound/asound.h:835: error: invalid application of 'sizeof' to incomplete type 'struct snd_ctl_elem_info' /usr/include/sound/asound.h:835: error: invalid application of 'sizeof' to incomplete type 'struct snd_ctl_elem_info' /usr/include/sound/asound.h:835: error: enumerator value for 'SNDRV_CTL_IOCTL_ELEM_ADD' is not an integer constant /usr/include/sound/asound.h:836: error: invalid application of 'sizeof' to incomplete type 'struct snd_ctl_elem_info' /usr/include/sound/asound.h:836: error: array type has incomplete element type /usr/include/sound/asound.h:836: error: invalid application of 'sizeof' to incomplete type 'struct snd_ctl_elem_info' /usr/include/sound/asound.h:836: error: invalid application of 'sizeof' to incomplete type 'struct snd_ctl_elem_info' /usr/include/sound/asound.h:836: error: enumerator value for 'SNDRV_CTL_IOCTL_ELEM_REPLACE' is not an integer constant /usr/include/sound/asound.h:837: error: invalid application of 'sizeof' to incomplete type 'struct snd_ctl_elem_id' /usr/include/sound/asound.h:837: error: array type has incomplete element type /usr/include/sound/asound.h:837: error: invalid application of 'sizeof' to incomplete type 'struct snd_ctl_elem_id' /usr/include/sound/asound.h:837: error: invalid application of 'sizeof' to incomplete type 'struct snd_ctl_elem_id' /usr/include/sound/asound.h:837: error: enumerator value for 'SNDRV_CTL_IOCTL_ELEM_REMOVE' is not an integer constant /usr/include/sound/asound.h:869: error: field 'id' has incomplete type alsa.c: In function 'alsa_hw_info_get': alsa.c:93: error: invalid application of 'sizeof' to incomplete type 'struct sndrv_pcm_hw_params' alsa.c:94: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:96: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:97: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:99: error: dereferencing pointer to incomplete type alsa.c:99: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:100: error: dereferencing pointer to incomplete type alsa.c:100: error: dereferencing pointer to incomplete type alsa.c:104: error: dereferencing pointer to incomplete type alsa.c:104: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:105: error: dereferencing pointer to incomplete type alsa.c:106: error: dereferencing pointer to incomplete type alsa.c:107: error: dereferencing pointer to incomplete type alsa.c:108: error: dereferencing pointer to incomplete type alsa.c:109: error: dereferencing pointer to incomplete type alsa.c:110: error: dereferencing pointer to incomplete type alsa.c:112: error: dereferencing pointer to incomplete type alsa.c:113: error: dereferencing pointer to incomplete type alsa.c:118: error: dereferencing pointer to incomplete type alsa.c:118: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:118: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:119: error: dereferencing pointer to incomplete type alsa.c:120: error: dereferencing pointer to incomplete type alsa.c:120: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:120: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:121: error: dereferencing pointer to incomplete type alsa.c:121: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:121: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:122: error: dereferencing pointer to incomplete type alsa.c:122: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:122: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:123: error: dereferencing pointer to incomplete type alsa.c:123: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:123: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:124: error: dereferencing pointer to incomplete type alsa.c:124: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:124: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:125: error: dereferencing pointer to incomplete type alsa.c:125: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:125: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:126: error: dereferencing pointer to incomplete type alsa.c:126: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:126: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:127: error: dereferencing pointer to incomplete type alsa.c:127: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:127: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:128: error: dereferencing pointer to incomplete type alsa.c:128: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:128: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:129: error: dereferencing pointer to incomplete type alsa.c:129: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:129: error: syntax error before 'snd_pcm_hw_param_t' alsa.c: In function 'alsa_hw_info_set': alsa.c:143: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:144: error: dereferencing pointer to incomplete type alsa.c:144: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:145: error: dereferencing pointer to incomplete type alsa.c:145: error: syntax error before 'snd_pcm_access_t' alsa.c:146: error: dereferencing pointer to incomplete type alsa.c:147: error: dereferencing pointer to incomplete type alsa.c:149: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:150: error: dereferencing pointer to incomplete type alsa.c:150: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:151: error: dereferencing pointer to incomplete type alsa.c:152: error: dereferencing pointer to incomplete type alsa.c:153: error: dereferencing pointer to incomplete type alsa.c:155: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:156: error: dereferencing pointer to incomplete type alsa.c:156: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:157: error: dereferencing pointer to incomplete type alsa.c:158: error: dereferencing pointer to incomplete type alsa.c:158: error: dereferencing pointer to incomplete type alsa.c:159: error: dereferencing pointer to incomplete type alsa.c:159: error: dereferencing pointer to incomplete type alsa.c:160: error: dereferencing pointer to incomplete type alsa.c:161: error: dereferencing pointer to incomplete type alsa.c:162: error: dereferencing pointer to incomplete type alsa.c:164: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:165: error: dereferencing pointer to incomplete type alsa.c:165: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:166: error: dereferencing pointer to incomplete type alsa.c:167: error: dereferencing pointer to incomplete type alsa.c:167: error: dereferencing pointer to incomplete type alsa.c:168: error: dereferencing pointer to incomplete type alsa.c:168: error: dereferencing pointer to incomplete type alsa.c:169: error: dereferencing pointer to incomplete type alsa.c:170: error: dereferencing pointer to incomplete type alsa.c:171: error: dereferencing pointer to incomplete type alsa.c:173: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:174: error: dereferencing pointer to incomplete type alsa.c:174: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:175: error: dereferencing pointer to incomplete type alsa.c:176: error: dereferencing pointer to incomplete type alsa.c:176: error: dereferencing pointer to incomplete type alsa.c:177: error: dereferencing pointer to incomplete type alsa.c:177: error: dereferencing pointer to incomplete type alsa.c:178: error: dereferencing pointer to incomplete type alsa.c:179: error: dereferencing pointer to incomplete type alsa.c:180: error: dereferencing pointer to incomplete type alsa.c:182: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:183: error: dereferencing pointer to incomplete type alsa.c:183: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:184: error: dereferencing pointer to incomplete type alsa.c:185: error: dereferencing pointer to incomplete type alsa.c:185: error: dereferencing pointer to incomplete type alsa.c:186: error: dereferencing pointer to incomplete type alsa.c:186: error: dereferencing pointer to incomplete type alsa.c:187: error: dereferencing pointer to incomplete type alsa.c:188: error: dereferencing pointer to incomplete type alsa.c:189: error: dereferencing pointer to incomplete type alsa.c:191: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:192: error: dereferencing pointer to incomplete type alsa.c:192: error: syntax error before 'snd_pcm_hw_param_t' alsa.c:193: error: dereferencing pointer to incomplete type alsa.c:194: error: dereferencing pointer to incomplete type alsa.c:194: error: dereferencing pointer to incomplete type alsa.c:195: error: dereferencing pointer to incomplete type alsa.c:195: error: dereferencing pointer to incomplete type alsa.c:196: error: dereferencing pointer to incomplete type alsa.c:197: error: dereferencing pointer to incomplete type alsa.c:198: error: dereferencing pointer to incomplete type alsa.c: In function 'st_alsastartread': alsa.c:222: error: storage size of 'params' isn't known alsa.c:222: warning: unused variable 'params' alsa.c: In function 'st_alsastartwrite': alsa.c:273: error: storage size of 'params' isn't known alsa.c:273: warning: unused variable 'params' alsa.c: In function 'get_format': alsa.c:602: error: syntax error before 'snd_pcm_format_t' alsa.c:602: error: syntax error before 'snd_pcm_format_t' alsa.c:610: error: 'SNDRV_PCM_FORMAT_U16' undeclared (first use in this function) alsa.c:610: error: (Each undeclared identifier is reported only once alsa.c:610: error: for each function it appears in.) alsa.c:610: error: 'SNDRV_PCM_FORMAT_S16' undeclared (first use in this function) alsa.c:637: error: syntax error before 'snd_pcm_format_t' alsa.c:644: error: syntax error before 'snd_pcm_format_t' alsa.c:651: error: syntax error before 'snd_pcm_format_t' alsa.c:667: error: syntax error before 'snd_pcm_format_t' alsa.c:671: error: syntax error before 'snd_pcm_format_t' alsa.c:674: error: syntax error before 'snd_pcm_format_t' alsa.c:678: error: syntax error before 'snd_pcm_format_t' make[1]: *** [alsa.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/sox-12.17.7-r2/work/sox-12.17.7/src' make: *** [all] Error 2
This error was fixed for me with a version bump to 12.17.9 - ( 12.17.8 failed in the same way as 2.17.7-r2 ) The distdir patch, renamed, applied cleanly. I have not tried with the large file patch. Only tested on fruity toolchain.
Created attachment 77674 [details, diff] sox-12.17.9.ebuild.diff The current version works for me (gcc-4.1), but I don't see the harm of bumping the version of this package.
It is no gcc4 issue. I got the same problem with a gcc3.4 (well, not 100% exactly, but also syntax errors in alsa.h). I didn't patched the ebuild but simply created a version bump with renamed patches in /usr/local/portage (luckily they still work ;-) ). Appending another "emerge info" wouldn't help I guess. But my gcc is 3.4.5 without any of the ssp, pie or other hardenes patches and the alsa.h comes from alsa-headers 1.0.11_rc2). sox-12.17.9 works
Hrm, didn't realize this wasn't a GCC4 problem, I will check with an older compiler from now on before assuming.
Sox has been bumped to 12.17.9 in CVS, this will reach the portage tree in less then two hours. As pointed out by Marcel Meyer, this was not a GCC4 regression, but the program using an ALSA API that was simply too old to succesfully build against the 1.0.11 ALSA headers & library.