Re: driver compile error
Joerg Albert <[email protected]>
| Newsgroups | gmane.linux.drivers.at76c503a.user |
|---|---|
| Message-ID | <Pine.LNX.4.56.0401232155570.536@invb> |
Hi, On Thu, 22 Jan 2004, Luke Shen wrote: > But after I <su - root> and enter command <make> under the directory the > "Makefile" is located, I got tons of compile errors. The first one is as > follows: > > /usr/include/linux/timex.h:173:field 'time' has incomplete type > In file included from /usr/include/linux/bitops.h:69 > from /usr/include/asm/system.h:7 > from /usr/include/linux/sched.h:16 > from at76c503.c:79 > > I have browsed through the mailing list archives. There are some compile > error reported. But none seem to be the same as mine. Answers to those > questions do not help me either. > > The only thing I got from the mailing list posts is that the make file > assume kernel header located at /lib/modules/'uname -r'/build. In my case, > 'uname -r' returns "2.4.20-8". So /lib/modules/'uname -r'/build points to > /usr/src/linux-2.4.20-8. However, there is no such directory under /usr/src. > There are only 2 directories under /usr/src: /usr/src/debug and > /usr/src/redhat. That's the problem, /lib/modules/`uname -r`/build _must_ point to the linux kernel source root dir. Where did you install the kernel source or kernel headers into? /Jörg