[MPlayer-users] ao_alsa.c fails to compile.

Guillaume POIRIER poirierg at gmail.com
Sun Feb 12 15:23:50 CET 2006


Hi,

On 2/12/06, Fredrik Eriksson <feffese at yahoo.se> wrote:
> For the last few days I havn't been able to compile the mplayer cvs, it
> fails at ao_alsa.c:
>
> cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=k8
> -mtune=k8 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I. -I..
> -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include  -o ao_sdl.o ao_sdl.c
> ao_oss.c: In function `control':
> ao_oss.c:168: warning: cast from pointer to integer of different size
> cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=k8
> -mtune=k8 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I. -I..
> -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include  -o ao_oss.o ao_oss.c
> cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=k8
> -mtune=k8 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I. -I..
> -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include  -o ao_esd.o ao_esd.c
> ao_alsa.c: In function `get_space':
> ao_alsa.c:1012: error: parse error before '<<' token
> ao_alsa.c:1018: error: break statement not within loop or switch
> ao_alsa.c:1019: error: case label not within a switch statement
> ao_alsa.c:1020: error: `str_status' undeclared (first use in this function)
> ao_alsa.c:1020: error: (Each undeclared identifier is reported only once
> ao_alsa.c:1020: error: for each function it appears in.)
> ao_alsa.c:1025: error: break statement not within loop or switch
> ao_alsa.c:1026: error: case label not within a switch statement
> ao_alsa.c:1031: error: break statement not within loop or switch
> ao_alsa.c:1032: error: case label not within a switch statement
> ao_alsa.c:1036: error: break statement not within loop or switch
> ao_alsa.c:1037: error: case label not within a switch statement
> ao_alsa.c:1042: error: break statement not within loop or switch
> ao_alsa.c:1043: error: `default' label not within a switch statement
> ao_alsa.c: At top level:
> ao_alsa.c:1051: error: parse error before "if"
> ao_alsa.c:1056: warning: data definition has no type or storage class
> ao_alsa.c:1057: error: parse error before '}' token
> make[1]: *** [ao_alsa.o] Error 1
> make: *** [libao2/libao2.a] Fel 2
>
> is something messed up?

Yes, probably:
ao_alsa.c:1012: error: parse error before '<<' token

probably indicates that you had some conflics in ao_also when you cvs-ed up.

Please try with a fresh checkout or remove all the offending files and
re-cvs up.

Guillaume

--
Just because code is syntactically "valid" GNU C doesn't mean gcc can
always compile it.
  Steven Bosscher - 2005-01-01
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11203#c14
---
MPlayer's doc isn't up-to-date. Visit my updated mirror here:
http://tuxrip.free.fr//MPlayer-DOCS-HTML/en/
http://tuxrip.free.fr//MPlayer-DOCS-HTML/fr/




More information about the MPlayer-users mailing list