cychiang / webcamstudio

Automatically exported from code.google.com/p/webcamstudio
GNU General Public License v3.0
1 stars 0 forks source link

Can't build kernel module from webcamstudio_0.61.tar.bz2 (implicit declaration of function ‘vzalloc’) #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install kernel 2.6.32-5-amd64 with headers
2. download webcamstudio_0.61.tar.bz2 
3. cd to vloopback of extraced webcamstudio
4. make && make_install

What is the expected output?

should compile and install the virtual webcam module

What do you see instead?

Building webcamstudio kernel module...
make -C /lib/modules/2.6.32-5-amd64/build M=/home/a/webcamstudio/vloopback 
modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-5-amd64'
  CC [M]  /home/a/webcamstudio/vloopback/webcamstudio.o
/home/a/webcamstudio/vloopback/webcamstudio.c: In function 
‘allocate_timeout_image’:
/home/a/webcamstudio/vloopback/webcamstudio.c:2056: error: implicit declaration 
of function ‘vzalloc’
/home/a/webcamstudio/vloopback/webcamstudio.c:2056: warning: assignment makes 
pointer from integer without a cast
make[4]: *** [/home/a/webcamstudio/vloopback/webcamstudio.o] Error 1
make[3]: *** [_module_/home/a/webcamstudio/vloopback] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-amd64'
make: *** [webcamstudio.ko] Error 2

The Operating system you are using (Linux, Windows etc)?

Linux version 2.6.32-5-amd64 (Debian 2.6.32-48squeeze3)

What version of WebcamStudio are you using?

webcamstudio_0.61.tar.bz2 

What version of Java are you using?

not relevant

What is your Webcamera vendor, model and version?

not relevant

For *nix users please enter the output from "sudo lsusb"?

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 13d3:5130 IMC Networks 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

but IMO not relevant

Original issue reported on code.google.com by zejda...@gmail.com on 13 Jun 2013 at 10:01

GoogleCodeExporter commented 9 years ago
With webcamstudio-module-105.tar.bz2 the problem does not occur. :)

Original comment by zejda...@gmail.com on 13 Jun 2013 at 10:05

GoogleCodeExporter commented 9 years ago
Hi,
Thanks for the full info that you had reported.

The webcamstudio_0.61.tar.bz2 is an old archive of the application and the 
kernel module inside is too old, not supporting newer kernels like yours.
From that time on, there were too much changes in the app and in the kernel 
module, so I advice using latest code from SVN 
(https://code.google.com/p/webcamstudio/source/checkout)

If you need only the kernel module, please use our latest kernel module code 
archive from the Downloads section. Right now this is the 
webcamstudio-module-107.tar.bz2 
(https://code.google.com/p/webcamstudio/downloads/detail?name=webcamstudio-modul
e-107.tar.bz2)

It should compile ok.

If any problems persist, please feel free to reopen the current bug :)

Thanks again.

Original comment by peter.u....@gmail.com on 16 Jun 2013 at 7:33