vloopback-source does not compile on oneiric

Bug #945330 reported by Stephan Fabel
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
vloopback (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

$ lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10

$ apt-cache policy vloopback-source
vloopback-source:
  Installed: 1.3-3
  Candidate: 1.3-3
  Version table:
 *** 1.3-3 0
        500 http://mirror.hmc.edu/ubuntu/ oneiric/universe amd64 Packages
        100 /var/lib/dpkg/status

When issuing the "make" command in /usr/src/modules/vloopback I get the following:
# make
Building vloopback driver...
make[1]: Entering directory `/usr/src/linux-headers-3.0.0-15-generic'
  CC [M] /usr/src/modules/vloopback/vloopback.o
/usr/src/modules/vloopback/vloopback.c:196:2: error: #error "need CONFIG_VIDEO_V4L1_COMPAT"
/usr/src/modules/vloopback/vloopback.c: In function ‘vloopback_read’:
/usr/src/modules/vloopback/vloopback.c:650:33: error: storage size of ‘vidwin’ isn’t known
/usr/src/modules/vloopback/vloopback.c:651:31: error: storage size of ‘vidmmap’ isn’t known
/usr/src/modules/vloopback/vloopback.c:652:34: error: storage size of ‘vidpic’ isn’t known
/usr/src/modules/vloopback/vloopback.c:654:28: error: ‘VIDIOCGWIN’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:654:28: note: each undeclared identifier is reported only once for each function it appears in
/usr/src/modules/vloopback/vloopback.c:655:28: error: ‘VIDIOCGPICT’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:662:32: error: ‘VIDIOCMCAPTURE’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:665:32: error: ‘VIDIOCSYNC’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:652:34: warning: unused variable ‘vidpic’ [-Wunused-variable]
/usr/src/modules/vloopback/vloopback.c:651:31: warning: unused variable ‘vidmmap’ [-Wunused-variable]
/usr/src/modules/vloopback/vloopback.c:650:33: warning: unused variable ‘vidwin’ [-Wunused-variable]
/usr/src/modules/vloopback/vloopback.c: In function ‘vloopback_ioctl’:
/usr/src/modules/vloopback/vloopback.c:841:57: error: ‘BASE_VIDIOCPRIVATE’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:866:10: error: ‘VIDIOCGCAP’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:868:33: error: storage size of ‘b’ isn’t known
/usr/src/modules/vloopback/vloopback.c:874:22: error: ‘VID_TYPE_CAPTURE’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:868:33: warning: unused variable ‘b’ [-Wunused-variable]
/usr/src/modules/vloopback/vloopback.c:890:10: error: ‘VIDIOCGCHAN’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:892:30: error: storage size of ‘v’ isn’t known
/usr/src/modules/vloopback/vloopback.c:905:18: error: ‘VIDEO_TYPE_CAMERA’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:892:30: warning: unused variable ‘v’ [-Wunused-variable]
/usr/src/modules/vloopback/vloopback.c:915:10: error: ‘VIDIOCSCHAN’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:930:10: error: ‘VIDIOCGTUNER’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:932:28: error: storage size of ‘v’ isn’t known
/usr/src/modules/vloopback/vloopback.c:946:18: error: ‘VIDEO_MODE_AUTO’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:932:28: warning: unused variable ‘v’ [-Wunused-variable]
/usr/src/modules/vloopback/vloopback.c:954:10: error: ‘VIDIOCGPICT’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:956:30: error: storage size of ‘p’ isn’t known
/usr/src/modules/vloopback/vloopback.c:956:30: warning: unused variable ‘p’ [-Wunused-variable]
/usr/src/modules/vloopback/vloopback.c:972:10: error: ‘VIDIOCSPICT’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:974:30: error: storage size of ‘p’ isn’t known
/usr/src/modules/vloopback/vloopback.c:974:30: warning: unused variable ‘p’ [-Wunused-variable]
/usr/src/modules/vloopback/vloopback.c:989:10: error: ‘VIDIOCGWIN’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:991:29: error: storage size of ‘vw’ isn’t known
/usr/src/modules/vloopback/vloopback.c:991:29: warning: unused variable ‘vw’ [-Wunused-variable]
/usr/src/modules/vloopback/vloopback.c:1007:10: error: ‘VIDIOCSWIN’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:1009:29: error: storage size of ‘vw’ isn’t known
/usr/src/modules/vloopback/vloopback.c:1009:29: warning: unused variable ‘vw’ [-Wunused-variable]
/usr/src/modules/vloopback/vloopback.c:1051:10: error: ‘VIDIOCGMBUF’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:1053:27: error: storage size of ‘vm’ isn’t known
/usr/src/modules/vloopback/vloopback.c:1053:27: warning: unused variable ‘vm’ [-Wunused-variable]
/usr/src/modules/vloopback/vloopback.c:1066:10: error: ‘VIDIOCMCAPTURE’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:1068:27: error: storage size of ‘vm’ isn’t known
/usr/src/modules/vloopback/vloopback.c:1068:27: warning: unused variable ‘vm’ [-Wunused-variable]
/usr/src/modules/vloopback/vloopback.c:1088:10: error: ‘VIDIOCSYNC’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:1124:10: error: ‘VIDIOCGUNIT’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:1126:27: error: storage size of ‘vu’ isn’t known
/usr/src/modules/vloopback/vloopback.c:1133:18: error: ‘VIDEO_NO_UNIT’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:1126:27: warning: unused variable ‘vu’ [-Wunused-variable]
/usr/src/modules/vloopback/vloopback.c:1144:10: error: ‘VIDIOCGFBUF’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:1146:29: error: storage size of ‘vb’ isn’t known
/usr/src/modules/vloopback/vloopback.c:1146:29: warning: unused variable ‘vb’ [-Wunused-variable]
/usr/src/modules/vloopback/vloopback.c:1157:10: error: ‘VIDIOCCAPTURE’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:1172:10: error: ‘VIDIOCGFREQ’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:1173:10: error: ‘VIDIOCSFREQ’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:1174:10: error: ‘VIDIOCGAUDIO’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:1175:10: error: ‘VIDIOCSAUDIO’ undeclared (first use in this function)
/usr/src/modules/vloopback/vloopback.c:1177:10: error: ‘VIDIOCKEY’ undeclared (first use in this function)
make[2]: *** [/usr/src/modules/vloopback/vloopback.o] Error 1
make[1]: *** [_module_/usr/src/modules/vloopback] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-15-generic'
make: *** [vloopback] Error 2

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: vloopback-source 1.3-3
ProcVersionSignature: Ubuntu 3.0.0-15.26-generic 3.0.13
Uname: Linux 3.0.0-15-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Fri Mar 2 16:47:41 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: vloopback
UpgradeStatus: Upgraded to oneiric on 2012-02-08 (24 days ago)

Revision history for this message
Stephan Fabel (sfabel) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in vloopback (Ubuntu):
status: New → Confirmed
Revision history for this message
Stephan Fabel (sfabel) wrote :

Sorry, the above output is wrong. This is what you get when compiling:

Building vloopback driver...
make[1]: Entering directory `/usr/src/linux-headers-3.0.0-15-generic'
  CC [M] /usr/src/modules/vloopback/vloopback.o
/usr/src/modules/vloopback/vloopback.c:196:2: error: #error "need CONFIG_VIDEO_V4L1_COMPAT"
/usr/src/modules/vloopback/vloopback.c:220:28: fatal error: linux/videodev.h: No such file or directory
compilation terminated.
make[2]: *** [/usr/src/modules/vloopback/vloopback.o] Error 1
make[1]: *** [_module_/usr/src/modules/vloopback] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-15-generic'
make: *** [vloopback] Error 2

Revision history for this message
Evan P (evplatt-gmail) wrote :

I was able to get vloopback working in Oneiric. I basically forced some defines and changed the videodev include to make it compile.

First, install the libv4l-div package. Then you will need to include libv4l1-videodev.h instead of linux/videodev.h (you will not see this in the attached patch file - I used a symlink to link to the new header)

I have never created a patch before, and the attached file may not be 'patch'able, but it should summarize the changes I made.

Make failed to compile the example, but I ignored that. I also commented out the 'example' line from the install section of the Makefile, so that 'make install' was successful without the example.

So summarize:
1) install libv4l1-videodev.h
2) include libv4l1-videodev.h instead of videodev.h
3) make the other changes in the attached patch
4) comment out first line of 'install' section of makefile
5) 'make', 'sudo make install', 'modprobe vloopback'

Hope this helps.

Revision history for this message
Evan P (evplatt-gmail) wrote :

Patch for #4

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "vloopback_oneiric.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

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

Other bug subscribers

Remote bug watches

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