[MPlayer-dev-eng] [PATCH] afmt.h

Björn Sandell biorn at dce.chalmers.se
Sun Oct 27 00:14:54 CEST 2002


Hi,

On Sun, 27 Oct 2002 00:21:32 +0200
Arpi <arpi at thot.banki.hu> wrote:
 
> > I could fix it in configure (by undefing HAVE_SOUNDCARD_H if --disable-ossaudio
> > is specified) if you prefer that.
> no
> i prefer fixing the reason of the problem, not workarounding it
> 
> cat > $TMPC << EOF
> #include <soundcard.h>
> int main(void) { return 0; }
> EOF
> _soundcard=no
> cc_check && _soundcard=yes
> if test "$_soundcard" = yes ; then
>   _def_soundcard='#define HAVE_SOUNDCARD_H 1'
>   _inc_soundcard='#include <soundcard.h>'
> else
>   _def_soundcard='#undef HAVE_SOUNDCARD_H'
> fi
> 
> this looks ok to me.
> so if it detects it, then it shouldn't fail at compile time.
> what's the error when it fail?

There's a line "#define ioctl _oss_ioctl" in soundcard.h so -lossaudio is
needed, and that's not there when --disable-ossaudio is specified and we
get a 

Undefined symbol `__oss_ioctl' referenced from text segment

when linking.

-- 
Björn Sandell       DCE/DFS Sysadmin       IT department
Chalmers University of Technology    www.dce.chalmers.se



More information about the MPlayer-dev-eng mailing list