[Pkg-alsa-devel] Trying to test dosbox with ALSA incompatibility, need help :)

Jordi Mallach pkg-alsa-devel@lists.alioth.debian.org
Sat, 24 Jan 2004 11:48:00 +0100


--OXfL5xGRrasGEqWY
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jan 24, 2004 at 04:58:04AM -0500, David B Harris wrote:
> We're filing pre-emptive bugs on packages which are fixed by adding
> those defines, but I wasn't able to really figure out why yours failed
> to build. I had hoped you could lend a hand - attached is a log of the
> build failure.
> 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=
=20
>    function)
> midi_alsa.h:46: error: (Each undeclared identifier is reported only once =
for=20
>    each function it appears in.)
> midi_alsa.h: In member function `virtual bool MidiHandler_alsa::Open(cons=
t=20
>    char*)':
> midi_alsa.h:143: error: `SND_SEQ_OPEN' undeclared (first use this functio=
n)
> midi_alsa.h:150: error: `snd_seq_set_client_group' undeclared (first use =
this=20
>    function)

This is because dosbox tries to use ALSA 0.5 stuff here.
In midi_alsa.h, you'll find:

#if SND_LIB_MINOR >=3D 6
#define snd_seq_flush_output(x) snd_seq_drain_output(x)
#define snd_seq_set_client_group(x,name)        /*nop */
#define my_snd_seq_open(seqp) snd_seq_open(seqp, "hw", SND_SEQ_OPEN_OUTPUT,=
 0)
#else
/* SND_SEQ_OPEN_OUT causes oops on early version of ALSA */
#define my_snd_seq_open(seqp) snd_seq_open(seqp, SND_SEQ_OPEN)
#endif

Of course, for ALSA 1.0.1, the MINOR version isn't >=3D 6 anymore, so you
need to make it work for SND_LIB_MAJOR >=3D 1 too.

Thanks,
Jordi
--=20
Jordi Mallach P=E9rez  --  Debian developer     http://www.debian.org/
jordi@sindominio.net     jordi@debian.org     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/~jordi/

--OXfL5xGRrasGEqWY
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAEk1fJYSUupF6Il4RAv6TAKCvBktxko6IQX0eOxOfHVd9j6NNGACg8h3g
Pjr7b8hx9/ZGihM+SFLQ6V8=
=+HfC
-----END PGP SIGNATURE-----

--OXfL5xGRrasGEqWY--