[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: make modules



On Wed, 25 Aug 2004 10:48:42 +0200
messmate <messmate@free.fr> wrote:
>
> Here are the errors :
> make[2]: Entering directory `/usr/src/kernel-source-2.4.20/drivers/atm'
> gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.20/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
> -DMODULE -DMODVERSIONS -include
> /usr/src/kernel-source-2.4.20/include/linux/modversions.h  -nostdinc
> -iwithprefix include -DKBUILD_BASENAME=ambassador  -c -o ambassador.o
> ambassador.c ambassador.c:301:21: pasting "." and "start" does not give
> a valid preprocessing token ambassador.c:305:23: pasting "." and
> "regions" does not give a valid preprocessing token ambassador.c:310:20:
> pasting "." and "data" does not give a valid preprocessing token
> make[2]: *** [ambassador.o] Error 1 make[2]: Leaving directory
> `/usr/src/kernel-source-2.4.20/drivers/atm' make[1]: ***
> [_modsubdir_atm] Error 2 make[1]: Leaving directory
> `/usr/src/kernel-source-2.4.20/drivers' make: *** [_mod_drivers] Error 2

Ok, now that you've told us what the error was . . .a bit of useful
information:  Google is your friend.

I went to Google and did a quick search on this error.  The first
posts it returned told me that gcc-3.3 couldn't compile some older
versions of the kernel (e.g. 2.4.20, 2.5.76, etc.) because of
code extensions that were no longer supported by gcc.  Later versions
of the kernel fixed this up.  For a long time, gcc only generated
warnings about this; by 3.3, it generated errors.  If you want
to compile older versions of the kernel, you need gcc-3.2 or
earlier.  This isn't a problem with the compiler or the kernel,
but rather a mismatch between them.

You might wanna look at:

http://www.catb.org/~esr/faqs/smart-questions.html

in particular, the "Before You Ask" and "When You Ask"
sections.  It would have helped you, and your potential
respondents, a lot.

-c

-- 
Chris Metzler			cmetzler@speakeasy.snip-me.net
		(remove "snip-me." to email)

"As a child I understood how to give; I have forgotten this grace since I
have become civilized." - Chief Luther Standing Bear

Attachment: pgpoG7vFMauuS.pgp
Description: PGP signature


Reply to: