[vortex] still no love from mini PCI

Bogdan Costescu Bogdan.Costescu@IWR.Uni-Heidelberg.De
Wed, 4 Oct 2000 13:39:56 +0200 (CEST)


On 3 Oct 2000, Roger Williams wrote:

> You can't *build* it, or you can't *load* it into the kernel?  If
> you've got the kernel source installed on your machine, I'm not sure
> why you would have a problem building the module:
> 
> 	gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c 3c59x.c \
> 	`[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`
> 
> was all I needed. 

Please note that RH 7.0 has 2 versions of gcc installed. The one used for
kernel build is called 'kgcc' (probably kernel-GCC) which is the older
egcs-1.1.2 C compiler. 'gcc' is the new 2.96 C compiler and it has known
problems with kernel builds.
So the above line should read:

	kgcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c 3c59x.c \
 	`[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`

This is not RedHat specific, several new distributions have 'kgcc' as they
want for userland applications the latest C compiler, while the kernel is
only guaranteed to work with gcc-2.7.2 and egcs-1.1.2.

Best regards,

Bogdan Costescu

IWR - Interdisziplinaeres Zentrum fuer Wissenschaftliches Rechnen
Universitaet Heidelberg, INF 368, D-69120 Heidelberg, GERMANY
Telephone: +49 6221 54 8869, Telefax: +49 6221 54 8868
E-mail: Bogdan.Costescu@IWR.Uni-Heidelberg.De