Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hemanth83_in, I think you've found where the problem comes from. It looks like the KERNELDIR variable is not properly assigned in the Makefile (and left empty). The resulting command line should be something like
Code:
make -C /usr/src/linux M=/root/src modules
but since the value of KERNELDIR is null, it generates a wrong make command. Try to investigate further.
Thank you for the reply Colucix. Yes i too think the same about the KERNELDIR variable. But the Makefile is very big, the makefile supports different kernel versions and for different versions of OS. So i donot exactly know where to assign the KERNELDIR.
One question is: Is the kernel directory /usr/src/linux/ ?????? if so i could see one more folder in usr/src/ as Kernels containing folder called 2.6.24.4-64.fc8 -i686, Is this not the Kerneldir ??
Sorry... but I'm totally lost now! For some reason it does not build any module and it's difficult for me to investigate without being sit in front of your machine. As a last chance, can you let me know where to donwload the source code of the driver, so I can test?
Sorry... but I'm totally lost now! For some reason it does not build any module and it's difficult for me to investigate without being sit in front of your machine. As a last chance, can you let me know where to donwload the source code of the driver, so I can test?
Yes, I've just tried but with no success. It tries to compile but there are a lot of different C errors (wrong declaration, wrong number of arguments passed to function, files not found and so on). I tried to workaround some of them, but it look like an endless circle.
Anyway I did not tweak the Makefile adding the assigment of KERNELDIR, nor I received the message "Building modules, stage 2." at the beginning. Here are my steps.
1. verify kernel-devel and kernel-headers are installed
2. cd /root/src
cp -p config-8686 .config
and edit .config assigning KVER=2.6
3. cd /usr/src
ln -s /usr/src/kernels/2.6.23.15-137.fc8-i686 linux
4. cd /root/src
make KVER=2.6
Also, after any attempt to compile I issued the command
Code:
make distclean
this clear any reference to the previous compilation attempt and delete any (already) built object file. Unfortunately, I cannot be of much help at this point.
Yes, I've just tried but with no success. It tries to compile but there are a lot of different C errors (wrong declaration, wrong number of arguments passed to function, files not found and so on). I tried to workaround some of them, but it look like an endless circle.
Anyway I did not tweak the Makefile adding the assigment of KERNELDIR, nor I received the message "Building modules, stage 2." at the beginning. Here are my steps.
1. verify kernel-devel and kernel-headers are installed
2. cd /root/src
cp -p config-8686 .config
and edit .config assigning KVER=2.6
3. cd /usr/src
ln -s /usr/src/kernels/2.6.23.15-137.fc8-i686 linux
4. cd /root/src
make KVER=2.6
Also, after any attempt to compile I issued the command
Code:
make distclean
this clear any reference to the previous compilation attempt and delete any (already) built object file. Unfortunately, I cannot be of much help at this point.
Thanks. Do you think its the version of GCC you are using is creating a problem? which version of gcc are you using?
# gcc --version
gcc (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33)
I tested on a Fedora Core 8 with kernel 2.6.23.15-137.fc8 to match your conditions as much as possible. It could be a problem with gcc, as previously suggested by lazlow. You can always give it a try. Fedora Core 8 gives the possibility to install gcc 3.4.6 (look for compat-gcc-34 and related packages).
ok i ll ry with the gcc 3.4.6 version. I am using the kernel 2.6.24.4-64.fc8-i686 version, does it have any influence to the installation. Do you think that i have to downgrade my kernel version to the one which you are using?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.