[tulip] Error building Tulip driver on Mandrake 9 : 'tulip.c:3249: `NETIF_MSG_RXFILTER' undeclared (first use in this function)'

Dustin Clute cluted@hotmail.com
Wed Nov 27 22:27:00 2002


I had this same problem with mandrake. I got the same errors. I used the 
command:
gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/include
-include /usr/src/linux/include/linux/modversions.h -O6 -c tulip.c

With this command I got the pci-scan.c to compile right, but couldn't get 
tulip.c to compile it showed the error:

tulip.c: In function `set_rx_mode':

Then somebody from this mailing list told me to take the netdrivers.tgz and 
were ever it was unpacked to go to that directory where ever it is installed 
do a make, make check (there will be alot of test), then a make install. 
Then I went and compiled the tulip.c with the command:

gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/include
-include /usr/src/linux/include/linux/modversions.h -O6 -c tulip.c

and it worked perfect.
Thanks to who ever told me I forgot your name sorry.

Dustin



>From: "Peter McClure" <mcclurep@yahoo.com>
>To: <tulip@scyld.com>
>Subject: Re: [tulip] Error building Tulip driver on Mandrake 9 : 
>'tulip.c:3249: `NETIF_MSG_RXFILTER' undeclared (first use in this 
>function)'
>Date: Wed, 27 Nov 2002 19:16:46 -0000
>
>More debugging of the source code.  It never occurred to me (until now) 
>that
>there might be #if in the header files.  Dumb.
>
>From kern_compat.h
>
>#if !defined(HAVE_NETIF_MSG)
>enum {
>.
>.
>.
>         NETIF_MSG_RXFILTER      = 0x10000,
>};
>#endif
>
>Okayyyy.  Sooo,
>
>[peter@lin133 netdrivers-3.1]$ grep HAVE_NETIF_MSG
>/lib/modules/`uname -r`/build/include/linux/*h
>/lib/modules/2.4.19-16mdksecure/build/include/linux/netdevice.h:#define
>HAVE_NETIF_MSG 1
>[peter@lin133 netdrivers-3.1]$ grep NETIF_MSG_RXFILTER
>/lib/modules/`uname -r`/build/include/linux/*h
>[peter@lin133 netdrivers-3.1]$
>
>
>OK.  So Mandrake claim to have NETIF_MSG and do - except for the one that 
>we
>need.  I added
>
>enum {
>         NETIF_MSG_RXFILTER      = 0x10000
>};
>
>to kern_compat.h
>
>
>I then tried to rebuild the module and I get :-
>
>[root@lin133 netdrivers-3.1]# make tulip.o
>gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 
>-I/lib/modules/2.4.1
>9-16mdksecure/build/include -pipe -fno-strength-reduce -DMODVERSIONS   -c 
>-o
>tulip.o tulip.c
>tulip.c: In function `set_rx_mode':
>tulip.c:3291: warning: operation on `setup_frm' may be undefined
>tulip.c:3299: warning: operation on `setup_frm' may be undefined
>tulip.c:3300: warning: operation on `setup_frm' may be undefined
>tulip.c:3301: warning: operation on `setup_frm' may be undefined
>tulip.c:3309: warning: operation on `setup_frm' may be undefined
>tulip.c:3310: warning: operation on `setup_frm' may be undefined
>tulip.c:3311: warning: operation on `setup_frm' may be undefined
>
>
>Any suggestions ?
>
>
>Regards
>Peter
>
>
>--
>Peter McClure
>Home : +44 (0)20 8306 6908
>Mobile : +44 (0)7788 410464
>Fax :   +44(0)870 1643153
>
>_______________________________________________
>tulip mailing list, tulip@scyld.com
>To change to digest mode or unsubscribe visit
>http://www.scyld.com/mailman/listinfo/tulip


_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail