On Tue, 29 Mar 2005 RK.Rajeev wrote :
Dear Sameer,
The file scripts/basic/fixdep is found in the kernel source tree.
Alternatively, it should also be in the /lib/modules/2.6.xx/build
directory. if it is not finding it, it means the makefile is not setting
the proper KERNEL_SRC parameter. try moving the quickcam driver into
either of the mentioned directories, and see if you can get it to
compile there. Also, the /lib/modules folder usually requires you to be
root to get in and write stuff. Try compiling it as root. Just a thought.
Regards
R. K. Rajeev
Well thanks for your inputs Mr. Rajeev. I did try to compile the driver (as a root) by
specifying the kernel source directory with LINUX_DIR=/usr/src/linux-2.6.zz. and the
modules directory as MODULE_DIR=/lib/modules/2.6.zz and it almost seemed to work but once
again it looks like there is another file from the same scripts/mod dir which is missing.
The error given this time was as follows
************************************************************************
Building modules, stage 2.
make -rR -f /usr/src/linux-2.6.8-24/scripts/Makefile.modpost
scripts/mod/modpost -m -i /usr/src/linux-2.6.8-24/Module.symvers -s /dev/null
/home/galbotrix/qc-usb-messenger-0.8/quickcam.o
/bin/sh: scripts/mod/modpost: No such file or directory
make[2]: *** [__modpost] Error 127
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.8-24'
make: *** [quickcam.ko] Error 2
ls: quickcam.ko: No such file or directory
[!] 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 --->
***********************************************************************
Just had another thought, as I was going through the README.txt file of the driver it said
that the build dir in /lib/modules/2.6.xx should be a link to the kernel source i.e
/usr/src/linux-2.6.xx. But the the link in my case shows that build directory is hard
linked with /usr/src/linux-2.6.xx-obj/i386/default directory. I tried to change this link
but despite being root its not allowing me a hard link change. Can you or anybody please
tell me how to do the changeover, any other inputs are welcome as well.
Thanks
rgds
Sameer
'You will be what you WILL to Be'
-James Allen