Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162939 - media-video/gspcav1-20070110 doesn't work w/ gentoo-sources-2.6.19-r4
Summary: media-video/gspcav1-20070110 doesn't work w/ gentoo-sources-2.6.19-r4
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mike Doty (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-20 15:36 UTC by Pacho Ramos
Modified: 2007-01-28 17:53 UTC (History)
1 user (show)

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


Attachments
kernel config (.config,37.09 KB, text/plain)
2007-01-20 21:43 UTC, Pacho Ramos
Details
My kernel config wich works for gspcav1 (kernel-2.6.19-gentoo-r2.config,40.89 KB, text/plain)
2007-01-23 21:55 UTC, David Carlos Manuelda
Details
kernel config (updated) (config,37.15 KB, text/plain)
2007-01-24 22:38 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2007-01-20 15:36:19 UTC
I cannot modprobe gspcav1, I get:

 modprobe gspca 
WARNING: Error inserting v4l1_compat (/lib/modules/2.6.19-gentoo-r4/v4l-dvb/video/v4l1-compat.ko): Invalid module format
WARNING: Error inserting v4l2_common (/lib/modules/2.6.19-gentoo-r4/v4l-dvb/video/v4l2-common.ko): Invalid module format
WARNING: Error inserting videodev (/lib/modules/2.6.19-gentoo-r4/v4l-dvb/video/videodev.ko): Unknown symbol in module, or unknown parameter (see dmesg)

In my dmesg I get:
v4l1_compat: exports duplicate symbol v4l_compat_translate_ioctl (owned by kernel)
v4l2_common: exports duplicate symbol v4l2_video_std_construct (owned by kernel)
videodev: Unknown symbol v4l2_norm_to_name
videodev: disagrees about version of symbol v4l_compat_translate_ioctl
videodev: Unknown symbol v4l_compat_translate_ioctl
v4l1_compat: exports duplicate symbol v4l_compat_translate_ioctl (owned by kernel)
v4l2_common: exports duplicate symbol v4l2_video_std_construct (owned by kernel)
videodev: Unknown symbol v4l2_norm_to_name
videodev: disagrees about version of symbol v4l_compat_translate_ioctl
videodev: Unknown symbol v4l_compat_translate_ioctl

I think that gspcav1 should check kernel config for viewing is kernel is built with properly options for being able to use this driver.

Thanks


Reproducible: Always
Comment 1 Mike Doty (RETIRED) gentoo-dev 2007-01-20 17:10:16 UTC
those are all kernel functions.  you messed up your kernel build somehow.  please see the following links for how to build your kernel properly.

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=7
http://www.gentoo.org/doc/en/kernel-upgrade.xml
http://www.gentoo.org/doc/en/genkernel.xml
Comment 2 Pacho Ramos gentoo-dev 2007-01-20 21:42:32 UTC
I have read them, but the problem persists:
 modprobe gspca 
FATAL: Error inserting gspca (/lib/modules/2.6.19-gentoo-r4/usb/video/gspca.ko): Unknown symbol in module, or unknown parameter (see dmesg)


dmesg:
gspca: disagrees about version of symbol video_devdata
gspca: Unknown symbol video_devdata
gspca: disagrees about version of symbol video_unregister_device
gspca: Unknown symbol video_unregister_device
gspca: disagrees about version of symbol video_device_alloc
gspca: Unknown symbol video_device_alloc
gspca: disagrees about version of symbol video_register_device
gspca: Unknown symbol video_register_device
gspca: disagrees about version of symbol video_usercopy
gspca: Unknown symbol video_usercopy
gspca: disagrees about version of symbol video_device_release
gspca: Unknown symbol video_device_release

I attach my kernel config

Thanks a lot
Comment 3 Pacho Ramos gentoo-dev 2007-01-20 21:43:05 UTC
Created attachment 107593 [details]
kernel config
Comment 4 David Carlos Manuelda 2007-01-21 03:31:56 UTC
I cannot even compile it with kernel 2.6.19-r2. This is the output:

emerge gspca

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] media-video/gspca-01.00.10  0 kB

Total size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]

>>> Emerging (1 of 1) media-video/gspca-01.00.10 to /
 * gspcav1-01.00.10.tar.gz MD5 ;-) ...                                                                                 [ ok ]
 * gspcav1-01.00.10.tar.gz RMD160 ;-) ...                                                                              [ ok ]
 * gspcav1-01.00.10.tar.gz SHA1 ;-) ...                                                                                [ ok ]
 * gspcav1-01.00.10.tar.gz SHA256 ;-) ...                                                                              [ ok ]
 * gspcav1-01.00.10.tar.gz size ;-) ...                                                                                [ ok ]
 * checking ebuild checksums ;-) ...                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                 [ ok ]
 * checking gspcav1-01.00.10.tar.gz ;-) ...                                                                            [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.19-gentoo-r2/build
 * Found sources for kernel version:
 *     2.6.19-gentoo-r2
 * Checking for suitable kernel configuration options...                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking gspcav1-01.00.10.tar.gz to /var/tmp/portage/gspca-01.00.10/work
 * Converting gspcav1-01.00.10/Makefile to use M= instead of SUBDIRS= ...                                              [ ok ]
 * Applying gspca-20060813-defines.patch ...                                                                           [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10 ...
 * Preparing gspca module
make -C /usr/src/linux M=/var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10 CC=x86_64-pc-linux-gnu-gcc modules
make[1]: Entering directory `/usr/src/linux-2.6.19-gentoo-r2'
  CC [M]  /var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.o
  CC [M]  /var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/decoder/gspcadecoder.o
/var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.c: In function 'gspca_init_transfert':
/var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.c:973: warning: assignment from incompatible pointer type
/var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.c: At top level:
/var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.c:1056: error: conflicting types for 'spca50x_isoc_irq'
/var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.c:154: error: previous declaration of 'spca50x_isoc_irq' was here
/var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.c: In function 'spca50x_create_sysfs':
/var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.c:2597: warning: ignoring return value of 'video_device_create_file', declared with attribute warn_unused_result
/var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.c:2598: warning: ignoring return value of 'video_device_create_file', declared with attribute warn_unused_result
/var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.c:2599: warning: ignoring return value of 'video_device_create_file', declared with attribute warn_unused_result
make[2]: *** [/var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.19-gentoo-r2'
make: *** [default] Error 2

!!! ERROR: media-video/gspca-01.00.10 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called linux-mod_src_compile
  linux-mod.eclass, line 510:   Called die

!!! Unable to make  KERNELDIR=/usr/src/linux default.
!!! If you need support, post the topmost build error, and the call stack if relevant.

Comment 5 Pacho Ramos gentoo-dev 2007-01-21 10:45:37 UTC
(In reply to comment #4)
> I cannot even compile it with kernel 2.6.19-r2. This is the output:
> 
> emerge gspca
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild  N    ] media-video/gspca-01.00.10  0 kB
> 
> Total size of downloads: 0 kB
> 
> Would you like to merge these packages? [Yes/No]
> 
> >>> Emerging (1 of 1) media-video/gspca-01.00.10 to /
>  * gspcav1-01.00.10.tar.gz MD5 ;-) ...                                         
>                                        [ ok ]
>  * gspcav1-01.00.10.tar.gz RMD160 ;-) ...                                      
>                                        [ ok ]
>  * gspcav1-01.00.10.tar.gz SHA1 ;-) ...                                        
>                                        [ ok ]
>  * gspcav1-01.00.10.tar.gz SHA256 ;-) ...                                      
>                                        [ ok ]
>  * gspcav1-01.00.10.tar.gz size ;-) ...                                        
>                                        [ ok ]
>  * checking ebuild checksums ;-) ...                                           
>                                        [ ok ]
>  * checking auxfile checksums ;-) ...                                          
>                                        [ ok ]
>  * checking miscfile checksums ;-) ...                                         
>                                        [ ok ]
>  * checking gspcav1-01.00.10.tar.gz ;-) ...                                    
>                                        [ ok ]
>  * Determining the location of the kernel source code
>  * Found kernel source directory:
>  *     /usr/src/linux
>  * Found kernel object directory:
>  *     /lib/modules/2.6.19-gentoo-r2/build
>  * Found sources for kernel version:
>  *     2.6.19-gentoo-r2
>  * Checking for suitable kernel configuration options...                       
>                                        [ ok ]
> >>> Unpacking source...
> >>> Unpacking gspcav1-01.00.10.tar.gz to /var/tmp/portage/gspca-01.00.10/work
>  * Converting gspcav1-01.00.10/Makefile to use M= instead of SUBDIRS= ...      
>                                        [ ok ]
>  * Applying gspca-20060813-defines.patch ...                                   
>                                        [ ok ]
> >>> Source unpacked.
> >>> Compiling source in /var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10 ...
>  * Preparing gspca module
> make -C /usr/src/linux M=/var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10
> CC=x86_64-pc-linux-gnu-gcc modules
> make[1]: Entering directory `/usr/src/linux-2.6.19-gentoo-r2'
>   CC [M]  /var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.o
>   CC [M] 
> /var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/decoder/gspcadecoder.o
> /var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.c: In function
> 'gspca_init_transfert':
> /var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.c:973:
> warning: assignment from incompatible pointer type
> /var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.c: At top
> level:
> /var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.c:1056: error:
> conflicting types for 'spca50x_isoc_irq'
> /var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.c:154: error:
> previous declaration of 'spca50x_isoc_irq' was here
> /var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.c: In function
> 'spca50x_create_sysfs':
> /var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.c:2597:
> warning: ignoring return value of 'video_device_create_file', declared with
> attribute warn_unused_result
> /var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.c:2598:
> warning: ignoring return value of 'video_device_create_file', declared with
> attribute warn_unused_result
> /var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.c:2599:
> warning: ignoring return value of 'video_device_create_file', declared with
> attribute warn_unused_result
> make[2]: ***
> [/var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10/gspca_core.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[1]: *** [_module_/var/tmp/portage/gspca-01.00.10/work/gspcav1-01.00.10]
> Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.19-gentoo-r2'
> make: *** [default] Error 2
> 
> !!! ERROR: media-video/gspca-01.00.10 failed.
> Call stack:
>   ebuild.sh, line 1546:   Called dyn_compile
>   ebuild.sh, line 937:   Called src_compile
>   ebuild.sh, line 1255:   Called linux-mod_src_compile
>   linux-mod.eclass, line 510:   Called die
> 
> !!! Unable to make  KERNELDIR=/usr/src/linux default.
> !!! If you need support, post the topmost build error, and the call stack if
> relevant.
> 

You aren't using gspcav1, you are trying to instal gspca
Comment 6 Pacho Ramos gentoo-dev 2007-01-21 13:00:58 UTC
This bug is for media-video/gspcav1-20070110

Please, open a new bug for media-video/gspca-01.00.10
Comment 7 David Carlos Manuelda 2007-01-23 20:18:28 UTC
Ok, let me conect to my box via ssh and scp, because I am not in my box now :)

I'll attach it.
Comment 8 David Carlos Manuelda 2007-01-23 21:55:51 UTC
Created attachment 107951 [details]
My kernel config wich works for gspcav1

With this kernel config I am able to use succesfully gspcav1 cam driver for Logitech QuickCam express [046d:092f]
Comment 9 David Carlos Manuelda 2007-01-23 21:56:57 UTC
I think that your problem is related to a missconfiguration of v4l2-compatible or the old v4l, try compiling your kernel with my config, and if it works, just review the v4l config :)
Comment 10 Pacho Ramos gentoo-dev 2007-01-24 22:38:20 UTC
Created attachment 108064 [details]
kernel config (updated)

I have recompiled my kernel with some changes but the problem persists :-(
 modprobe gspca 
FATAL: Error inserting gspca (/lib/modules/2.6.19-gentoo-r4/usb/video/gspca.ko): Unknown symbol in module, or unknown parameter (see dmesg)

dmesg:

gspca: disagrees about version of symbol video_devdata
gspca: Unknown symbol video_devdata
gspca: disagrees about version of symbol video_unregister_device
gspca: Unknown symbol video_unregister_device
gspca: disagrees about version of symbol video_device_alloc
gspca: Unknown symbol video_device_alloc
gspca: disagrees about version of symbol video_register_device
gspca: Unknown symbol video_register_device
gspca: disagrees about version of symbol video_usercopy
gspca: Unknown symbol video_usercopy
gspca: disagrees about version of symbol video_device_release
gspca: Unknown symbol video_device_release

Thanks a lot
Comment 11 David Carlos Manuelda 2007-01-25 01:14:11 UTC
Could you retry with SAME config as I have? ONly for testing if it is ok or not, if problem persists, there maybe something missconigured in your system.
Comment 12 David Carlos Manuelda 2007-01-25 01:14:52 UTC
And remember that I am using 2.6.19-r2. Could you try with this kernel to see if it works?
Comment 13 Pacho Ramos gentoo-dev 2007-01-26 18:15:40 UTC
I cannot use exactly yout config file, my hard is not same as your, and it gives me a kernel panic.

I will continue in http://forums.gentoo.org/viewtopic-t-535079.html

Thanks a lot :-)
Comment 14 Pacho Ramos gentoo-dev 2007-01-28 17:53:35 UTC
What linux-headers version do you have installed?

Thanks