RE: v.11 redhat compiling errors

"Christopher Piggott HOME" <[email protected]>
Newsgroups gmane.linux.drivers.at76c503a.user
Message-ID <[email protected]>
The compiler I'm using is 3.2.2 but I tried it with 2.96 and had the same
result.  However...I DID get it to build when I built a new kernel with a
different .config.  My own config didn't work, but the standard redhat one
did.

I built my own .config to have most modules static (including USB support)
but I went through and turned off everything I thought I even MIGHT not
need.  Something that I turned off is required to be there for at76c503 to
compile.

I'm about to start going through the config file one entry at a time to try
to figure out what it is ... unless somebody can give me some hints, like
what modules need to be there and does it matter if they are statically
linked into the kernel.

--Chris

-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Joerg Albert
Sent: Sunday, March 28, 2004 8:50 AM
To: [email protected]
Subject: Re: [at76c503a-user] v.11 redhat compiling errors


Hi,

On Sat, 27 Mar 2004, Christopher Piggott HOME wrote:

> When I try to compile v.11 I get tons and tons of errors.  I read the
readme
> file and it's not the symlink to the build directory - that part is
correct.
> The running kernel is 2.4.20 but the version that's in /usr/src/linux-2.4
is
> not the running one (the one in /usr/src is built with extra options --
I'm
> trying to target this to an embedded Geode board).
>
> So, if KERNEL_SRC and KERNEL_HEADERS are consistent (pointing to
> /usr/src/linux-2.4-20.8) then why wouldn't it build?

no idea, KERNEL_HEADERS is derived from KERNEL_SRC:
+ KERNEL_SRC = /lib/modules/$(KERNEL_VERSION)/build
+ KERNEL_HEADERS = $(KERNEL_SRC)/include

> [root@dhcppc1 at76c503-0.11]# make 2>&1 | more
>
gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing -fno-common
>  -Wno-sign-compare -Wno-unused -D__KER
>
NEL__ -DMODULE -DEXPORT_SYMTAB -DDRIVER_VERSION=\"v0.11\" -I/lib/modules/2.4
> .20-8/build/include -DMODVERSIONS -inc
> lude /lib/modules/2.4.20-8/build/include/linux/modversions.h -c at76c503.c
> In file included from at76c503.c:78:
> /lib/modules/2.4.20-8/build/include/linux/kernel.h:60: invalid suffix on
> integer constant

Did you set KERNEL_SRC manually to /usr/src/linux-2.4 in the Makefile ?
Which gcc version do you run and what is line 60 in
/lib/modules/2.4.20-8/build/include/linux/kernel.h ?

/Jörg
_______________________________________________
at76c503a-user mailing list
[email protected]
http://lists.berlios.de/mailman/listinfo/at76c503a-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.