Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148710 - media-video/qc-usb-0.6.3 (stable version) broken with 2.6.18
Summary: media-video/qc-usb-0.6.3 (stable version) broken with 2.6.18
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 148429
  Show dependency tree
 
Reported: 2006-09-22 15:42 UTC by Richard
Modified: 2006-11-09 06:59 UTC (History)
2 users (show)

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


Attachments
emerge --info (Ricardo Lanziano) (emerge.info,2.73 KB, application/octet-stream)
2006-09-25 15:54 UTC, Ricardo Lanziano
Details
Patch for compilation under kernel 2.6.18-gentoo-r1 (patch1.patch,1.16 KB, patch)
2006-10-16 19:58 UTC, Ricardo Lanziano
Details | Diff
Second patch for compilation under kernel 2.6.18-gentoo-r1 (patch2.patch,348 bytes, patch)
2006-10-16 19:59 UTC, Ricardo Lanziano
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Richard 2006-09-22 15:42:02 UTC
As per summary : qc-usb dosent emerge with 2.6.18 
as per the following :

 * checking ebuild checksums ;-) ...                                                 [ ok ]
 * checking auxfile checksums ;-) ...                                                [ ok ]
 * checking miscfile checksums ;-) ...                                               [ ok ]
 * checking qc-usb-0.6.4.tar.gz ;-) ...                                              [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.18-gentoo
 * Checking for suitable kernel configuration options...                             [ ok ]
>>> Unpacking source...
>>> Unpacking qc-usb-0.6.4.tar.gz to /var/tmp/portage/qc-usb-0.6.4/work
 * Converting qc-usb-0.6.4/Makefile to use M= instead of SUBDIRS= ...                [ ok ]
 * Applying qc-usb-0.6.4-koutput.patch ...                                           [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4 ...
 * Preparing quickcam module
make -C "/usr/src/linux" M="/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4" modules V=1 USER_OPT=""
gcc -Wall -O2 -s qcset.c -o qcset -lm
make[1]: Entering directory `/usr/src/linux-2.6.18-gentoo'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (            \
echo;                                                           \
echo "  ERROR: Kernel configuration is invalid.";               \
echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";      \
echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
echo;                                                           \
/bin/false)
mkdir -p /var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/.tmp_versions
rm -f /var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4
  i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/.qc-driver.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -pipe -msoft-float -mpreferred-stack-boundary=2  -march=athlon -ffreestanding -Iinclude/asm-i386/mach-default -fomit-frame-pointer  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -DNOKERNEL   -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(qc_driver)"  -D"KBUILD_MODNAME=KBUILD_STR(quickcam)" -c -o /var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/.tmp_qc-driver.o /var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c
qcset.c: In function 'pnm_open':

keeps going with errors a plenty 

make oldconfig && make prepare as suggested dosent change 
the error . same old.


emerge --info : 

Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.12.5
Last Sync: Fri, 22 Sep 2006 09:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.5-r1, 2.0.27-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS=" http://gentoo.mirrors.tds.net/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.mirrors.tds.net/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo http://mirror.clarkson.edu/pub/distributions/gentoo/ http://gentoo.ccccom.com ftp://gentoo.ccccom.com"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dNow 3dfx X acpi alsa arts artworkextra audiofile berkdb bitmap-fonts cairo cdr cli crypt cups dba dbus dlloader dri dvd dvdr eds elibc_glibc emboss encode esd exif extras fam fbcon fftw firefox flash fortran gd gdbm gif gimp gimpprint gphoto2 gpm gps gstreamer gtk hal icq imagemagick imap input_devices_keyboard input_devices_mouse insecure-savers ipv6 isdnlog jabber jpeg kde kernel_linux ldap libg++ libgda mad maildir mbox mikmod mime ming mjpeg mono mouse mozcalendar mozsvg mp3 mpeg mpeg2 mplayer msn nas nautilus ncurses nfs nls nptl nptlonly odbc ogg openal opengl oss pam panel-plugin pcre perl php png ppds pppd python qt3 qt4 quicktime readline reflection sasl scanner sdl session slp spell spl sqlite sse-filters ssl startup-notification svg swat tcpd tga thunar-vfs toolbar truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales v4l video_cards_vesa videos vidix vorbis win32codecs wmf wordperfect wxwindows xanim xchat xchatdccserver xface xine xinerama xml xmlrpc xorg xosd xsl xv yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Anyone else get this ?
Comment 1 Olivier Dzwoniarkiewicz 2006-09-25 04:00:45 UTC
exactly same problem here
Comment 2 Ricardo Lanziano 2006-09-25 15:54:23 UTC
Created attachment 98077 [details]
emerge --info (Ricardo Lanziano)
Comment 3 Ricardo Lanziano 2006-09-25 16:00:18 UTC
Im also having the same issue (my emerge --info is here as an attachment):

...

/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-hdcs.c:27:
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/quickcam.h:500: error: field 
Comment 4 Ricardo Lanziano 2006-09-25 16:00:18 UTC
Im also having the same issue (my emerge --info is here as an attachment):

...

/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-hdcs.c:27:
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/quickcam.h:500: error: field vdev has incomplete type
make[2]: *** [/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-hdcs.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:47:
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/quickcam.h:500: error: field vdev has incomplete type
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c: In function qc_proc_read:
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:870: error: UTS_RELEASE undeclared (first use in this function)
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:870: error: (Each undeclared identifier is reported only once
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:870: error: for each function it appears in.)
In file included from /var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-pb0100.c:27:
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/quickcam.h:500: error: field vdev has incomplete type
make[2]: *** [/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-pb0100.o] Error 1
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c: In function qc_v4l_poll:
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2242: warning: implicit declaration of function video_devdata
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2242: warning: initialization makes pointer from integer without a cast
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2244: error: dereferencing pointer to incomplete type
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c: In function qc_v4l_open:
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2294: warning: initialization makes pointer from integer without a cast
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2296: error: dereferencing pointer to incomplete type
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c: In function qc_v4l_close:
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2362: warning: initialization makes pointer from integer without a cast
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2364: error: dereferencing pointer to incomplete type
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c: In function qc_v4l_read:
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2409: warning: initialization makes pointer from integer without a cast
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2412: error: dereferencing pointer to incomplete type
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c: In function qc_v4l_mmap:
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2463: warning: initialization makes pointer from integer without a cast
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2467: error: dereferencing pointer to incomplete type
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c: In function qc_v4l_ioctl:
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2496: warning: initialization makes pointer from integer without a cast
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2499: error: dereferencing pointer to incomplete type
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c: At top level:
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2994: error: variable qc_v4l_template has initializer but incomplete type
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2995: error: unknown field name specified in initializer
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2995: warning: excess elements in struct initializer
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2995: warning: (near initialization for qc_v4l_template)
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2996: error: unknown field type specified in initializer
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2996: warning: excess elements in struct initializer
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2996: warning: (near initialization for qc_v4l_template)
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2997: error: unknown field hardware specified in initializer
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2997: warning: excess elements in struct initializer
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2997: warning: (near initialization for qc_v4l_template)
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2998: error: unknown field minor specified in initializer
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2998: warning: excess elements in struct initializer
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2998: warning: (near initialization for qc_v4l_template)
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:3000: error: unknown field release specified in initializer
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:3000: warning: excess elements in struct initializer
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:3000: warning: (near initialization for qc_v4l_template)
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:3001: error: unknown field fops specified in initializer
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:3001: warning: excess elements in struct initializer
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:3001: warning: (near initialization for qc_v4l_template)
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c: In function qc_usb_init:
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:3145: error: invalid application of sizeof to incomplete type struct video_device 
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:3145: error: invalid application of sizeof to incomplete type struct video_device 
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:3145: error: invalid application of sizeof to incomplete type struct video_device 
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:3147: warning: implicit declaration of function video_register_device
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:3147: error: VFL_TYPE_GRABBER undeclared (first use in this function)
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:3203: warning: implicit declaration of function video_unregister_device
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c: In function qc_usb_probe:
/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:3269: error: UTS_RELEASE undeclared (first use in this function)
make[2]: *** [/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.o] Error 
Comment 5 Matti Virkkunen 2006-09-27 11:23:13 UTC
I got it to compile using patches from http://article.gmane.org/gmane.linux.drivers.quickcam.devel/1087 , but it crashes and burns when used.

dmesg:
BUG: unable to handle kernel paging request at virtual address 02000436
 printing eip:
c031cbcd
*pde = 00000000
Oops: 0000 [#1]
PREEMPT SMP
Modules linked in: snd_pcm_oss snd_mixer_oss snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq fglrx bcm203x sco rfcomm hidp l2cap snd_hda_intel snd_hda_codec sdhci mmc_core snd_usb_audio snd_pcm snd_timer snd_page_alloc snd_usb_lib snd_rawmidi snd_seq_device snd_hwdep snd quickcam hci_usb videodev bluetooth v4l1_compat v4l2_common
CPU:    0
EIP:    0060:[<c031cbcd>]    Tainted: P      VLI
EFLAGS: 00210206   (2.6.18-gentoo #1)
EIP is at usb_kill_urb+0x1e/0x101
eax: 02000406   ebx: eeca0c00   ecx: f765a598   edx: f7651b10
esi: f6ef03a4   edi: f6a11c58   ebp: f7039bb8   esp: eec81ed0
ds: 007b   es: 007b   ss: 0068
Process xawtv (pid: 8124, ti=eec80000 task=f77f8030 task.ti=eec80000)
Stack: 00000000 00000000 f772a688 f764e474 c031e315 f764e400 f764e400 0000000b
       00000001 00000000 00000000 00000000 00000000 00001388 f764e400 f764e474
       00000000 f6ef0000 00000000 f6ef03a4 f6a11c58 f888219e eeca0c00 00000000
Call Trace:
 [<c031e315>] usb_set_interface+0x1ab/0x1dd
 [<f888219e>] qc_isoc_stop+0x31/0x10e [quickcam]
 [<f888295a>] qc_capt_exit+0x10/0x43 [quickcam]
 [<f8882bbf>] qc_v4l_close+0x41/0x73 [quickcam]
 [<c016b4ee>] __fput+0x173/0x1ac
 [<c016997c>] filp_close+0x46/0x8b
 [<c0169a34>] sys_close+0x73/0xa7
 [<c0102e6d>] sysenter_past_esp+0x56/0x79
Code: ff ff ff 89 14 24 ff 50 08 83 c4 08 c3 83 ec 54 89 5c 24 48 8b 5c 24 58 89 74 24 4c 85 db 89 7c 24 50 74 15 8b 43 24 85 c0 74 0e <8b> 40 30 85 c0 74 07 8b 40 24 85 c0 75 10 8b 5c 24 48 8b 74 24
EIP: [<c031cbcd>] usb_kill_urb+0x1e/0x101 SS:ESP 0068:eec81ed0
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2006-10-15 13:40:20 UTC
Those patches shouldn't cause that kind of crash. Can anyone confirm/deny whether it works with those patches?

Matti, you might also want to confirm whether it works for you on 2.6.19-rc1, as the crash you reported may be due to a bug in the USB subsystem.
Comment 7 Ricardo Lanziano 2006-10-16 19:58:35 UTC
Created attachment 99851 [details, diff]
Patch for compilation under kernel 2.6.18-gentoo-r1
Comment 8 Ricardo Lanziano 2006-10-16 19:59:14 UTC
Created attachment 99852 [details, diff]
Second patch for compilation under kernel 2.6.18-gentoo-r1
Comment 9 Ricardo Lanziano 2006-10-16 20:00:18 UTC
The patches work fine, i just modified the ebuild on my local overlay and it compiled cleanly and the module got inserted into kernel without any problems, if it crashes on my box ill let you guys know.
Comment 10 Daniel Drake (RETIRED) gentoo-dev 2006-10-19 18:35:15 UTC
Alastair: please commit ASAP
make sure the fix is also in the stable tree
Comment 11 Stefan Schweizer (RETIRED) gentoo-dev 2006-10-20 12:06:32 UTC
thanks, fixed
Comment 12 Daniel Drake (RETIRED) gentoo-dev 2006-10-23 16:18:19 UTC
not fixed in stable tree
Comment 13 bryce verdier 2006-11-06 00:23:14 UTC
according to the website, there is a new version (0.6.5) which has support for 2.6.17 & 2.6.18. Why not just use those sources?
Comment 14 Daniel Drake (RETIRED) gentoo-dev 2006-11-09 06:59:50 UTC
Backported the fix to 0.6.3. bryce, it is up to the maintainer to bump the version, you might want to file a separate bug for that (if there is not one already)