Re: driver compile error
"Luke Shen" <[email protected]>
| Newsgroups | gmane.linux.drivers.at76c503a.user |
|---|---|
| Message-ID | <[email protected]> |
That is what I figured where the problem is. But I am a Linux newbie. I have no idea where kernel source/header is installed (or whether it is installed). I did the linux upgrade from 7.2 to 9.0 and I do not recall any prompt to specify installation directory for kernel source/header during the upgrade process. Is there anyway I can find out? Something might be related to this. I only installed the first 3 disc of Linux 9.0. I learned somewhere on line that source code is in some additional discs. I am not sure whether kernel source code is installed from the first 3 discs. Any help will be greatly appreciated. Luke >From: Joerg Albert <[email protected]> >Reply-To: [email protected] >To: [email protected] >Subject: Re: [at76c503a-user] driver compile error >Date: Fri, 23 Jan 2004 21:57:49 +0100 (CET) > >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 >_______________________________________________ >at76c503a-user mailing list >[email protected] >http://lists.berlios.de/mailman/listinfo/at76c503a-user _________________________________________________________________ High-speed usersbe more efficient online with the new MSN Premium Internet Software. http://join.msn.com/?pgmarket=en-us&page=byoa/prem&ST=1