Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

compile 0.21 fails on videoout_ivtv.cpp

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


andy at squeakycode

Mar 22, 2008, 9:16 AM

Post #1 of 5 (636 views)
Permalink
compile 0.21 fails on videoout_ivtv.cpp

Hi All,

I have not been having very good success upgrading to 0.21. For
starters I have:
VIA M10000 pc
Hauppauge WinTV PVR-350.
256 meg ram (now upgraded to 1 Gig)
Slackware 12
ivtv 0.10.6
uname -a: Linux elektra 2.6.21.5 #4 Sun Dec 16 13:59:24 CST 2007 i686
VIA Nehemiah CentaurHauls GNU/Linux

It took *hour's* before the compile finally crash. I'm guessing it was
out of memory problems because it would swap and get really really slow.
Took five minutes for me to run 'ls' on it. 'free' reported there was
8 meg free, and lots of swap space being used.

No problem, 1 gig of ram was $40. installed it today and reran the compile.

About half hour later, it crashed again, though not in the same spot.
Here is, what I think, the important points. My C is only so/so.

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/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?

Thanks for your time,

-Andy

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


jaymode at gmail

Mar 22, 2008, 9:45 AM

Post #2 of 5 (605 views)
Permalink
Re: compile 0.21 fails on videoout_ivtv.cpp [In reply to]

> /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.


andy at squeakycode

Mar 22, 2008, 1:53 PM

Post #3 of 5 (591 views)
Permalink
Re: compile 0.21 fails on videoout_ivtv.cpp [In reply to]

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
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mail01 at iarmst

Mar 22, 2008, 4:46 PM

Post #4 of 5 (592 views)
Permalink
Re: compile 0.21 fails on videoout_ivtv.cpp [In reply to]

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
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


andy at squeakycode

Mar 22, 2008, 7:26 PM

Post #5 of 5 (589 views)
Permalink
Re: compile 0.21 fails on videoout_ivtv.cpp [In reply to]

Ian Armstrong wrote:
> 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.
>

Sweet! That seemed to be it. Thank you very much.

I didnt even notice that was comming from /usr/local. Seems an old
install of i2c had some stuff in there. I renamed it and the compile
got past that point. Just to make everything clean and dandy, I did a
'make clean', re-installed the headers (as you'd suggested, sounded like
a keen thing to do), and stated the make again.

Its been running for an hour, so I'm sure its past where it was crashing.

Thank you again!

-Andy
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.