Re: driver compile error
"Luke Shen" <[email protected]>
| Newsgroups | gmane.linux.drivers.at76c503a.user |
|---|---|
| Message-ID | <[email protected]> |
I am through this compile problem now, though I still have other problem to struggle through. So I would like to close this thread by sharing my solutions, so that other linux newbies like me know how this problem can be solved. The solution is actually very simple: in order to compiler the driver source code, we need kernel headers installed under the directory "/lib/modules/'uname -r'/build" points to. The kernel headers are NOT installed by the default installation/update process. Therefore, I had to choose customized installation option when I upgraded from Red Hat 7.2 to 9.0, and selected the development package to be upgraded. ( I am pretty sure that updating the whole development package is an overkill, but I have no idea which subset of the development package is for kernel headers.) Double check the existence of kernel header when the installation is done. Then the driver source code builds without error. Luke >From: "Luke Shen" <[email protected]> >Reply-To: [email protected] >To: [email protected] >Subject: Re: [at76c503a-user] driver compile error >Date: Fri, 23 Jan 2004 19:18:11 -0500 > >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 > >_______________________________________________ >at76c503a-user mailing list >[email protected] >http://lists.berlios.de/mailman/listinfo/at76c503a-user _________________________________________________________________ Rethink your business approach for the new year with the helpful tips here. http://special.msn.com/bcentral/prep04.armx