View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: v4l-dvb compile errors
PostPosted: Tue Oct 16, 2007 10:47 am 
Offline
Joined: Sun May 27, 2007 11:22 am
Posts: 16
Not sure whats going on here, when I try and build the latest v4l drivers it blows up on me with the errors below, any help would be greatly appreciated.

/usr/src/v4l-dvb/v4l/pvrusb2-sysfs.c:928: error: 'struct class' has no member named 'dev_release'
/usr/src/v4l-dvb/v4l/pvrusb2-sysfs.c:933: error: 'struct class' has no member named 'dev_uevent'
make[4]: *** [/usr/src/v4l-dvb/v4l/pvrusb2-sysfs.o] Error 1
make[3]: *** [_module_/usr/src/v4l-dvb/v4l] Error 2
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/usr/src/linux-source-2.6.18-chw-13'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/usr/src/v4l-dvb/v4l'
make: *** [all] Error 2


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 16, 2007 7:06 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
More details please. How exactly are you attempting to compile the latest?

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 16, 2007 7:52 pm 
Offline
Joined: Sun May 27, 2007 11:22 am
Posts: 16
cesman wrote:
More details please. How exactly are you attempting to compile the latest?

simple make at this point

Did
apt-get install mercurial

cd/usr/src

hg clone http://linuxtv.org/hg/v4l-dvb

cd v4l-dvb

make

what you see in my first post is ultimately the error of the out come.


Top
 Profile  
 
PostPosted: Wed Nov 07, 2007 1:09 am 
Offline
Joined: Thu Feb 02, 2006 2:01 am
Posts: 20
I've gotten a newer rev of the v4l-dvb code (as of 4-nov) and had a couple of other issues. I made the following changes:

Code:
diff -r b9523a14ccea linux/drivers/media/video/v4l1-compat.c
--- a/linux/drivers/media/video/v4l1-compat.c   Sun Nov 04 14:34:05 2007 -0200
+++ b/linux/drivers/media/video/v4l1-compat.c   Wed Nov 07 00:00:45 2007 -0600
@@ -145,7 +145,7 @@ const static unsigned int palette2pixelf
    [VIDEO_PALETTE_YUV422P] = V4L2_PIX_FMT_YUV422P,
 };
 
-static unsigned int __pure
+static unsigned int __attribute_pure__
 palette_to_pixelformat(unsigned int palette)
 {
    if (palette < ARRAY_SIZE(palette2pixelformat))
diff -r b9523a14ccea linux/drivers/media/video/videodev.c
--- a/linux/drivers/media/video/videodev.c   Sun Nov 04 14:34:05 2007 -0200
+++ b/linux/drivers/media/video/videodev.c   Tue Nov 06 19:31:57 2007 -0600
@@ -111,7 +111,7 @@ static void video_release(struct device
    vfd->release(vfd);
 }
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
 static struct device_attribute video_device_attrs[] = {
    __ATTR(name, S_IRUGO, show_name, NULL),
    __ATTR_NULL
@@ -120,7 +120,7 @@ static struct device_attribute video_dev
 
 static struct class video_class = {
    .name    = VIDEO_NAME,
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
    .release = video_release,
 #else
    .dev_attrs = video_device_attrs,


The former appears to be a gcc-ism, and as far as I can tell the latter two are simply a goof (as there is no dev_attrs field in struct class for 2.6.18). Note that you will get warnings when compiling videodev.c; you can ignore them.

This works for me but your mileage may vary. Caveat emptor and all that.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu