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

Dmitri Pogosyan pogosyan@cita.utoronto.ca
Wed, 25 Oct 2000 09:51:39 -0400


 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.

 I was able to compile 0.92 'stable' driver, which works fine,
 although compilation produced lots of warnings like

 /usr/include/linux/modules/i386_ksyms.ver:138: warning: this is the
 location of the previous definition
 In file included from
 /usr/i386-glibc21-linux/include/linux/interrupt.h:52,
                  from tulip_new_old.c:148:
 /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
 location of the previous definition
 /tmp/ccTH9fSF.s: Assembler messages:
 /tmp/ccTH9fSF.s:131: Warning: Ignoring changed section attributes for
 .modinfo

 However 'test' version (0.92l) did not compile

 tulip_new.c: In function `private_ioctl':
 tulip_new.c:3004: `SIOCGMIIPHY' undeclared (first use in this
function)
 tulip_new.c:3004: (Each undeclared identifier is reported only once
 tulip_new.c:3004: for each function it appears in.)
 tulip_new.c:3013: `SIOCGMIIREG' undeclared (first use in this
function)
 tulip_new.c:3040: `SIOCSMIIREG' undeclared (first use in this
function)
 tulip_new.c:3058: `SIOCSPARAMS' undeclared (first use in this
function)
 tulip_new.c:3005: warning: unreachable code at beginning of switch
 statement

 and no .o file is produced.   I tried both gcc and kgcc.  Is this
also everybody else experience ?

                 Best regards, Dmitri Pogosyan

PS.  I wanted to try 0.92l because as I remember from last spring,
0.92 was not handling my Linksys 10/100 ver 2 card properly.
I had to use Linksys modified 0.90f driver - which does compile
under RH7.0 as well as plain 0.92