Subject: Re: Keyboard problems
To: None <port-sparc64@NetBSD.org>
From: Michael <macallan18@earthlink.net>
List: port-sparc64
Date: 08/03/2005 17:12:04
--Signature_Wed__3_Aug_2005_17_12_04_-0400_plU3qj/4vcGJVQwp
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

> > May be it's 64-bit issue, I'm gonna get 32-bit userland up and
> > running on the second hard disk and see if the problem persists.
>=20
> It's certainly no endianness problem - my PowerPC boxes don't have it.
> Probably just another case of someone assuming that sizeof(long)=3D=3D4.

I've found the problem - it's a lot further down than I expected. One
single source file in libgobject treats enum values as int while all the
rest treats them as long. What happens is that all enums passing the
marshaller are 'converted' to 0 or garbage.
It will hopefully be fixed in the next glib2 release and I've sent a
patch to the package maintainer. If you're impatient some sort of patch
can be found in
ftp://ftp.netbsd.org/pub/NetBSD/misc/macallan/sparc64/gvaluetransform.patch
if it doesn't apply right away it should at least tell you what to do.

have fun
Michael

--Signature_Wed__3_Aug_2005_17_12_04_-0400_plU3qj/4vcGJVQwp
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBQvEzJMpnzkX8Yg2nAQJHmgf/URKjGc9Y1p1KjuhDndsQHs6cyuOAkWiB
XetS9toZh7yQ/shs9FTURsX8jVitLdDNq2NbPfT4IKdYqxdOnPk67wvAcLCZzy6f
sfRF6vzdz9HRv4NmukkxWRsVBdizjEg/Zya9s1QO5Ly8kC2r2SWVGM5HdmzoWjn0
jQ7ros+qF2AggZFqip17pzO0VrHtFXUd2vw2N/cdvWfPjerz0ahRmVxER1Blli6c
6V8twnF4GqKDY1glJPjJoa8Ku0dCuBoGHiTEAFZSgeYan/8PyWVrdDOAJgu+XAlp
PgCC8lYpDDjGn42rtoihXDhS417tld1pH6soWEqV+Dqpw6Q3jylIbg==
=mBed
-----END PGP SIGNATURE-----

--Signature_Wed__3_Aug_2005_17_12_04_-0400_plU3qj/4vcGJVQwp--