Bug 35522 - dosbox compilation fails when using -alsa (alsa 1.0)
Bug#: 35522 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: ticho@gentoo.org
Component: Games
URL: 
Summary: dosbox compilation fails when using -alsa (alsa 1.0)
Keywords:  
Status Whiteboard: 
Opened: 2003-12-10 05:57 0000
Description:   Opened: 2003-12-10 05:57 0000
Following is an excerpt from `USE="-alsa" emerge -v dosbox`

if g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../../include   -O2 -mcpu=i686 -march=i686 -pipe -fomit-frame-pointer -funroll-loops -I/usr/include/SDL -D_REENTRANT -MT midi.o -MD -MP -MF ".deps/midi.Tpo" \
  -c -o midi.o `test -f 'midi.cpp' || echo './'`midi.cpp; \
then mv -f ".deps/midi.Tpo" ".deps/midi.Po"; \
else rm -f ".deps/midi.Tpo"; exit 1; \
fi
In file included from midi.cpp:91:
midi_alsa.h: In member function `void MidiHandler_alsa::send_event(int)':
midi_alsa.h:46: error: `snd_seq_flush_output' undeclared (first use this
   function)
midi_alsa.h:46: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
midi_alsa.h: In member function `virtual bool MidiHandler_alsa::Open(const
   char*)':
midi_alsa.h:143: error: `SND_SEQ_OPEN' undeclared (first use this function)
midi_alsa.h:150: error: `snd_seq_set_client_group' undeclared (first use this
   function)
make[3]: *** [midi.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/dosbox-0.60/work/dosbox-0.60/src/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dosbox-0.60/work/dosbox-0.60/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dosbox-0.60/work/dosbox-0.60'
make: *** [all] Error 2

!!! ERROR: games-emulation/dosbox-0.60 failed.
!!! Function src_compile, Line 25, Exitcode 2
!!! emake failed

------- Comment #1 From Mr. Bones. 2003-12-10 10:43:04 0000 -------

*** This bug has been marked as a duplicate of 35412 ***

------- Comment #2 From SpanKY 2003-12-10 12:16:25 0000 -------
make a patchz0r

------- Comment #3 From SpanKY 2003-12-11 22:08:32 0000 -------
fixed in cvsz0r