Menu

#131 vloopback doesn't compile on Linux 4.0

0.73
New
nobody
None
Medium
Linux
Compilation
Defect
2015-07-16
2015-07-11
lantw44
No

What steps will reproduce the problem?
1. Compile vloopback on Linux 4.0.7.

What is the expected output?
The kernel module can be successfully compiled.

What do you see instead?

Building webcamstudio kernel module...
make -C /lib/modules/4.0.7-300.fc22.x86_64/build M=/path/to/vloopback modules
make[1]: Entering directory '/usr/src/kernels/4.0.7-300.fc22.x86_64'
  CC [M]  /path/to/vloopback/webcamstudio.o
/path/to/vloopback/webcamstudio.c: In function 'init_vdev':
/path/to/vloopback/webcamstudio.c:2040:7: error: 'struct video_device' has no member named 'debug'
   vdev->debug = V4L2_DEBUG_IOCTL | V4L2_DEBUG_IOCTL_ARG;
       ^
/path/to/vloopback/webcamstudio.c:2040:17: error: 'V4L2_DEBUG_IOCTL' undeclared (first use in this function)
   vdev->debug = V4L2_DEBUG_IOCTL | V4L2_DEBUG_IOCTL_ARG;
                 ^
/path/to/vloopback/webcamstudio.c:2040:17: note: each undeclared identifier is reported only once for each function it appears in
/path/to/vloopback/webcamstudio.c:2040:36: error: 'V4L2_DEBUG_IOCTL_ARG' undeclared (first use in this function)
   vdev->debug = V4L2_DEBUG_IOCTL | V4L2_DEBUG_IOCTL_ARG;
                                    ^

The Operating system you are using (Linux, Windows etc)?
Fedora 22 with Linux 4.0.7

What version of WebcamStudio are you using?
svn trunk r594

What version of Java are you using?
openjdk version "1.8.0_45"

Discussion

  • Soylent TV

    Soylent TV - 2015-07-11

    Hi and thanks for the feedback.
    We will update v4l2loopback WebcamStudio fork to work with 4.x kernels. In the meanwhile you can use the original v4l2loopback module that seems already 4.x compatible:
    https://github.com/umlaeute/v4l2loopback

    karl

     
  • lantw44

    lantw44 - 2015-07-13

    It can be successfully compiled now.

    Building webcamstudio kernel module...
    make -C /lib/modules/4.0.7-300.fc22.x86_64/build M=/path/to/vloopback modules
    make[1]: Entering directory '/usr/src/kernels/4.0.7-300.fc22.x86_64'
      CC [M]  /path/to/vloopback/webcamstudio.o
    /path/to/vloopback/webcamstudio.c:235:12: warning: ‘v4l2loopback_s_ctrl’ used but never defined
     static int v4l2loopback_s_ctrl(struct v4l2_ctrl *ctrl);
                ^
    /path/to/vloopback/webcamstudio.c:1130:12: warning: ‘vidioc_queryctrl’ defined but not used [-Wunused-function]
     static int vidioc_queryctrl(struct file *file, void *fh, struct v4l2_queryctrl *q)
                ^
    /path/to/vloopback/webcamstudio.c:1164:12: warning: ‘vidioc_g_ctrl’ defined but not used [-Wunused-function]
     static int vidioc_g_ctrl(struct file *file, void *fh, struct v4l2_control *c)
                ^
    /path/to/vloopback/webcamstudio.c:1228:12: warning: ‘webcamstudio_s_ctrl’ defined but not used [-Wunused-function]
     static int webcamstudio_s_ctrl(struct v4l2_ctrl *ctrl)
                ^
    /path/to/vloopback/webcamstudio.c:1233:12: warning: ‘vidioc_s_ctrl’ defined but not used [-Wunused-function]
     static int vidioc_s_ctrl(struct file *file, void *fh, struct v4l2_control *c)
                ^
      Building modules, stage 2.
      MODPOST 1 modules
    WARNING: "v4l2loopback_s_ctrl" [/path/to/vloopback/webcamstudio.ko] undefined!
      CC      /path/to/vloopback/webcamstudio.mod.o
      LD [M]  /path/to/vloopback/webcamstudio.ko
    make[1]: Leaving directory '/usr/src/kernels/4.0.7-300.fc22.x86_64'
    

    But I cannot load it.

    # insmod webcamstudio.ko 
    insmod: ERROR: could not insert module webcamstudio.ko: Unknown symbol in module
    

    dmesg shows:

    [  175.302333] webcamstudio: Unknown symbol v4l2loopback_s_ctrl (err 0)
    
     
  • lantw44

    lantw44 - 2015-07-15

    This version works now!

     
  • Soylent TV

    Soylent TV - 2015-07-16

    Thanks a lot !!!
    Have a good day.
    karl

     

Log in to post a comment.