[Pkg-alsa-devel] Re: Trying to test scummvm for ALSA incompatibility, need help :)

Jordi Mallach jordi@debian.org
Wed, 28 Jan 2004 10:58:30 +0100


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

Hi Tore,

On Wed, Jan 28, 2004 at 09:52:28AM +0100, Tore Anderson 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.
>   I don't know either.  Do you have a place where I can get the new
>  packages, so I can fiddle around with it myself?

We finally uploaded to unstable two days ago, as JACK was waiting for
it.

>   I don't expect to be able to look too closely at it before the
>  weekend, as work has been awfully hectic lately -- I don't have any
>  surplus energy to hack when I get home.. :-/

Fortunately, I found the scummvm problem after David sent out the bug
reports. In the file backends/midi/alsa.cpp, you will 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

As the new minor version for 1.0.x is 0, this condition doesn't work
anymore. Add SND_LIB_MAJOR >=3D 1 to that condition, too, and it should be
ok.

What others have used:
#if ((SND_LIB_MINOR >=3D 6) && (SND_LIB_MAJOR =3D=3D 0)) || (SND_LIB_MAJOR =
>=3D
1)

That should be enough (besides adding the defines David said in his
previous mail).

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/

--wzJLGUyc3ArbnUjN
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)

iD8DBQFAF4fGJYSUupF6Il4RApnMAKC2bp8rtK2Cz8P2Jlyw+eGRE9dsuQCg3vLK
nXaXH24O5m8ogne9Nyf/TSs=
=ZJs2
-----END PGP SIGNATURE-----

--wzJLGUyc3ArbnUjN--