FedoraForum.org - Fedora Support Forums and Community
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2011
    Posts
    124

    Droidcam - v4l2loopback-dc module won't compile with current kernels

    I use droidcam to use my phone as a camera/webcam. After 3.17, though, it won't compile the module anymore, generating this error:

    make
    make -C /lib/modules/`uname -r`/build M=`pwd`
    make[1]: Entering directory '/usr/src/kernels/3.19.3-200.fc21.x86_64'
    LD /tmp/foobar/v4l2loopback/built-in.o
    CC [M] /tmp/foobar/v4l2loopback/v4l2loopback-dc.o
    /tmp/foobar/v4l2loopback/v4l2loopback-dc.c: In function ‘attr_store_maxopeners’:
    /tmp/foobar/v4l2loopback/v4l2loopback-dc.c:456:3: error: implicit declaration of function ‘strict_strtoul’ [-Werror=implicit-function-declaration]
    if (strict_strtoul(buf, 0, &curr))
    ^
    /tmp/foobar/v4l2loopback/v4l2loopback-dc.c: At top level:
    /tmp/foobar/v4l2loopback/v4l2loopback-dc.c:2311:3: warning: initialization from incompatible pointer type
    .vidioc_s_std = &vidioc_s_std,
    ^
    /tmp/foobar/v4l2loopback/v4l2loopback-dc.c:2311:3: warning: (near initialization for ‘v4l2_loopback_ioctl_ops.vidioc_s_std’)
    /tmp/foobar/v4l2loopback/v4l2loopback-dc.c:2331:3: warning: initialization from incompatible pointer type
    .vidioc_s_audio = &vidioc_s_audio,
    ^
    /tmp/foobar/v4l2loopback/v4l2loopback-dc.c:2331:3: warning: (near initialization for ‘v4l2_loopback_ioctl_ops.vidioc_s_audio’)
    /tmp/foobar/v4l2loopback/v4l2loopback-dc.c:2333:3: warning: initialization from incompatible pointer type
    .vidioc_s_audout = &vidioc_s_audout,
    ^
    /tmp/foobar/v4l2loopback/v4l2loopback-dc.c:2333:3: warning: (near initialization for ‘v4l2_loopback_ioctl_ops.vidioc_s_audout’)
    cc1: some warnings being treated as errors
    scripts/Makefile.build:263: recipe for target '/tmp/foobar/v4l2loopback/v4l2loopback-dc.o' failed

    ---

    any ideas?

  2. #2
    Join Date
    May 2015
    Location
    france
    Posts
    1

    Re: Droidcam - v4l2loopback-dc module won't compile with current kernels

    Hi,

    vidioc_s_std() definition have changed from
    Code:
    static int vidioc_s_std (struct file *file,  void *private_data,  v4l2_std_id *_std)
    to
    Code:
    static int vidioc_s_std (struct file *file,  void *private_data,  v4l2_std_id _std)
    you have to modify references to _std from
    Code:
     if(_std) {
        req_std=*_std;
        *_std=all_std;
      }
    to

    Code:
    if(_std) {
        req_std=_std;
      }
    and both vidioc_s_audout() and vidioc_s_audio just need "const struct v4l2_audio *arg"
    but this doesn't really care as arguments are not used

    sorry, I was not able to attach the patch.. upload fail, and my old account disappear

Similar Threads

  1. Compile vanilla kernels in F17
    By Overlord Laharl in forum Using Fedora
    Replies: 3
    Last Post: 6th September 2012, 06:48 PM
  2. how to compile fglrx for all kernels
    By Dr.Death in forum Using Fedora
    Replies: 1
    Last Post: 4th October 2010, 10:37 PM
  3. Replies: 5
    Last Post: 7th October 2006, 04:32 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •