Re: v.11 redhat compiling errors

Joerg Albert <[email protected]>
Newsgroups gmane.linux.drivers.at76c503a.user
Message-ID <Pine.LNX.4.56.0403281546290.1150@invb>
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
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.