Compiling MythTV 0.25 on CentOS 5

Yeechang Lee <[email protected]>
Newsgroups gmane.linux.redhat.rpm.atrpms.general
Message-ID <[email protected]>
I realize Axel didn't release binaries of MythTV 0.25 on RHEL/CentOS 5
for a reason, but I figured I'd try to compile it anyway. Using 

    rpmbuild --without pulseaudio --with v4l-headers --rebuild
    rpm/SRPMS/mythtv-0.25-286.src.rpm

I get:
------------------------------------------------------------------
g++ -c -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC
-I/usr/include/nvidia-graphics -fomit-frame-pointer -fPIC -g -Wall
-Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor
-funit-at-a-time -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -O3
-I/usr/include/freetype2 -D_REENTRANT -fPIC -DMMX -D_GNU_SOURCE
-DUSING_CRYSTALHD -DUSING_LIBASS -DFFTW3_SUPPORT -DUSING_X11
-DUSING_XV -DUSING_VDPAU -DUSING_OPENGL -DUSING_OPENGL_VIDEO
-DUSING_VAAPI -DUSING_MHEG -DUSING_FRONTEND -DUSING_FFMPEG_THREADS
-DUSING_ALSA -DUSING_OSS -DUSING_V4L2 -DUSING_V4L1
-DUSING_LINUX_FIREWIRE -DUSING_FIREWIRE -DUSING_IPTV -DUSING_HDHOMERUN
-DUSING_CETON -DUSING_IVTV -DUSING_HDPVR -DUSING_DVB -DUSING_BACKEND
-DMTV_API -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_XML_LIB -DQT_OPENGL_LIB
-DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/lib64/qt47/mkspecs/linux-g++ -I. -I/usr/include/QtCore
-I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtOpenGL
-I/usr/include/QtXml -I/usr/include/QtSql -I/usr/include -I/usr
-I/usr/include/v4l -I/usr/include/libxml2
-I.. -I../.. -I../../external/FFmpeg -I. -I../libmyth
-I../libmyth/audio -I../libmythbase -I../libmythhdhomerun
-I../libmythdvdnav -I../libmythbluray -Idvbdev -Impeg -Iiptv
-Ichannelscan -Ivisualisations
-I../libmythlivemedia/BasicUsageEnvironment/include
-I../libmythlivemedia/BasicUsageEnvironment
-I../libmythlivemedia/groupsock/include
-I../libmythlivemedia/groupsock
-I../libmythlivemedia/liveMedia/include
-I../libmythlivemedia/liveMedia
-I../libmythlivemedia/UsageEnvironment/include
-I../libmythlivemedia/UsageEnvironment -I../libmythbase -I../libmythui
-I../libmythupnp -I../libmythservicecontracts -I/usr/include
-I/usr/X11R6/include -I. -o v4lrecorder.o v4lrecorder.cpp
/usr/include/sys/select.h:78: error: conflicting declaration 'typedef
struct fd_set fd_set'
/usr/include/linux/types.h:12: error: 'fd_set' has a previous
declaration as 'typedef struct __kernel_fd_set fd_set'
/usr/include/sys/types.h:46: error: conflicting declaration 'typedef
__loff_t loff_t'
/usr/include/linux/types.h:30: error: 'loff_t' has a previous
declaration as 'typedef __kernel_loff_t loff_t'
/usr/include/sys/types.h:62: error: conflicting declaration 'typedef
__dev_t dev_t'
/usr/include/linux/types.h:13: error: 'dev_t' has a previous
declaration as 'typedef __kernel_dev_t dev_t'
/usr/include/time.h:105: error: conflicting declaration 'typedef void*
timer_t'
/usr/include/linux/types.h:22: error: 'timer_t' has a previous
declaration as 'typedef __kernel_timer_t timer_t'
/usr/include/sys/types.h:198: error: conflicting declaration 'typedef
long int int64_t'
/usr/include/linux/types.h:98: error: 'int64_t' has a previous
declaration as 'typedef __s64 int64_t'
/usr/include/sys/types.h:204: error: conflicting declaration 'typedef
long unsigned int u_int64_t'
/usr/include/linux/types.h:97: error: 'u_int64_t' has a previous
declaration as 'typedef __u64 u_int64_t'
/usr/include/sys/types.h:248: error: conflicting declaration 'typedef
__blkcnt64_t blkcnt_t'
/usr/include/linux/types.h:114: error: 'blkcnt_t' has a previous
declaration as 'typedef long unsigned int blkcnt_t'
/usr/include/stdint.h:56: error: conflicting declaration 'typedef long
unsigned int uint64_t'
/usr/include/linux/types.h:96: error: 'uint64_t' has a previous
declaration as 'typedef __u64 uint64_t'
make[2]: *** [v4lrecorder.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/home/ylee/rpm/BUILD/mythtv-0.25/mythtv-0.25/libs/libmythtv'
make[1]: *** [sub-libmythtv-make_default] Error 2
make[1]: Leaving directory
`/home/ylee/rpm/BUILD/mythtv-0.25/mythtv-0.25/libs'
make: *** [libs] Error 2
-----------------------------------------------------------------

I am on a 64-bit system. Ideas?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.