[tulip] Compile under RH7.0 again - 0.92l

Thomas Dodd ted@cypress.com
Wed, 25 Oct 2000 11:40:05 -0500


Dmitri Pogosyan wrote:
> 
>  Hi,
>  I have RH7.0 with kernel 2.2.16-22 and, of course,
>  kernel headers from 4.0.x family.
>  As advised on this list I have symlinked kernel headers from
> /usr/include
>  to the ones in /usr/src/linux.

No, you should leave the 2.4 headers in /usr/include. They are
needed for building apps that use glibc.
Change the include dir to search /usr/src/linux/include/ before
/usr/include.
 
>  I was able to compile 0.92 'stable' driver, which works fine,
>  although compilation produced lots of warnings like
> 
>  /usr/i386-glibc21-linux/include/asm/softirq.h:75: warning:
>  `synchronize_bh' redefined
>  /usr/include/linux/modules/i386_ksyms.ver:142: warning: this is the
>  However 'test' version (0.92l) did not compile

Yis is the glibc-2.1 compatible kernel headers from kgcc/egcs
It's in the default search path for kgcc. It should be ignorable
in this case.

>  tulip_new.c: In function `private_ioctl':
>  tulip_new.c:3004: `SIOCGMIIPHY' undeclared (first use in this
> function)

Looks like a header is missing. Do you have the pci_scan stuff?
how about the 2.4 compatability headers? In the include search path?

>  and no .o file is produced.   I tried both gcc and kgcc.  Is this

use kgcc (egcs) for kernels and modules.

	-Thomas