Package gspca-source Outdated

Bug #151445 reported by skynexus
This bug report is a duplicate of:  Bug #273727: gspca does not compile anymore. Edit Remove
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gspca (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Binary package hint: gspca-source

The current gspca-source package in synaptic is at version 01.00.16-1-1 but it should be updated to the current version of said driver, that is, to version 1.00.18. This is important because the latest version adds support for PAC7311 which a number of (low end) webcameras use.

Also, on feisty, I had to compile and install the driver after having installed the package. Shouldn't a pre-compiled version be supplied?

Revision history for this message
skynexus (skynexus) wrote :

Sorry, forgot to point out the obvious. I'm reporting this now in hopes that the package could be updated before the official release of Gutsy.

Revision history for this message
teledyn (garym-teledyn) wrote :

not sure if the gspca-source is current now or not, but I do know the install instructions are invalid due to changes in the way modules are compiled:

/usr/bin/make -C /usr/src/linux SUBDIRS=/usr/src/modules/gspca CC=gcc
 │ modules
 │ make[3]: Entering directory `/usr/src/linux-headers-2.6.24-19-rt'
 │ scripts/Makefile.build:46: *** CFLAGS was changed in
 │ "/usr/src/modules/gspca/Makefile". Fix it to use EXTRA_CFLAGS. Stop.
 │ make[3]: *** [_module_/usr/src/modules/gspca] Error 2

Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

Tried to build gspca on the latest ubuntu dev. Getting a lot of build errors, related to missing asm/semaphore.h, missing functions (video_usercopy), struct fields etc etc.

Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

$ sudo make
make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/modules/gspca CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-2-generic'
  CC [M] /usr/src/modules/gspca/gspca_core.o
/usr/src/modules/gspca/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
/usr/src/modules/gspca/gspca_core.c: In function ‘spca5xx_ioctl’:
/usr/src/modules/gspca/gspca_core.c:2464: error: implicit declaration of function ‘video_usercopy’
/usr/src/modules/gspca/gspca_core.c: At top level:
/usr/src/modules/gspca/gspca_core.c:2605: error: ‘v4l_compat_ioctl32’ undeclared here (not in a function)
/usr/src/modules/gspca/gspca_core.c:2610: error: unknown field ‘owner’ specified in initializer
/usr/src/modules/gspca/gspca_core.c:2610: warning: initialization from incompatible pointer type
/usr/src/modules/gspca/gspca_core.c:2612: error: unknown field ‘type’ specified in initializer
/usr/src/modules/gspca/gspca_core.c: In function ‘spca50x_create_sysfs’:
/usr/src/modules/gspca/gspca_core.c:2770: error: implicit declaration of function ‘video_device_create_file’
/usr/src/modules/gspca/gspca_core.c:2781: error: implicit declaration of function ‘video_device_remove_file’
/usr/src/modules/gspca/gspca_core.c: In function ‘spca5xx_probe’:
/usr/src/modules/gspca/gspca_core.c:4302: error: incompatible types in assignment
make[2]: *** [/usr/src/modules/gspca/gspca_core.o] Error 1
make[1]: *** [_module_/usr/src/modules/gspca] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-2-generic'
make: *** [default] Error 2

Revision history for this message
Daniel T Chen (crimsun) wrote :

As of 8.10, there are additional drivers distributed via the linux source package. Does this bug still affect you?

Changed in gspca:
status: New → Incomplete
Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

I do not actually know about additional drivers. I just tried to build gspca again - same error. All latest updates of intrepid are installed.

Revision history for this message
Andrey Beljakov (andvalb) wrote :
Revision history for this message
Alexey Zhukov (drdaeman) wrote :

There were some changes in 2.6.27 kernel. I've found a patch here: http://ubuntuforums.org/showthread.php?t=966932. Did `m-a build gspca` (it, obviously, failed), applied it (`zcat gspca.patch.gz | patch -p0`), then `m-a --not-unpack a-i gspca` and everything worked just fine.

Revision history for this message
vfotiadi06 (vfotiadi) wrote :

How to apply this patch?
When i trying to run it : patch -p0 /usr/src/modules/gspca/gspca_core.c /usr/src/gspca.patch
I get the following error messages:
missing header for unified diff at line 3 of patch
patching file /usr/src/modules/gspca/gspca_core.c
missing header for unified diff at line 114 of patch
can't find file to patch at input line 114
Perhaps you used the wrong -p or --strip option?

Revision history for this message
Andres Mujica (andres.mujica) wrote :

Hi, i'm marking this bug as dupe from bug #273727 Please check some workarounds in there, in fact it seems that latest intrepid kernel already has the module compiled and working. Further details at the bug in question

Thanks a lot

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.