[mythtv] compile 0.21 fails on videoout_ivtv.cpp
andy
andy at squeakycode.net
Sat Mar 22 20:53:01 UTC 2008
Jay Modi wrote:
>
> /usr/include/asm-generic/bitops/fls64.h: In function 'int fls64(__u64)':
> /usr/include/asm-generic/bitops/fls64.h:10: error: 'fls' was not
> declared in this scope
> /usr/include/asm-generic/bitops/fls64.h:11: error: 'fls' was not
> declared in this scope
>
>
> Anyone got any hints?
>
>
> Well it looks like this could be very similar to this issue posted as a
> MySQL "bug" here:
> http://bugs.mysql.com/bug.php?id=18653
>
> Check the link for /usr/include/linux and /usr/include/asm-generic and
> make sure they point to the correct kernel.
>
> If that is correct then look here as it may contain some sort of hint.
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=379720
>
> Also, this issue should most likely be on the users list and not on the
> development list.
>
Thanks for the pointers. I checked my links and they look correct. I
did the same patch (include fls.h at the top of fls64.h) even though
they are talking about kernel 2.6.17 and I'm non 2.6.21.
It did not help though, that error went away, and I get others:
ccache g++ -c -pipe -march=pentiumpro -fomit-frame-pointer -O3 -Wall
-Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor
-D__STDC_CONSTANT_MACROS -I/usr/include/artsc -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/freetype2 -D_REENTRANT -DPIC -fPIC -DMMX -Di386
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\"
-DLIBDIR=\"/usr/local/lib\" -D_LARGEFILE_SOURCE -DUSING_OSS
-DUSING_H264TOOLS -DUSING_X11 -DUSING_XV -DUSING_XVMC -DUSING_XVMCW
-DUSING_XVMC_VLD -DUSING_OPENGL -DUSING_FRONTEND -DUSING_FFMPEG_THREADS
-DUSING_V4L -DUSING_DBOX2 -DUSING_IPTV -DUSING_HDHOMERUN -DUSING_IVTV
-DUSING_DVB -DUSING_BACKEND -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
-DQT_SHARED -I/usr/lib/qt/mkspecs/default -I. -I/usr/local/include
-I/usr/include -I/usr/include -I../.. -I.. -I. -I../libmyth
-I../libavcodec -I../libavutil -I../libmythmpeg2 -Idvbdev -Impeg -Iiptv
-I../libmythlivemedia/BasicUsageEnvironment/include
-I../libmythlivemedia/groupsock/include
-I../libmythlivemedia/liveMedia/include
-I../libmythlivemedia/UsageEnvironment/include -I/usr/lib/qt/include
-I/usr/include -I/usr/include -o videoout_ivtv.o videoout_ivtv.cpp
In file included from /usr/include/linux/module.h:10,
from /usr/local/include/linux/i2c.h:41,
from /usr/include/linux/fb.h:5,
from videoout_ivtv.cpp:22:
/usr/include/linux/list.h:959:2: warning: #warning "don't include kernel
headers in userspace"
In file included from /usr/include/linux/module.h:21,
from /usr/local/include/linux/i2c.h:41,
from /usr/include/linux/fb.h:5,
from videoout_ivtv.cpp:22:
/usr/include/asm/module.h:62:2: error: #error unknown processor family
In file included from tv_play.h:18,
from NuppelVideoPlayer.h:18,
from videoout_ivtv.cpp:40:
../libmyth/util.h:100:30: error: macro "rdtsc" requires 2 arguments, but
only 1 given
/usr/include/linux/bitops.h: In function 'long unsigned int
hweight_long(long unsigned int)':
/usr/include/linux/bitops.h:31: error: 'hweight32' was not declared in
this scope
/usr/include/linux/bitops.h:31: error: 'hweight64' was not declared in
this scope
/usr/include/asm/system.h: At global scope:
/usr/include/asm/system.h:280: error: expected ',' or '...' before 'new'
/usr/include/asm/system.h: In function 'long unsigned int
__cmpxchg(volatile void*, long unsigned int, long unsigned int)':
/usr/include/asm/system.h:283: error: 'size' was not declared in this scope
/usr/include/asm/system.h:287: error: expected type-specifier before ')'
token
/usr/include/asm/system.h:293: error: expected type-specifier before ')'
token
>
> Also, this issue should most likely be on the users list and not on the
> development list.
Yes, I did try the users list two days ago, but got no response.
Does this look like I should upgrade my kernel? Or more that my headers
are screwed up somehow? I've had 2.6.14, 19 and 21 all running at some
point in time. I always compile my own kernel and I do have the
slackware kernel-headers-2.6.21.5 package installed.
Thanks for the help,
-Andy
More information about the mythtv-dev
mailing list