Bug#258449: vdr-plugin-bitstreamout_0.61-1(hppa/unstable): FTBFS: including kernel headers
Thomas Schmidt
pkg-vdr-dvb-devel@lists.alioth.debian.org
Thu, 15 Jul 2004 21:09:12 +0200
--FCuugMFkClbJLl1L
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
* Christoph Martin schrieb am 15.07.04, um 18:55 Uhr:
> als Macro habe ich es nicht hinbekommen. Aber probiers mal hier mit:
>=20
> int inline test_and_set_bit( int n, void *a )
> {
> int *addr =3D a;
> int result =3D test_bit(n, addr);
> set_bit(n, addr);
> return result;
> }
>=20
> int inline test_and_clear_bit( int n, void *a )
> {
> int *addr =3D a;
> int result =3D test_bit(n, addr);
> clear_bit(n, addr);
> return result;
> }
Leider mag das der gcc noch nicht ganz:
g++ -O2 -Wall -Woverloaded-virtual -pthread -fPIC -DPIC -c -DPLUGIN_NAME_I=
18N=3D'"bitstreamout"' -D_GNU_SOURCE -I/usr/include/vdr/include -I/usr/inc=
lude/include bitstreamout.c
In file included from bitstreamout.c:34:
types.h: In function `int test_and_set_bit(int, void*)':
types.h:73: error: invalid conversion from `void*' to `int*'
types.h: In function `int test_and_clear_bit(int, void*)':
types.h:81: error: invalid conversion from `void*' to `int*'
make[1]: *** [bitstreamout.o] Fehler 1
make[1]: Verlasse Verzeichnis =BB/home/chelli/vdr/cvs-buildpackage/vdr-plug=
in-bitstreamout/vdr-plugin-bitstreamout-0.61b=AB
make: *** [build-stamp] Fehler 2
Und wenn man aus dem void* ein int* macht, mag er es auch nicht.
Thomas
--=20
Thomas Schmidt
thomas.schmidt@in.stud.tu-ilmenau.de
--FCuugMFkClbJLl1L
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)
iD8DBQFA9tZYc9+NqwoydlIRAkKxAJ4ktU76pgxr26W6ibIBZSvp9ypTNACfZCg8
+VmZU5vGDP2XBiCt7ZeSItQ=
=t2HX
-----END PGP SIGNATURE-----
--FCuugMFkClbJLl1L--