Error during Intel Ethernet e1000e driver compilation in Debian Sid
Due to a motherboard change I need to compile the e1000e Intel driver for the integrated ethernet (a 82579LM chip) because the Debian kernel apparently comes with an outdated e1000e version (modinfo says that the driver version is 2.3.2-k, but I’ve downloaded the 3.1.0.2 from Intel: https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=15817&lang=eng&ProdId=3299) But when I try to compile the driver I obtain the error:
Makefile:108: *** Linux kernel source not configured - missing autoconf.h.
/usr/src/linux-headers-$(BUILD_KERNEL)-amd64/include/generated/
where $(BUILD_KERNEL) is the output of uname -r. I suspect some search paths in the driver Makefile are wrong. There is a variable called KSP with the search paths:
# Kernel Search Path # All the places we look for kernel source KSP := /lib/modules/$(BUILD_KERNEL)/build \ /lib/modules/$(BUILD_KERNEL)/source \ /lib/modules/$(BUILD_KERNEL)-default/build \ /usr/src/linux-$(BUILD_KERNEL) \ /usr/src/linux-$($(BUILD_KERNEL) | sed 's/-.*//') \ /usr/src/kernel-headers-$(BUILD_KERNEL) \ /usr/src/kernel-source-$(BUILD_KERNEL) \ /usr/src/linux-$($(BUILD_KERNEL) | sed 's/\(7*\.6*\)\..*/\1/') \ /usr/src/linux
/lib/modules/$(BUILD_KERNEL)-default/build /usr/src/linux-$(BUILD_KERNEL) \ /usr/src/linux-$($(BUILD_KERNEL) | sed 's/-.*//') \ /usr/src/kernel-headers-$(BUILD_KERNEL) \ /usr/src/kernel-source-$(BUILD_KERNEL)
/usr/src/linux-headers-$(BUILD_KERNEL)-amd64 /usr/src/linux-headers-$(BUILD_KERNEL)-common /usr/src/linux-kbuild-3.16
Makefile:108: *** Linux kernel source not configured - missing autoconf.h
I’m sure this is a bad path definitions, but I don’t know how to fix it Has anyone compiled an Intel driver in Debian Sid?
Thread: Missing linux/autoconfig.h
First Cup of Ubuntu
Missing linux/autoconfig.h
i tried to install cisco vpn client to the /bin folder. I have the latest version of ubuntu running and this is my very first package to install. But when i want to start the script vpn_install i get this:
Making module
make -C /lib/modules/2.5.35-25-generic/build SUBDIRS=/bin/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.35-25-generic’
CC [M] /bin/vpnclient/linuxcniapi.o
/bin/vpnclient/linuxcniapi.c:14: fatal error: linux/autoconf.h: No such file or directory
compilation terminated.
make[2]: *** [/bin/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [_module_/bin/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-25-generic’
make: *** [default] Error 2
Failed to make module «cisco_ipsec.ko».
I already installed the mentioned linux header and still getting this error message. Ok, this linux/autoconf.h file is not traceable, but i don’t really know how to fix this.
I would be graceful if anybody could give me a hint.forum ubuntu
Cookies and cream
Re: Missing linux/autoconfig.h
Originally Posted by Sancho_Panza
i tried to install cisco vpn client to the /bin folder. I have the latest version of ubuntu running and this is my very first package to install. But when i want to start the script vpn_install i get this:
Making module
make -C /lib/modules/2.5.35-25-generic/build SUBDIRS=/bin/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.35-25-generic’
CC [M] /bin/vpnclient/linuxcniapi.o
/bin/vpnclient/linuxcniapi.c:14: fatal error: linux/autoconf.h: No such file or directory
compilation terminated.
make[2]: *** [/bin/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [_module_/bin/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-25-generic’
make: *** [default] Error 2
Failed to make module «cisco_ipsec.ko».
I already installed the mentioned linux header and still getting this error message. Ok, this linux/autoconf.h file is not traceable, but i don’t really know how to fix this.
I would be graceful if anybody could give me a hint.forum ubuntu
in /usr/src/linux/ & save the kernel configuration, this will generate the /usr/include/linux/autoconf.h file according to the kernel configuration.
Thread: Where is autoconf.h ?
Frothy Coffee!
Where is autoconf.h ? SOLVED
I’m trying to compile a driver and it says it requires autoconf.h. I have the kernel headers installed. Is autoconf.h not used in kernels anymore?
/usr/src/linux-headers-2.6.28-14-generic/include/linux/autoconf.h
If it is still used, how do I acquire it?
root@EMONSTER:/usr/src# cd intel-536-537/ root@EMONSTER:/usr/src/intel-536-537# make clean cd coredrv; make clean make[1]: Entering directory `/usr/src/intel-536-537/coredrv' rm -f *.ko .*.o.cmd *.mod.c .*.ko.cmd *.o *~ core Module.* modules.* rm -rf .tmp_versions make[1]: Leaving directory `/usr/src/intel-536-537/coredrv' rm -f *.o *.ko root@EMONSTER:/usr/src/intel-536-537# make 536 cd coredrv; make clean make[1]: Entering directory `/usr/src/intel-536-537/coredrv' rm -f *.ko .*.o.cmd *.mod.c .*.ko.cmd *.o *~ core Module.* modules.* rm -rf .tmp_versions make[1]: Leaving directory `/usr/src/intel-536-537/coredrv' rm -f *.o *.ko Module precompile check Current running kernel is: 2.6.28-14-generic /lib/modules. autoconf.h does not exist please install kernel source make: *** [check] Error 1 root@EMONSTER:/usr/src/intel-536-537# apt-get install linux-headers-`uname -r` Reading package lists. Done Building dependency tree Reading state information. Done linux-headers-2.6.28-14-generic is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@EMONSTER:/usr/src/intel-536-537# find /usr/src/linux-headers-2.6.28-14-generic/ -iname "autoconf.h" root@EMONSTER:/usr/src/intel-536-537# ls /usr/src/linux-headers-2.6.28-14-generic/include/linux/auto* /usr/src/linux-headers-2.6.28-14-generic/include/linux/auto_dev-ioctl.h /usr/src/linux-headers-2.6.28-14-generic/include/linux/auto_fs4.h /usr/src/linux-headers-2.6.28-14-generic/include/linux/auto_fs.h
Arch Linux
I’m having trouble installing my webcam (Sony’s EyeToy). I check it’s recognised, remove the current modules, download the driver but when I try to compile it just spits out an error:
$ lsusb Bus 002 Device 002: ID 0566:3015 Monterey International Corp. Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 007: ID 054c:0155 Sony Corp. Bus 001 Device 005: ID 04d9:1135 Holtek Semiconductor, Inc. Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub $ lsmod | grep ov ov511 67286 0 gspca_ov519 36265 0 gspca_main 24940 1 gspca_ov519 videodev 44108 2 ov511,gspca_main usbcore 146545 10 ov511,snd_usb_audio,snd_usbmidi_lib,gspca_ov519,gspca_main,ipheth,usbhid,ohci_hcd,ehci_hcd $ sudo rmmod ov511 $ sudo rmmod gspca_ov519 $ wget [url]http://www.rastageeks.org/downloads/ov51x-jpeg/ov51x-jpeg-1.5.9.tar.gz[/url] $ tar -xvf ov51x-jpeg-1.5.9.tar.gz ov51x-jpeg-1.5.9/ ov51x-jpeg-1.5.9/test/ ov51x-jpeg-1.5.9/test/Makefile ov51x-jpeg-1.5.9/test/getjpeg.c ov51x-jpeg-1.5.9/Makefile ov51x-jpeg-1.5.9/ov51x-jpeg-core.c ov51x-jpeg-1.5.9/ov518-decomp.c ov51x-jpeg-1.5.9/ov51x-jpeg.h ov51x-jpeg-1.5.9/ov519-decomp.c ov51x-jpeg-1.5.9/ov511-decomp.c ov51x-jpeg-1.5.9/ov7670.h ov51x-jpeg-1.5.9/ChangeLog $ cd ov51x-jpeg-1.5.9 $ make make -C /lib/modules/2.6.35-ARCH/build M=/tmp/webcam/ov51x-jpeg-1.5.9 modules make[1]: Entering directory `/usr/src/linux-2.6.35-ARCH' CC [M] /tmp/webcam/ov51x-jpeg-1.5.9/ov51x-jpeg-core.o /tmp/webcam/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:87:28: fatal error: linux/autoconf.h: No such file or directory compilation terminated. make[2]: *** [/tmp/webcam/ov51x-jpeg-1.5.9/ov51x-jpeg-core.o] Error 1 make[1]: *** [_module_/tmp/webcam/ov51x-jpeg-1.5.9] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.35-ARCH' make: *** [all] Error 2 $
I’ve check the source and coupled with the error message I have found the problem to be with the line including the autoconf header file:
I tried removed this line and it gave me even more errors so put it back. From what I can gather, the compiler is trying to find the autoconf header file but it can’t. I then ran a search on the header file and here are the results:
$ sudo find / -mount -name autoconf.h /usr/src/linux-2.6.35-ARCH/include/generated/autoconf.h /usr/src/linux-2.6.32-lts/include/linux/autoconf.h
I replaced ‘linux/autoconf.h’ with the full locations of the previous two searches and then it spat out the same errors as if i’d removed the line (I think, if not the same, it was a similar amount!).
I’ve been following the guides on this webpage.
Any help? This seems more of a problem with my installation than it does the drivers. Could it be because I’m running 64 bit?
Last edited by BaconPie (2010-08-23 10:33:56)
Arch Linux
Hi
I am new to ArchLinux. Before I have used: RedHat, Fedora, Ubuntu, SLES and for quite long time OpenSuse (I still love it and have on other machine).
I decided to try ArchLinux on my laptop because I think OpenSuse is too heavy in some cases. I think its time for me to try a little bit more than box distro like openSUSE.
I have successfully installed ArchLinux on my machine with dual boot with Suse (thats why I do not need GRUB).
Now I have issue with my network. I already know that AR* Family does not work out of box, so I am trying to add it.
The issue I have is this:
since I do not have network, I have booted from CD and used ‘arch-chroot /mnt’. Everything fine so far. I can add packages with pacman. I added ‘make’ and gcc’.
Now I try to ‘make’ from package AR81Family-linux-v1-10.1.14.tar.
When I execute ‘make’ I see error:
Linux kernel source not found
I have executed pacman -Qi linux and see there version 3.11.1-1.
I already installed linux-headers, but this not solve my issue. What package do I need?
I am not sure about «AR81Family-linux-v1-10.1.14». I know the WIKI mentioned another package , but I know «AR81Family-linux-v1-10.1.14» worked fine with SLES 11 SP1.
I have two questions:
what package is missing for kernel source?
what package do you advise me to install considering the kernel 3.11 and Laptop: ASUS G51J.
Last edited by rafdre (2013-09-26 05:11:39)