Skip to contentSkip to conversation

Problem compiling under Linux-libre (completely free version)

ath9k-devel Alejandro Fdez Estevez 2 participants 2 messages May 13, 2009

lore
Share & tools
lore
#0 lore raw

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).

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?

/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

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?? -------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090513/c2f7f3ba/attachment.htm

#1 lore raw
Quoted 5 lines · Alejandro Fdez Estevez

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.

Quoted 4 lines

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.

Quoted 3 lines

/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".

Quoted 5 lines

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.

Signature · 2 lines
Regards,
Pavel Roskin