Bug#258449: vdr-plugin-bitstreamout_0.61-1(hppa/unstable): FTBFS: including kernel headers

Christoph Martin pkg-vdr-dvb-devel@lists.alioth.debian.org
Fri, 16 Jul 2004 16:05:45 +0200


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigD554BCCA05F2BB8A49376B6E
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Hi Thomas,

Thomas Schmidt schrieb:
> * Christoph Martin schrieb am 16.07.04, um 09:06 Uhr:
> 
> Also er kommt auf alle Fälle schon mal ein Stück weiter, aber ganz
> klappt es immer noch nicht:
> 
> g++ -O2  -Wall -Woverloaded-virtual -pthread -fPIC -DPIC -c -DPLUGIN_NAME_I18N='"bitstreamout"' -D_GNU_SOURCE  -I/usr/include/vdr/include -I/usr/include/include channel.c
> channel.c: In destructor `virtual cInStream::~cInStream()':
> channel.c:68: error: invalid conversion from `volatile void*' to `void*'
> channel.c: In member function `bool cInStream::ScanTSforAudio(const uint_8*,
>    int, bool)':
> channel.c:549: error: invalid conversion from `volatile void*' to `void*'
> make[1]: *** [channel.o] Fehler 1
> make[1]: Verlasse Verzeichnis »/home/chelli/vdr/cvs-buildpackage/vdr-plugin-bitstreamout/vdr-plugin-bitstreamout-0.61b«
> make: *** [build-stamp] Fehler 2
> 
> Was ist denn "volatile void" für ein Datentyp?

volatile weist den Compiler an nicht zu optimieren, sprich den Wert
einer Variablen immer aus dem Speicher zu lesen.

Siehe: http://www.programmersheaven.com/articles/pathak/article1.htm und
http://publications.gbdirect.co.uk/c_book/chapter8/const_and_volatile.html

Ok. Nexter Test:

int inline test_and_set_bit( int n, volatile void *a )
{
  int *addr = (int *)a;
  int result = test_bit(n, addr);
  set_bit(n, addr);
  return result;
}

int inline test_and_clear_bit( int n, volatile void *a )
{
  int *addr = (int *)a;
  int result = test_bit(n, addr);
  clear_bit(n, addr);
  return result;
}


-- 
============================================================================
Christoph Martin, EDV der Verwaltung, Uni-Mainz, Germany
 Internet-Mail:  Christoph.Martin@Uni-Mainz.DE
  Telefon: +49-6131-3926337
      Fax: +49-6131-3922856

--------------enigD554BCCA05F2BB8A49376B6E
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFA9+C9geVih7XOVJcRAoW8AJ4mpX09O69KLiuPxbLr5z/DYPmSYACfXPdk
SBF5L640rzN376/Wu4iPJtw=
=5QNQ
-----END PGP SIGNATURE-----

--------------enigD554BCCA05F2BB8A49376B6E--