From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Roskin Date: Wed, 13 May 2009 14:09:36 -0400 Subject: [ath9k-devel] Problem compiling under Linux-libre (completely free version) In-Reply-To: References: Message-ID: <1242238176.3566.12.camel@mj> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Wed, 2009-05-13 at 18:49 +0100, Alejandro Fdez Estevez wrote: > Hi, I'm trying to compile ath9k (from compat-wireless) under a > linux-libre (completely free version of Linux kernel) kernel got from > http://aligunduz.org/gNewSense/ and I'm having problems doing it. I > have got the kernel version 2.6.27 > ( http://aligunduz.org/gNewSense/freedomshoppe/linux-image-2.6.27-libre-gnufs1.6b_2.6.27-libre-gnufs1.6b-10.00.Custom_i386.deb ). I think you are better off asking in the linux-wireless list, as you are not just compiling ath9k, and the compile error is not even in the ath9k sources. > When I do make on the compat-wireless directory, I get a lot of > errors, all them are similar to this: > > /home/ahi/Escritorio/compat-wireless-2.6.30-rc4/include/linux/eeprom_93cx6.h:73: error: expected ?;?, ?,? or ?)? before ?word? What really matters is the first error. For instance, a missing header or failure to parse something. The subsequent error messages may be misleading. > /home/ahi/Escritorio/compat-wireless-2.6.30-rc4/drivers/misc/eeprom/eeprom_93cx6.c:29: > include/linux/delay.h:14:23: error: asm/delay.h: No such file or > directory It looks like you lack a link to include/asm in the kernel tree, which should point to the asm directory specific to your architecture, such as asm-x86. I checked linux-headers-2.6.27-libre-gnufs1.6b_2.6.27-libre-gnufs1.6b-10.00.Custom_i386.deb and it has the asm link pointing to a non-existent directory "asm-i386" rather than to "asm-x86". > include/linux/pci.h:1090: error: expected declaration specifiers or > ?...? before ?u16? > > What should I do? Should I try to compile the original version of > linux-libre instead of using the precompiled gNewSense .deb version?? You can recreate the "asm" link: rm /usr/src/linux-headers-2.6.27-libre-gnufs1.6b/include/asm ln -s asm-x86 /usr/src/linux-headers-2.6.27-libre-gnufs1.6b/include/asm Report the problem to the package maintainer. If nothing helps, please use some other kernel. I don't think recompiling a package would make any difference. -- Regards, Pavel Roskin