[!] Looks like the driver compilation failed.
Did you get any error messages above?
If asking for help, show what error messages you got.
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue ---> qc-driver.c:80: error: erreur de syntaxe before "int"
[!] Looks like compilation of the utility programs failed.
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue ---> qc-driver.c:80: attention : type defaults to `int' in declaration of `module_param'
Now everything should be well and the driver compiled.
Let's then try actually loading the fresh driver and testing
if it works.
Press Ctrl+C to quit, Enter to continue ---> qc-driver.c:80: attention : function declaration isn't a prototype
To load the driver, I need to know the root password.
qc-driver.c:80: attention : data definition has no type or storage class
=== Entering root mode ===
I will now try to enable the SysRq key.
If your computer crashes, you can try pressing:
Alt + SysRq + S: Emergency Sync (write everything on hard disk)
Alt + SysRq + U: Unmount all harddisks
Alt + SysRq + B: Reboot system immediately
Press Ctrl+C to quit, Enter to continue --->
Now I finally will try to load the module.
If you're unlucky, your computer might crash right now!!!!
Consider long if you really want to continue.
Press Ctrl+C to quit, Enter to continue --->
You decided to do it, here we go...
insmod: ./quickcam.o: No such file or directory
=== Leaving root mode ===
[!] The QuickCam driver failed to load!
If you saw any special error messages, like about
unresolved symbols, tell about them when asking for help.
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue --->
serveur:~/qc-usb-0.6.4# clear
serveur:~/qc-usb-0.6.4# apt-cache search modutils
mga-vid-common - Module aliases and test program for /dev/mga_vid
module-init-tools - tools for managing Linux kernel modules
modutils - Linux module utilities
serveur:~/qc-usb-0.6.4# apt-get install module-init-tools
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
module-init-tools est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 2 non mis à jour.
serveur:~/qc-usb-0.6.4# clear
serveur:~/qc-usb-0.6.4# ./quickcam.sh
-=- Logitech QuickCam USB camera driver installer -=-
Hello! I am the (hopefully) easy-to-use, fully automated
qc-usb driver installation script.
At the moment, this is experimental, and if it doesn't work,
don't hesitate to quit this with Ctrl+C and install the
driver manually.
The driver is provided in source code form, so it has to be
compiled. This should happen automatically, but it does mean
that there are some steps required before installation.
You also need to know "root" user password to test and
install the driver.
Basically you need only to keep hitting Enter whenever you
see this prompt: --->. Sometimes you're asked root password.
Pay special attention to lines beginning with [!].
It means that some trouble has been detected.
To most important location is the path to your kernel source
or headers. This can be guessed, but you can specify it by
giving it as an argument to this script like this:
./quickcam.sh LINUX_DIR=/usr/src/linux
If you haven't done it yet, now it would be a good moment to
take a look at file README.
Next I'm going to check if you have some important programs installed
and if they and the kernel are of suitable version.
Press Ctrl+C to quit, Enter to continue --->
./quickcam.sh
/usr/bin/whoami
/bin/su
/bin/ls
/bin/cat
/usr/bin/gcc
/usr/bin/gcc
/usr/bin/make
/bin/grep
/bin/egrep
/usr/bin/awk
/bin/sed
/usr/bin/tail
/usr/bin/head
/usr/bin/install
/usr/bin/ld
/bin/uname
/usr/bin/tr
/usr/bin/xawtv
Warning: xdpyinfo missing
/bin/dmesg
/usr/bin/wc
[!] Some important programs can not be found on default path.
Probably they aren't installed.
You should install them, for example, by using apt-get or rpm.
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue --->
/bin/readlink
gcc version: version gcc 3.3.5 (Debian 1:3.3.5-13)
gcc version: version gcc 3.3.5 (Debian 1:3.3.5-13)
Make version: GNU Make 3.80
Linker version: GNU ld version 2.15
Kernel compiler: gcc version 3.3.5 (Debian 1:3.3.5-13)
[!] Kernel compiler and gcc seem to be different versions.
Instead, they should be the same. If you have many compilers
installed, you can specify the correct one with command (in bash)
export CC=kgcc
before trying to install the driver. Replace kgcc with the command
required for compiling kernels (kgcc is often used in Red Hat systems).
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue --->
Looking for more necessary programs...
Found program /sbin/depmod
Found program /sbin/insmod
Found program /sbin/rmmod
Found program /sbin/modprobe
Found program /bin/mount
Found program /usr/sbin/lsusb
depmod version: module-init-tools 3.2-pre1
insmod version: insmod version 2.4.26
rmmod version: rmmod version 2.4.26
modprobe version: modprobe version 2.4.26
Checking whether we're root... root
[!] Running script as root.
You shouldn't run this script as root. It should work,
but is unsafe. Please run this as an ordinary user.
When root access is really needed, you will be prompted
for the root password.
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue --->
Checking for driver source code...
Checking for write permission...
Previous round done. Now checking if you have kernel source installed.
Press Ctrl+C to quit, Enter to continue --->
Kernel source directory: /lib/modules/2.4.27-2-386/build
Detected kernel version is 2.4.x.
Kernel version name: 2.4.27-2-386
Kernel source version code: 132123
Driver file name: quickcam.o
Module install directory: /lib/modules/2.4.27-2-386
Driver source directory (PWD): /root/qc-usb-0.6.4
Kernel source directory (LINUX_DIR): /lib/modules/2.4.27-2-386/build
Module install directory (MODULE_DIR): /lib/modules/2.4.27-2-386
Utility install directory (PREFIX): /usr/local
User options (USER_OPT):
Driver file name (use with insmod): quickcam.o
Kernel version code: 132123
[!] Using module-init-tools with 2.4.x/2.2.x kernel.
These kernels require older modutils.
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue --->
The QuickCam driver requires other drivers from kernel.
I'll now check if those seem to be loaded.
Press Ctrl+C to quit, Enter to continue --->
Modules loaded into the kernel:
videodev af_packet ehci-hcd usb-ohci usbcore i810_audio ac97_codec soundcore sis900 crc32 ide-cd cdrom rtc ext3 jbd ide-detect sis5513 ide-disk ide-core unix
Next round: let's see if you have a supported QuickCam.
Please plug in your USB camera before continuing.
Press Ctrl+C to quit, Enter to continue --->
I can find the following probably compatible devices:
Bus 002 Device 002: ID 046d:0840 Logitech, Inc. QuickCam Express
Another round done. Let's now compile the driver, it takes a while.
This step will also clear old unnecessary files from the directory.
Press Ctrl+C to quit, Enter to continue --->
rm -f *.o qcset show *~ .\#* .*.cmd *.mod.c *.ko
rm -rf .tmp_versions
gcc -I/lib/modules/2.4.27-2-386/build/include -nostdinc -iwithprefix include -DMODULE -D__KERNEL__ -DNOKERNEL -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wall -Wstrict-prototypes -Wno-trigraphs -pipe -c qc-driver.c
qc-driver.c:80: error: erreur de syntaxe before "int"
qc-driver.c:80: attention : type defaults to `int' in declaration of `module_param'
qc-driver.c:80: attention : function declaration isn't a prototype
qc-driver.c:80: attention : data definition has no type or storage class
qc-driver.c:84: error: erreur de syntaxe before "int"
qc-driver.c:84: attention : type defaults to `int' in declaration of `module_param'
qc-driver.c:84: attention : function declaration isn't a prototype
qc-driver.c:84: attention : data definition has no type or storage class
qc-driver.c:88: error: erreur de syntaxe before "int"
qc-driver.c:88: attention : type defaults to `int' in declaration of `module_param'
qc-driver.c:88: attention : function declaration isn't a prototype
qc-driver.c:88: attention : data definition has no type or storage class
qc-driver.c:93: error: erreur de syntaxe before "int"
qc-driver.c:93: attention : type defaults to `int' in declaration of `module_param'
qc-driver.c:93: attention : function declaration isn't a prototype
qc-driver.c:93: attention : data definition has no type or storage class
qc-driver.c:97: error: erreur de syntaxe before "int"
qc-driver.c:97: attention : type defaults to `int' in declaration of `module_param'
qc-driver.c:97: attention : function declaration isn't a prototype
qc-driver.c:97: attention : data definition has no type or storage class
qc-driver.c:101: error: erreur de syntaxe before "int"
qc-driver.c:101: attention : type defaults to `int' in declaration of `module_param'
qc-driver.c:101: attention : function declaration isn't a prototype
qc-driver.c:101: attention : data definition has no type or storage class
qc-driver.c:105: error: erreur de syntaxe before "int"
qc-driver.c:105: attention : type defaults to `int' in declaration of `module_param'
qc-driver.c:105: attention : function declaration isn't a prototype
qc-driver.c:105: attention : data definition has no type or storage class
qc-driver.c:109: error: erreur de syntaxe before "int"
qc-driver.c:109: attention : type defaults to `int' in declaration of `module_param'
qc-driver.c:109: attention : function declaration isn't a prototype
qc-driver.c:109: attention : data definition has no type or storage class
qc-driver.c:113: error: erreur de syntaxe before "int"
qc-driver.c:113: attention : type defaults to `int' in declaration of `module_param'
qc-driver.c:113: attention : function declaration isn't a prototype
qc-driver.c:113: attention : data definition has no type or storage class
qc-driver.c:117: error: erreur de syntaxe before "int"
qc-driver.c:117: attention : type defaults to `int' in declaration of `module_param'
qc-driver.c:117: attention : function declaration isn't a prototype
qc-driver.c:117: attention : data definition has no type or storage class
qc-driver.c:121: error: erreur de syntaxe before "int"
qc-driver.c:121: attention : type defaults to `int' in declaration of `module_param'
qc-driver.c:121: attention : function declaration isn't a prototype
qc-driver.c:121: attention : data definition has no type or storage class
qc-driver.c:126: error: erreur de syntaxe before "int"
qc-driver.c:126: attention : type defaults to `int' in declaration of `module_param'
qc-driver.c:126: attention : function declaration isn't a prototype
qc-driver.c:126: attention : data definition has no type or storage class
qc-driver.c:131: error: erreur de syntaxe before "int"
qc-driver.c:131: attention : type defaults to `int' in declaration of `module_param'
qc-driver.c:131: attention : function declaration isn't a prototype
qc-driver.c:131: attention : data definition has no type or storage class
make: *** [qc-driver.o] Erreur 1
ls: quickcam.o: Aucun fichier ou répertoire de ce type
[!] Looks like the driver compilation failed.
Did you get any error messages above?
If asking for help, show what error messages you got.
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue --->
|