[mythtv] CVS compile errors on kernel 2.6.9

Chris Birkinshaw chris at postbox.org.uk
Fri Nov 5 15:17:49 UTC 2004


When compiling on Redhat 9.0 with a 2.6.9 kernel I get the following 
errors:

make[2]: Entering directory `/root/mythtv-cvs/mythtv/libs/libmyth'
g++ -c -pipe -Wall -W -O3 -march=pentiumpro -fomit-frame-pointer 
-D_REENTRANT -fPIC  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 
-DPREFIX=\"/usr/local\" -DMMX -DCONFIG_VIDEO4LINUX -DUSING_IVTV 
-DUSING_OSS -DUSING_DVB -DUSE_ALSA -DUSE_JOYSTICK_MENU -DUSE_LIRC 
-DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.1/mkspecs/default -I. 
-I/usr/local/include -I/usr/src/dvb-kernel/linux/include 
-I../libmythsamplerate -I/usr/lib/qt-3.1/include -o mythcdrom-linux.o 
mythcdrom-linux.cpp
In file included from /usr/include/asm/byteorder.h:57,
                  from /usr/include/linux/cdrom.h:14,
                  from mythcdrom-linux.cpp:3:
/usr/include/linux/byteorder/little_endian.h:43: syntax error before 
`(' token
/usr/include/linux/byteorder/little_endian.h:47: parse error before `*' 
token
/usr/include/linux/byteorder/little_endian.h: In function `__u64
    __le64_to_cpup(...)':
/usr/include/linux/byteorder/little_endian.h:49: `p' undeclared (first 
use this
    function)
/usr/include/linux/byteorder/little_endian.h:49: (Each undeclared 
identifier is
    reported only once for each function it appears in.)
/usr/include/linux/byteorder/little_endian.h: At global scope:
/usr/include/linux/byteorder/little_endian.h:51: syntax error before 
`(' token
/usr/include/linux/byteorder/little_endian.h:55: parse error before `*' 
token
/usr/include/linux/byteorder/little_endian.h:59: syntax error before 
`(' token
/usr/include/linux/byteorder/little_endian.h:63: parse error before `*' 
token
/usr/include/linux/byteorder/little_endian.h:67: syntax error before 
`(' token
/usr/include/linux/byteorder/little_endian.h:71: parse error before `*' 
token
/usr/include/linux/byteorder/little_endian.h:75: syntax error before 
`(' token
/usr/include/linux/byteorder/little_endian.h:79: parse error before `*' 
token
/usr/include/linux/byteorder/little_endian.h:83: syntax error before 
`(' token
/usr/include/linux/byteorder/little_endian.h:87: parse error before `*' 
token
make[2]: *** [mythcdrom-linux.o] Error 1
make[2]: Leaving directory `/root/mythtv-cvs/mythtv/libs/libmyth'
make[1]: *** [sub-libmyth] Error 2
make[1]: Leaving directory `/root/mythtv-cvs/mythtv/libs'
make: *** [sub-libs] Error 2



The current release version of mythtv compiles fine, does anyone have 
any idea what I'm doing wrong here?

Chris

ps. I also had to add the following to audiooutputbase.cpp as detailed 
in Christian Hack's post:

#include <sys/types.h>
#include <unistd.h>



More information about the mythtv-dev mailing list