emerge -v sox Calculating dependencies ...done! >>> emerge (1 of 1) media-sound/sox-12.17.4-r1 to / >>> md5 src_uri ;-) sox-12.17.4.tar.gz >>> Unpacking source... >>> Unpacking sox-12.17.4.tar.gz to /var/tmp/portage/sox-12.17.4-r1/work >>> Source unpacked. oggvorbis mad encode alsa oss configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for i686-pc-linux-gnu-gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for i686-pc-linux-gnu-ranlib... no checking for ranlib... ranlib checking for a BSD-compatible install... /bin/install -c checking whether ln -s works... yes checking how to run the C preprocessor... gcc -E checking whether byte ordering is bigendian... no checking for gcc option to accept ANSI C... none needed checking for an ANSI C-conforming const... yes checking for inline... inline checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for size_t... yes checking for ANSI C header files... (cached) yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking for unistd.h... (cached) yes checking byteswap.h usability... yes checking byteswap.h presence... yes checking for byteswap.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes configure: checking if math library is required during link... checking for pow... no checking for pow in -lm... yes checking for getopt... yes checking for strerror... yes checking for memmove... yes checking for rand... yes checking for strcasecmp... yes checking vorbis/codec.h usability... yes checking vorbis/codec.h presence... yes checking for vorbis/codec.h... yes checking for vorbis_analysis_init in -lvorbis... yes checking mad.h usability... yes checking mad.h presence... yes checking for mad.h... yes checking for mad_stream_buffer in -lmad... yes checking lame/lame.h usability... yes checking lame/lame.h presence... yes checking for lame/lame.h... yes checking for lame_init in -lmp3lame... yes checking linux/asound.h usability... no checking linux/asound.h presence... no checking for linux/asound.h... no checking sound/asound.h usability... no checking sound/asound.h presence... yes configure: WARNING: sound/asound.h: present but cannot be compiled configure: WARNING: sound/asound.h: check for missing prerequisite headers? configure: WARNING: sound/asound.h: proceeding with the preprocessor's result checking for sound/asound.h... yes checking for ALSA ioctl API... 0.9.X checking sys/soundcard.h usability... yes checking sys/soundcard.h presence... yes checking for sys/soundcard.h... yes checking machine/soundcard.h usability... no checking machine/soundcard.h presence... no checking for machine/soundcard.h... no checking sys/audioio.h usability... no checking sys/audioio.h presence... no checking for sys/audioio.h... no checking sun/audioio.h usability... no checking sun/audioio.h presence... no checking for sun/audioio.h... no checking for stdint-types....... "(putting them into ststdint.h)" checking for uintptr_t... yes checking for uint64_t... yes ... seen our uintptr_t in stdint.h (uint64_t too) creating ststdint.h : _STSTDINT_H ..adding include stdint.h ... seen good stdint.h inttypes ... seen good uint64_t ... DONE ststdint.h configure: creating ./config.status config.status: creating libst-config config.status: creating Makefile config.status: creating gsm/Makefile config.status: creating play config.status: creating stconfig.h Old Rate enabled.................. no Fast ulaw enabled................. yes Fast alaw enabled................. yes GSM Support....................... yes ALSA Driver....................... yes OSS Driver........................ yes SUN /dev/audio.................... no Ogg Vorbis support................ yes MAD MP3 Decoder................... yes LAME MP3 Encoder.................. yes Configure finished. Do 'make; make install' to compile and install SoX. gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o 8svx.o 8svx.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o adpcm.o adpcm.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o aiff.o aiff.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o au.o au.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o auto.o auto.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o avr.o avr.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o cdr.o cdr.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o cvsd.o cvsd.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o dat.o dat.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o g711.o g711.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o g721.o g721.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o g723_16.o g723_16.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o g723_24.o g723_24.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o g723_40.o g723_40.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o g72x.o g72x.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o gsm.o gsm.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o hcom.o hcom.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o ima_rw.o ima_rw.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o maud.o maud.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o mp3.o mp3.c maud.c: In function `st_maudstartread': maud.c:116: warning: dereferencing type-punned pointer will break strict-aliasing rules gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o nulfile.o nulfile.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o prc.o prc.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o raw.o raw.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o sf.o sf.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o smp.o smp.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o sndrtool.o sndrtool.c smp.c: In function `readtrailer': smp.c:82: warning: dereferencing type-punned pointer will break strict-aliasing rules gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o sphere.o sphere.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o tx16w.o tx16w.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o voc.o voc.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o vorbis.o vorbis.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o wav.o wav.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o wve.o wve.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o avg.o avg.c wve.c: In function `st_wvestartread': wve.c:98: warning: dereferencing type-punned pointer will break strict-aliasing rules wve.c:99: warning: dereferencing type-punned pointer will break strict-aliasing rules wve.c:100: warning: dereferencing type-punned pointer will break strict-aliasing rules gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o band.o band.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o bandpass.o bandpass.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o breject.o breject.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o btrworth.o btrworth.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o chorus.o chorus.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o compand.o compand.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o copy.o copy.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o dcshift.o dcshift.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o deemphas.o deemphas.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o earwax.o earwax.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o echo.o echo.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o echos.o echos.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o fade.o fade.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o filter.o filter.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o flanger.o flanger.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o highp.o highp.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o highpass.o highpass.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o lowp.o lowp.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o lowpass.o lowpass.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o map.o map.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o mask.o mask.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o pan.o pan.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o phaser.o phaser.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o pitch.o pitch.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o polyphas.o polyphas.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o rate.o rate.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o resample.o resample.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o reverb.o reverb.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o reverse.o reverse.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o silence.o silence.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o speed.o speed.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o stat.o stat.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o stretch.o stretch.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o swap.o swap.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o synth.o synth.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o trim.o trim.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o vibro.o vibro.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o vol.o vol.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o handlers.o handlers.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o misc.o misc.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o util.o util.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o getopt.o getopt.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o oss.o oss.c gcc -march=pentium3 -O2 -pipe -Wall -I. -I. -c -o alsa.o alsa.c cd gsm && make make[1]: Entering directory `/var/tmp/portage/sox-12.17.4-r1/work/sox-12.17.4/gsm' gcc -march=pentium3 -O2 -pipe -Wall -DHAVE_CONFIG_H -DSASR -DFAST -DWAV49 -I../gsm -c -o add.o add.c In file included from alsa.c:32: /usr/include/sound/asound.h:138: error: syntax error before '*' token /usr/include/sound/asound.h:141: error: syntax error before '}' token /usr/include/sound/asound.h:147: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:147: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:147: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:147: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:449: error: variable or field `__user' declared void /usr/include/sound/asound.h:449: error: syntax error before '*' token /usr/include/sound/asound.h:451: error: syntax error before '}' token /usr/include/sound/asound.h:455: error: variable or field `__user' declared void /usr/include/sound/asound.h:455: error: syntax error before '*' token /usr/include/sound/asound.h:457: error: syntax error before '}' token /usr/include/sound/asound.h:482: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:482: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:482: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:482: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:483: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:483: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:483: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:483: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:484: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:484: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:484: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:484: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:485: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:485: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:485: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:485: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:779: error: syntax error before '*' token /usr/include/sound/asound.h:781: error: syntax error before '}' token /usr/include/sound/asound.h:843: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:843: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:843: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:843: error: invalid application of `sizeof' to an incomplete type make: *** [alsa.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -march=pentium3 -O2 -pipe -Wall -DHAVE_CONFIG_H -DSASR -DFAST -DWAV49 -I../gsm -c -o code.o code.c gcc -march=pentium3 -O2 -pipe -Wall -DHAVE_CONFIG_H -DSASR -DFAST -DWAV49 -I../gsm -c -o decode.o decode.c gcc -march=pentium3 -O2 -pipe -Wall -DHAVE_CONFIG_H -DSASR -DFAST -DWAV49 -I../gsm -c -o long_term.o long_term.c gcc -march=pentium3 -O2 -pipe -Wall -DHAVE_CONFIG_H -DSASR -DFAST -DWAV49 -I../gsm -c -o lpc.o lpc.c gcc -march=pentium3 -O2 -pipe -Wall -DHAVE_CONFIG_H -DSASR -DFAST -DWAV49 -I../gsm -c -o preprocess.o preprocess.c gcc -march=pentium3 -O2 -pipe -Wall -DHAVE_CONFIG_H -DSASR -DFAST -DWAV49 -I../gsm -c -o rpe.o rpe.c gcc -march=pentium3 -O2 -pipe -Wall -DHAVE_CONFIG_H -DSASR -DFAST -DWAV49 -I../gsm -c -o gsm_destroy.o gsm_destroy.c gcc -march=pentium3 -O2 -pipe -Wall -DHAVE_CONFIG_H -DSASR -DFAST -DWAV49 -I../gsm -c -o gsm_decode.o gsm_decode.c gcc -march=pentium3 -O2 -pipe -Wall -DHAVE_CONFIG_H -DSASR -DFAST -DWAV49 -I../gsm -c -o gsm_encode.o gsm_encode.c gcc -march=pentium3 -O2 -pipe -Wall -DHAVE_CONFIG_H -DSASR -DFAST -DWAV49 -I../gsm -c -o gsm_create.o gsm_create.c gcc -march=pentium3 -O2 -pipe -Wall -DHAVE_CONFIG_H -DSASR -DFAST -DWAV49 -I../gsm -c -o gsm_option.o gsm_option.c gcc -march=pentium3 -O2 -pipe -Wall -DHAVE_CONFIG_H -DSASR -DFAST -DWAV49 -I../gsm -c -o short_term.o short_term.c gcc -march=pentium3 -O2 -pipe -Wall -DHAVE_CONFIG_H -DSASR -DFAST -DWAV49 -I../gsm -c -o table.o table.c ar r libgsm.a add.o code.o decode.o long_term.o lpc.o preprocess.o rpe.o gsm_destroy.o gsm_decode.o gsm_encode.o gsm_create.o gsm_option.o short_term.o table.o ar: creating libgsm.a ranlib libgsm.a make[1]: Leaving directory `/var/tmp/portage/sox-12.17.4-r1/work/sox-12.17.4/gsm' !!! ERROR: media-sound/sox-12.17.4-r1 failed. !!! Function src_compile, Line 31, Exitcode 2 !!! (no error message) emerge info Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7) ================================================================= System uname: 2.6.7 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz Gentoo Base System version 1.4.16 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /etc/tomcat /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/lib/jboss /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d aalib accessibility acl adns alsa antlr apache2 apm arts artswrappersuid audiofile avi bcel berkdb bidi bonobo bsg cap caps cdr chroot crypt cscope cups curl dga directfb divx4linux doc dv dvb dvd encode esd evo f77 faac faad fbcon fdftk firebird flac flash foomaticdb freetds gb gcj gd gdbm ggi gif gimpprint gmp gnome gnomedb gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile ieee1394 imagemagick imap imlib informix innodb ipv6 jack java javamail javascript jbig jdepend jpeg jsch junit jython kde kerberos krb4 lcms ldap libcaca libg++ libgda libwww lirc live log4j mad maildir matroska mbox mcal mdb menu mikmod mng motif mozilla mozinterfaceinfo moznocompose moznoirc moznomail mozsvg mozxmlterm mpeg mpi mysql nas ncurses net nhc98 nls nptl objc oci8 odbc oggvorbis opengl optional-tasks oro oss pam parse-clocks pcmcia pcre pda pdflib perl pg-hier pg-intdatetime pg-vacuumdelay pic png portaudio postgres ppds python qt quicktime readline regexp rhino rplay ruby ruby18 samba sasl sdk sdl silc skey slang slp sndfile snmp sox speex spell sqlite sse ssl stroke svga tcltk tcpd tetex theora tiff truetype ucs2 unicode usb v4l wifi wmf x86 xalan xerces xface xinerama xml xml2 xmms xrandr xv xvid zlib"
Same problem here. ------------- Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7 -gentoo) ================================================================= System uname: 2.6.7-gentoo i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=i686 -fomit-frame-pointer -funroll-loops -pipe -fforce-addr -f force-mem -fmove-all-movables" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2 /share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/ config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mcpu=i686 -fomit-frame-pointer -funroll-loops -pipe -fforce-addr -fforce-mem -fmove-all-movables" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distcc fixpackages sandbox usersandbox" GENTOO_MIRRORS="http://ftp.caliu.info/pub/gentoo/ http://ftp.ntua.gr/pub/linux/g entoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage" USE="3dnow X aalib alsa apache2 apm arts audiofile avi berkdb bindist cdr crypt cups curl directfb divx4linux dvd dvdr encode ethereal fastcgi fbcon flac flash foomaticdb gd gdbm ggi gif gmp gnome gphoto2 gpm gstreamer gtk gtk2 icq imagemag ick imlib java jikes jpeg junit kde lcms libg++ libwww mad memlimit mikmod mmx m otif mozilla mpeg msn ncurses nls nocd oggvorbis opengl oss pam pdflib perl pic png ppds python qt quicktime readline samba sdl slang spell sse ssl svg svga szi p tcltk tcpd tiff truetype unicode usb videos wmf x86 xml xml2 xmms xv xvid zlib "
There must be something wrong with the alsa.c (obvious?) I tried a non-aggressive compilation, but no way. gcc -g -O2 -Wall -I. -I. -c -o alsa.o alsa.c In file included from alsa.c:32: /usr/include/sound/asound.h:138: error: syntax error before '*' token /usr/include/sound/asound.h:141: error: syntax error before '}' token /usr/include/sound/asound.h:147: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:449: error: variable or field `__user' declared void /usr/include/sound/asound.h:449: error: syntax error before '*' token /usr/include/sound/asound.h:451: error: syntax error before '}' token /usr/include/sound/asound.h:455: error: variable or field `__user' declared void /usr/include/sound/asound.h:455: error: syntax error before '*' token /usr/include/sound/asound.h:457: error: syntax error before '}' token /usr/include/sound/asound.h:482: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:483: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:484: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:485: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:779: error: syntax error before '*' token /usr/include/sound/asound.h:781: error: syntax error before '}' token /usr/include/sound/asound.h:843: error: invalid application of `sizeof' to an incomplete type make: *** [alsa.o] Error 1 ---------- It might compile with USE="-alsa", but I want it with alsa support.
From /usr/include/sound/asound.h: struct sndrv_hwdep_dsp_image { unsigned int index; /* W: DSP index */ unsigned char name[64]; /* W: ID (e.g. file name) */ unsigned char __user *image; /* W: binary image */ size_t length; /* W: size of image in bytes */ unsigned long driver_data; /* W: driver-specific data */ }; The line "unsigned char __user * image;" doesn't seem to be correct.
It seems that user.h is not being included... am I wrong?
I had the same problem. __user appears to have been recently added to the kernel (2.6.7?) and should be defined, but do nothing in this instance (afaict - it's to do with staticly checking of correct user/kernel pointer usage ... or something vaguely to that effect ;) The wrong solution imho (but one that works) is to add the following lines to /usr/include/sound/asound.h : #ifndef __user #define __user #endif I have used this succesfully, but as I said, this is most definitely the wrong way so solve this (at the very least, I believe asound.h is the wrong place to put this). I'm not sure if a fix should go into the kernel sources to define __user appropriately or into sox. I suspect the former. (I'm using kernel gentoo-dev-2.6.7-r3) As far as including user.h - if there is a user.h somewhere that defines __user, (or otherwise solves this) I can't find it.
alsa-lib-1.0.5-r2 detects bad asound.h headers as provided by the kernel and dies with instructions to fix. using alsa-driver won't cause this to happen.
alsa-driver with a 2.6.x kernel?
yes. media-sound/alsa-driver has support for some cards that are not included in the kernel itself... also, it gets updates faster than the in-kernel drivers.