[mythtv] compile 0.21 fails on videoout_ivtv.cpp

Ian Armstrong mail01 at iarmst.co.uk
Sat Mar 22 23:46:44 UTC 2008


On Saturday 22 Mar 2008, andy wrote:
> 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,

I had this i2c.h file get in the way once, where it was being used instead of 
the one in /usr/include/linux. Try renaming the the /usr/local/include/linux 
directory to something else, since it appears to be a stray directory from 
something. Since you've also played with the headers, it may be an idea to do 
an 'upgradepkg --reinstall' for the kernel headers package.

-- 
Ian


More information about the mythtv-dev mailing list