Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488128 - media-video/stk11xx-2.1.0_p104 with kernel 3.11* - .../work/stk11xx-2.1.0_p104/stk11xx-v4l.c:1481:11: error: ‘struct video_device’ has no member named ‘parent’
Summary: media-video/stk11xx-2.1.0_p104 with kernel 3.11* - .../work/stk11xx-2.1.0_p10...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: http://sourceforge.net/p/syntekdriver...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-15 14:52 UTC by Michael Tulupov
Modified: 2016-03-20 15:48 UTC (History)
2 users (show)

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


Attachments
Build.log (build.log,3.25 KB, text/plain)
2013-10-15 15:00 UTC, Michael Tulupov
Details
First silly patch (stk11xx_fix_3_11_kernels_1.patch,379 bytes, patch)
2013-10-15 15:05 UTC, Michael Tulupov
Details | Diff
How the first patch fails (dmesg_1.log,4.53 KB, text/plain)
2013-10-15 15:05 UTC, Michael Tulupov
Details
Second silly patch (stk11xx_fix_3_11_kernels_2.patch,377 bytes, patch)
2013-10-15 15:06 UTC, Michael Tulupov
Details | Diff
How the second patch fails (dmesg_2.log,4.50 KB, text/plain)
2013-10-15 15:06 UTC, Michael Tulupov
Details
This patch solves the problem (stk11xx_kernel11.patch,1.82 KB, patch)
2013-11-13 22:46 UTC, Michael Tulupov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Tulupov 2013-10-15 14:52:26 UTC
It was working with 3.10* kernels, though.

/var/tmp/portage/media-video/stk11xx-2.1.0_p104/work/stk11xx-2.1.0_p104/stk11xx-v4l.c: In function ‘v4l_stk11xx_register_video_device’:
/var/tmp/portage/media-video/stk11xx-2.1.0_p104/work/stk11xx-2.1.0_p104/stk11xx-v4l.c:1481:11: error: ‘struct video_device’ has no member named ‘parent’
  dev->vdev->parent = &dev->interface->dev;

It looks like something were changed in Video4Linux in 3.11* kernels - ‘struct video_device’ has no member "parent", but have "dev_parent" instead.
Comment 1 Michael Tulupov 2013-10-15 14:53:21 UTC
$ emerge --info
Portage 2.2.7 (default/linux/x86/13.0, gcc-4.8.1, glibc-2.17, 3.11.3-pf i686)
=================================================================
System uname: Linux-3.11.3-pf-i686-Genuine_Intel-R-_CPU_T2080_@_1.73GHz-with-gentoo-2.2
KiB Mem:     1943172 total,    520436 free
KiB Swap:     524284 total,    288608 free
Timestamp of tree: Tue, 15 Oct 2013 09:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r2, 3.2.5-r2, 3.3.2-r2
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.2
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.1-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo crossdev wild-ebuild
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/X11/xinit/xserverrc /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news nodoc noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/crossdev /usr/portage/local/wild-ebuild"
USE="acl alsa dbus gpm idn midi mmx mmxext nls nptl ocamlopt openmp pam pulseaudio sse sse2 sse3 threads truetype udev unicode x86 xattr xinerama" ABI_X86="32" ALSA_CARDS="hda-intel usb-audio dummy loopback seq-dummy virmidi" CAMERAS="ptp2" ELIBC="glibc" GPSD_PROTOCOLS="aivdm garmin garmintxt gpsclock mtk3301 nmea nmea2000 sirf ubx" GRUB_PLATFORMS="multiboot pc" INPUT_DEVICES="evdev keyboard mouse joystick synaptics" KERNEL="linux" LINGUAS="ru en" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" SANE_BACKENDS="net xerox_mfp" USERLAND="GNU" VIDEO_CARDS="v4l vesa modesetting radeon r300"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 2 Michael Tulupov 2013-10-15 15:00:11 UTC
Created attachment 360950 [details]
Build.log
Comment 3 Michael Tulupov 2013-10-15 15:04:32 UTC
I've tried to apply a silly patches (stk11xx_fix_3_11_kernels_1.patch, stk11xx_fix_3_11_kernels_2.patch), but with no luck.

Both patches help the driver compile, but after modprobing stk11xx dmesg reports errors (dmesg_1.log, dmesg_2.log respectively).
Comment 4 Michael Tulupov 2013-10-15 15:05:12 UTC
Created attachment 360952 [details, diff]
First silly patch
Comment 5 Michael Tulupov 2013-10-15 15:05:39 UTC
Created attachment 360954 [details]
How the first patch fails
Comment 6 Michael Tulupov 2013-10-15 15:06:22 UTC
Created attachment 360956 [details, diff]
Second silly patch
Comment 7 Michael Tulupov 2013-10-15 15:06:56 UTC
Created attachment 360958 [details]
How the second patch fails
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2013-10-15 15:07:36 UTC
Why do you attach patches that do *not* fix the issue? :)
Comment 9 Michael Tulupov 2013-10-15 15:12:01 UTC
Just to show what I was trying to do - and to avoid another people to go through non-working solution.
Maybe it's a goot idea to attach patches just like regular files (for information) ?
Comment 10 Michael Tulupov 2013-10-15 15:35:35 UTC
Bug is opened at upstream - https://sourceforge.net/p/syntekdriver/bugs/21/
Comment 11 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-10-15 16:32:32 UTC
I'm sorry but I no longer have the hardware to support this.
Comment 12 Michael Tulupov 2013-10-15 17:32:51 UTC
Michał, is it possible to organize testing remotely on my laptop ?
Comment 13 Michael Tulupov 2013-11-13 22:45:27 UTC
Thanks to Ondrej Zary from "linux-media" maillist (http://www.spinics.net/lists/linux-media/msg66647.html), who has made a patch, and Julian Sparber from upstream bug tracker, who has find the above link in Internet, we have the solution.

Patch below allows driver to compile againts pf-sources-3.11.4 and work fine on my Asus F5R laptop with Syntek webcam (USB ID 174f:6a31).
Comment 14 Michael Tulupov 2013-11-13 22:46:37 UTC
Created attachment 363212 [details, diff]
This patch solves the problem
Comment 15 Pacho Ramos gentoo-dev 2015-11-04 15:11:24 UTC
is this patch enough for recent kernels or did it break again?
Comment 16 Pacho Ramos gentoo-dev 2016-02-18 10:53:41 UTC
CCing treecleaners
Comment 17 Michael Palimaka (kensington) gentoo-dev 2016-03-20 15:48:28 UTC
Package removed.