I had the same error when compiling ALSA drivers. I had to set the C_INCLUDE_PATH environment varible ( see info pages for gcc) to have gcc use the kernel headers. I typed the following commands.
./configure C_INCLUDE_PATH=/usr/src/kernel-headers-2.2.17/include/ export C_INCLUDE_PATH make install Daniel King Original message from: Andrew Perrin >From [EMAIL PROTECTED] Fri Dec 15 05:59:06 2000 >Newsgroups: >Date: Fri, 15 Dec 2000 05:59:06 -0800 (PST) >From: Andrew Perrin <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >cc: [EMAIL PROTECTED], debian-user@lists.debian.org >Subject: Re: alsa and modutils >Fcc: sent-mail >In-Reply-To: <[EMAIL PROTECTED]> >Message-ID: <Pine.GSO.4.21.0012150557270.13548 @socrates.Berkeley.EDU> >X-Reply-UID: (2 > )(1 976885764 48)/var/mail/aperrin >MIME-Version: 1.0 >Content-Type: TEXT/PLAIN; charset=US-ASCII > >Well, thanks to all of you but none of this worked - I did the source >installs and still get the same issues: > >make[1]: Entering directory `/usr/src/alsa-driver-0.5.10/kernel' >gcc -DALSA_BUILD -D__KERNEL__ -O2 -DLINUX -Wall -Wstrict- prototypes >-fomit-frame-pointer -pipe -I/usr/src/linux/include -I.. - DEXPORT_SYMTAB >-c sound.c >In file included from sound.c:23: >../include/driver.h:66: linux/modversions.h: No such file or directory >make[1]: *** [sound.o] Error 1 >make[1]: Leaving directory `/usr/src/alsa-driver-0.5.10/kernel' >make: *** [compile] Error 1 > >...include/driver.h does in fact include linux/modversions.h. I tried >simply commenting out the include, but it appears another dependency does >the same thing - got the same error trivially further along. > >I've found very little documentation about what modversions.h *is* or how >it is supposed to work. Can anyone shed some light on this file and how I >might get this to compile? > >Using locate, I find modversions.h in >/usr/src/kernel-headers-2.2.17/include/linux >so, in my just-enough-knowledge-to-be-dangerous mode I linked all the >files in above directory into .../alsa-driver-0.5.10/linux which bombed >completely. > >Any help will be greatly appreciated. > >------------------------------------------------------------------ >Andrew J Perrin - Ph.D. Candidate, UC Berkeley, Dept. of Sociology >216 Oxford Hills Drive | [EMAIL PROTECTED] >Chapel Hill NC 27514 USA | [EMAIL PROTECTED] >(919) 929-3292 | http://demog.berkeley.edu/~aperrin > >On Thu, 14 Dec 2000 [EMAIL PROTECTED] wrote: > >> >> Yes, this pops up with a particular Intel NIC driver also, >> and affects all debian past 2.2.16 >> >> The simple key is to unpack source that is no longer unpacked >> by defaults. >> >> apt-get source kernel-headers-2.2.17 >> >> You might need to do this first... >> >> apt-get install kernel-headers-2.2.17 >> > > >------------------------------------------------------------------ >Andrew J Perrin - Ph.D. Candidate, UC Berkeley, Dept. of Sociology >216 Oxford Hills Drive | [EMAIL PROTECTED] >Chapel Hill NC 27514 USA | [EMAIL PROTECTED] >(919) 929-3292 | http://demog.berkeley.edu/~aperrin > > >-- >To UNSUBSCRIBE, email to [EMAIL PROTECTED] >with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] >