Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532894 - media-video/v4l2loopback-0.8.0 with kernel 3.18 - /work/v4l2loopback-0.8.0/v4l2loopback.c:486:2: error: implicit declaration of function ‘strict_strtoul’ [-Werror=implicit-function-declaration]
Summary: media-video/v4l2loopback-0.8.0 with kernel 3.18 - /work/v4l2loopback-0.8.0/v4...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Naohiro Aota
URL: https://github.com/umlaeute/v4l2loopb...
Whiteboard:
Keywords: PATCH
Depends on: 451978 568776
Blocks:
  Show dependency tree
 
Reported: 2014-12-17 21:47 UTC by Reuben Martin
Modified: 2017-08-11 02:31 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Kamil Roman 2015-04-14 09:52:17 UTC
Workaround (reproduction of steps I did on my workstation, so may contain some minor errors):

su -
cd /etc/portage

#enable patches for all ebuilds as v4l2loopback does not invoke epatch_user, see https://wiki.gentoo.org/wiki//etc/portage/patches for details

cat << EOF > bashrcemerge =media-video/v4l2loopback-0.8.0
pre_src_prepare() {
    if ! type epatch_user > /dev/null 2>&1; then
        local names="epatch_user epatch evar_push evar_push_set evar_pop estack_push estack_pop"
        source <(awk "/^# @FUNCTION: / { p = 0 } /^# @FUNCTION: (${names// /|})\$/ { p = 1; } p { print  }" /usr/portage/eclass/eutils.eclass)
    fi
    
    elog "Applying patches"
    epatch_user

    for name in $names; do
        unset $name
    done
}
EOF

#create the portage custom patch directory and download the patch
mkdir -pv /etc/portage/patches/media-video/v4l2loopback-0.8.0
cd /etc/portage/patches/media-video/v4l2loopback-0.8.0
wget https://github.com/umlaeute/v4l2loopback/commit/21195cd6d1ff767a271359dfa7d201078f766611.patch

#and now emerge should work
emerge =media-video/v4l2loopback-0.8.0
Comment 2 jannis 2015-04-14 18:15:46 UTC
I've asked the developer to create a new release (https://github.com/umlaeute/v4l2loopback/issues/89) so a live ebuild can be avoided
Comment 4 jannis 2015-06-02 18:31:36 UTC
Version 0.9.0 has been tagged which supports kernels up to 4.0.

Just renaming the ebuild to 0.9.0 doesn't work since "doc/v4l2.html" no longer exists. Apart from that, it compiles and loads fine. No functional testing done.
Comment 5 jannis 2015-06-04 10:43:59 UTC
0.9.1 has been tagged, fixing the module version displayed in dmesg upon module load
Comment 6 Brian Evans (RETIRED) gentoo-dev 2017-08-11 02:31:37 UTC
New Version committed