Feisty videodev.h dependency errors

Bug #99179 reported by Mark Carter
2
Affects Status Importance Assigned to Milestone
Debian
Fix Released
Unknown
linux (Ubuntu)
Fix Released
Undecided
Nanley Chery

Bug Description

I was trying to compile some software called luvcview. It compiles OK in Edgy, but there seems to be a regression under Feisty beta.

You can see dependency problems by creating the file blah.c:

#include <stdio.h>
#include <videodev.h>

main()
{
        puts("hello");
}

Then do
 gcc -I/usr/include/linux blah.c

You'll get:
In file included from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:72,
                 from blah.c:5:
/usr/include/gconv.h:72: error: expected declaration specifiers or ‘...’ before ‘size_t’
...

Revision history for this message
Mark Carter (mcturra2000) wrote :

luvcview now compiles on Feisty.

However, _G_config.h still doesn't find size_t. Technically, I think think that this is still "wrong", but now a low-priority bug as far as I'm concerned.

Revision history for this message
Nanley Chery (nanoman) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try with latest Ubuntu release? Thanks in advance.

Revision history for this message
Mark Carter (mcturra2000) wrote :

Nanley, it's not so much of an issue now, I can get to compile what I want to compile. I still think there's a bug, though - that is better ironed out instead of being closed.

I am now using Gutsy, with my packages up-to-date. My original code was slightly flawed, and a better version (also attached) would be:

#include <stdio.h>
#include <linux/videodev.h>

main()
{
        puts("hello");
}

... note that I included linux/videodev.h instead of just videodev.h. This allows for a cleaner compilation command:
gcc blah.c

The error I get is now:

In file included from /usr/include/linux/videodev.h:15,
                 from blah.c:2:
/usr/include/linux/videodev2.h:482: error: field ‘timestamp’ has incomplete type

I would therefore like to maintain the stance that there is still a bug which needs sorting out. There is obviously some kind of dependency problem with the include files.

Revision history for this message
trollord (trollenlord) wrote :

It compiles cleanly on my Hardy with just build-essential installed.

Revision history for this message
Mark Carter (mcturra2000) wrote :

I confirm trollord's report of 2008-04-26.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.