Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: [vdr]Bitstreamout plugin does not compile with kernel 2.6.3



On Wed, Feb 25, 2004 at 01:41:34PM +0100, Helmut Auer wrote:
> Hello,
> With the latest kernel 2.6.3 bk5 I get the following compiler error:
> 
> >g++ -g -O2 -Wall -Woverloaded-virtual -fPIC -DPIC -c -D_GNU_SOURCE 
> >-DPLUGIN_NAME
> >_I18N='"bitstreamout"' -D_GNU_SOURCE  -I../../../include 
> >-I/usr/src/linux/include bitstreamout.c
> >In file included from iec60958.h:41,
> >                 from spdif.h:30,
> >                 from bitstreamout.c:35:
> >/usr/src/linux/include/linux/byteorder/swab.h:133: syntax error before 
> >`__fswab16'
> >/usr/src/linux/include/linux/byteorder/swab.h:135: syntax error before 
> >`)' token
> >/usr/src/linux/include/linux/byteorder/swab.h:146: syntax error before 
> >`  __fswab32'
> >/usr/src/linux/include/linux/byteorder/swab.h:148: syntax error before 
> >`)' token
> >In file included from spdif.h:30,
> >                 from bitstreamout.c:35:
> >iec60958.h: In function `void swab(const void*, void*, int)':
> >iec60958.h:66: `__fswab16' undeclared (first use this function)
> >iec60958.h:66: (Each undeclared identifier is reported only once for 
> >each function it appears in.)
> >make[1]: *** [bitstreamout.o] Error 1
> 
> With kernel 2.6.2 it compiles fine.
> Any hints if there are any defines necessary ?

Does this patch help:

------------------------------------------------------------------------------
--- iec60958.h
+++ iec60958.h	Wed Feb 25 14:04:38 2004
@@ -38,6 +38,7 @@
 #endif
 
 #ifndef WORDS_BIGENDIAN
+# include <linux/compiler.h>
 # include <linux/byteorder/swab.h>
 # ifndef __swab16
 #  ifndef _GNU_SOURCE
------------------------------------------------------------------------------


          Werner


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index