Errors attempting to compile driver using "make" command
I'm basicall a brand new linux user.
My wireless card is not working well, and I've downloaded a new driver for it. The text document provides instructions, but when I run the "make" command after navigating to the appropriate folder, I get the following error: make[1]: Entering directory `/usr/src/linux-headers-3.5.0-27-generic' gcc: error: /lib/modules/3.5.0-27-generic/build/include/linux/autoconf.h: No such file or directory gcc: fatal error: no input files compilation terminated. scripts/Makefile.build:49: *** CFLAGS was changed in "/home/laura/Documents/Adapter/HAL/rtl8192/Makefile". Fix it to use ccflags-y. Stop. make[1]: *** [_module_/home/laura/Documents/Adapter/HAL/rtl8192] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-27-generic' make: *** [all] Error 2 I've googled parts of these error messages, but nothing suggested seems to work. I downloaded the autoconf program from the software center and restarted my desktop, still nothing. Using Ubuntu 12.10 32 bit. Happy to provide more info if needed. Thanks in advance. Arkon |
You should actually run autoconf
make sure you have installed all the autotools packages. maybe run aclocal and then autoconf, and then ./configure if needed and then make. Autotools are a pain sometimes. |
Quote:
If you "fix" a problem by rebooting, then you can't find out what the problem was. Once you get the driver installed, run: sudo rmmod rtl8192 sudo modprobe rtl8192 this will start using the new driver without a reboot |
Quote:
I tried "autoconf" in the terminal. It told me there is no input file. So how do I "run autoconf"? Or aclocal or the ./configure? I noticed that "run" is not a command which Terminal accepts. Thanks! Arkon |
The configure script (if it is there) is usually started with "./configure". The shell interprets the command as the full path to the executable. As long as the script "configure" is in the current directory, AND is marked executable (the usual case) it should start and run.
Normally there can be a number of options - you can usually get those listed out with "./configure --help" or you can just read the script (it is a bit obtuse until you get to the help section though). Normally, the default options are fine for the type of thing you are doing. |
I'm getting "no such file or directory" when I type ./configure in the terminal. =\
Any other suggestions? And I still don't know how to run autoconf or aclocal. I appreciate the help thus far. =) Arkon |
How did you download the driver? did you download it as a tarball or from GIT or subversion or cvs or a tarball generated from one of those?
when I said "run autoconf", I meant you should type it on the command line (in the source directory). The purpose of autoconf is to generate the ./configure script which you would then run by typing "./configure". After that, typing make will complete the build process. However, after re-reading your original question, it seems you may have another error. You should read the files called README and INSTALL which were included in the tarball, these files usually have details about how to compile and install the package. Since we are talking about a driver and not a userland application, the installation details may be different. One more thing, your original message indicates that the build process is searching for your kernel headers, make sure those are installed or the build will fail, they should be installed through your synaptic, probably called something like "linux-headers-generic" or something like that. After installing those, just running "make" again might work. |
! It's about the kernel "autoconf.h" ! In /usr/src/linux-headers-**
Quote:
/usr/src/linux-headers-**/include/generated/autoconf.h Solution : 1) cd /usr/src/linux-headers-3.5.0-27-generic/include/linux/ 2) sudo ln -s ../generated/autoconf.h - |
Hi,
I hope this doesn't derail your efforts, but I think it might be a good idea to confirm that:
Code:
lspci | grep -i net Cheers, Evo2. |
Quote:
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter (rev 01) 03:00.0 Ethernet controller: Atheros Communications Inc. AR8161 Gigabit Ethernet (rev 10) I did some research and found others that had the same problem as I was having: I can connect to a wireless network, and the connection will work for a little bit, but then I can't communicate over it, even though it says it's still connected. I was told this is because I need a linux specific driver. Here is the first part of the readme file that came with the driver: Release Date: 2011-0321, ver 0006 RTL8192CE Linux driver --This driver supports RealTek rtl8192CE/8188CE PCI Wireless LAN NIC for 2.6 kernel: Fedora Core, Debian, Mandriva, Open SUSE, Gentoo, Ubuntu 7.10/8.04/8.10/9.04/9.10/10.04/10.10, moblin(V2), android-x86_090916, etc. 2.4 kernel: Redhat 9.0/9.1 Thanks so much for the replies, everyone! Arkon |
Hi,
Quote:
Quote:
So, this brings us back to the actual problem. I did a quick search and it seems there are quite a few reports of stability issues with this device. I did not yet see a confirmed solution (there are many suggestions of loading the modules with specific parameters). Before proceeding can you confirm that you see these problems on all wireless networks that you use or just one in particular? If just on one network in particular, are there other devices on this wireless network that have no problems? Cheers, Evo2. |
The wireless network I use is a University network, I use my Windows laptop on it all the time with no problems.
Because the Ubuntu system is a desktop, it's a little difficult to take it elsewhere to test other networks, and I really need it to work on this network as it's the only one available to me right now. Do I just need a new wireless card, then? Thanks again for the help. =) |
Hi,
ok so it really does seem to be a problem with this device and its driver. After quite a bit of duckduckgo searching I've still not been able to find a solution for this. There are many people posting problems with this device on Ubuntu 12.10, but I don't see any reports of problems for people running Debian with a 3.x kernel. This is a little curious. As I mentioned this driver needs some firmware. To find out what version you have installed please post the output of: Code:
dpkg -l linux-firmware Evo2. |
Output of dpkg -l linux-firmware is:
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-================-=============-=============-===================================== ii linux-firmware 1.95 all Firmware for Linux kernel drivers Thanks again, Arkon |
Hi,
although it seems that 1.95.1 is the latest version from the 1.95.1 changelog there is no difference in the realtek firmware files between 1.95 and 1.95.1. Running out of ideas, thinking out loud now... Do you have any other OS installed on that machine? If so how does the wireless work with them? Have you tried reseating the card (turn off computer, remove card from pci slot and then put it back in)? At this point, if I were you I'd be looking for another wireless card, or trying to get the machine hooked up on a wired network. Sorry I can't be of more help. Evo2. |
All times are GMT -5. The time now is 07:14 PM. |