[MPlayer-users] error compiling: libao2: missing AFMT_U* defines

Walter Haidinger walter.haidinger at gmx.at
Sun Dec 26 19:55:45 CET 2004


Hi!

I'm unable to compile MPlayer-1.0pre6 and the most recent CVS version 
unter SuSE 9.1 with vanilla 2.6.10 kernel and commercial OSS 3.99.1i 
drivers.

The OSS developers think it is a mplayer bug. 
I've appended their reply below.

Here's the output of the failed compilation.
...
make[1]: Entering directory 
`/usr/local/src/video/mpeg/mplayer/CVS/main/libao2'
cc -c -I../libvo -I../../libvo -I/usr/X11/include -fno-PIC -O4 
-march=athlon-xp -mcpu=athlon-xp -pipe -ffast-math -fomit-frame-pointer 
-D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-I/opt/gnome/include -I/opt/gnome/include/gtk-1.2 
-I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include 
-I/usr/X11R6/include -I. -I.. -I/opt/kde3/include/artsc -pthread 
-I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include   
-I/usr/include/SDL -D_REENTRANT -I/usr/X11/include -I/opt/gnome/include 
-I/opt/gnome/include/gtk-1.2 -I/opt/gnome/include/glib-1.2 
-I/opt/gnome/lib/glib/include -I/usr/X11R6/include    -o afmt.o afmt.c
afmt.c: In function `audio_out_format_name':
afmt.c:33: error: `AFMT_U32_LE' undeclared (first use in this function)
afmt.c:33: error: (Each undeclared identifier is reported only once
afmt.c:33: error: for each function it appears in.)
afmt.c:35: error: `AFMT_U32_BE' undeclared (first use in this function)
afmt.c:41: error: `AFMT_U24_LE' undeclared (first use in this function)
afmt.c:43: error: `AFMT_U24_BE' undeclared (first use in this function)
afmt.c: In function `audio_out_format_bits':
afmt.c:67: error: `AFMT_U32_LE' undeclared (first use in this function)
afmt.c:68: error: `AFMT_U32_BE' undeclared (first use in this function)
afmt.c:74: error: `AFMT_U24_LE' undeclared (first use in this function)
afmt.c:75: error: `AFMT_U24_BE' undeclared (first use in this function)
make[1]: *** [afmt.o] Error 1
make[1]: Leaving directory 
`/usr/local/src/video/mpeg/mplayer/CVS/main/libao2'
make: *** [libao2/libao2.a] Error 2

Previous mplayer 1.0pre5 version did _not_ have the AFMT_U* defines.

Any hints howto solve this?

Regards, Walter

PPS: Here's the response of the OSS developers regarding the bug.
     Hope that helps too!

Hi,

This is definitely a bug in mplayer.

The only unsigned format being used by any hardware is AFMT_U8. The 16 and
24 bit formats supported by the sound cards are always signed ones. So
trying to use formats like AFMT_U32_LE doesn't make any sense.

I don't know where the authors of mplayer have found formats like
AFMT_U32_LE but they don't exist in OSS and they will not be added to it
in the future.

Best regards,




More information about the MPlayer-users mailing list