Compiling driver fails, missing system headers.
Avi Greenbury
lists at avi.co
Fri May 24 20:04:24 UTC 2013
quiztli at lavabit.com wrote:
> Hello
>
> I have a computer running 12.04 LTS where I have to build the NIC
> (=network) driver. This is the information lspci reports about the
> hardware:
>
> 03:00.0 Ethernet controller: Broadcom Corporation NetLink BCM57788 Gigabit
> Ethernet PCIe (rev 01)
This sounds like a new Mac Mini; I had exactly the same problem with
13.04 the other day and pondered trying 12.10 as an alternative, but
didn't.
I spent a little while trying to work out what it was before giving up
and resorting to the Wifi, but I can confirm that none of the kernels
in raring or raring-proposed work, either, in case you ponder trying
them.
> I get an error message about a missing 'asm/system.h' file when I try to
> compile. The kernel currently in use is 3.5.0-30 and I have the packages
> linux-headers-3.5.0-30 and linux-headers-3.5.0-30-generic installed.
>
> It seems as if ubuntu has markedly changed the way these files are
> located. I don't even have a asm folder, only asm-generic in /usr/include.
This is an upstream change, I'm afraid - the kernel's changed such
that that directory no longer exists, and it did so at the same time
as the tg3 driver (for that is the one you're after) entered the
mainline kernel, so there's no source tarballs that expect this
layout.
How old do the kernels get in 12.04? I believe this change happened
early on in 3.0, so you may find you have an old enough kernel that
you can compile the driver, at least for the short term.
--
Avi
More information about the ubuntu-users
mailing list