Compiling module for interface ( Realtek r1000 )

[email protected]
Newsgroups gmane.linux.cluster.ssic.user
Message-ID <53319.213.41.240.146.1178904357.squirrel@webmail.crmcn.univ-mrs.fr>
Hi,

I try to compile the r1000_v1.05 driver for RTL-8168 (i suppose it is the
version that  give you problems) and i think i get the same errors than
you discribe :

[root@node2 r1000_v1.05]# make modules
make -C src/ modules
make[1]: Entering directory `/tmp/r1000_v1.05/src'
make -C /usr/src/linux SUBDIRS=/tmp/r1000_v1.05/src modules
make[2]: Entering directory `/usr/src/redhat/BUILD/kernel-ssi-2.6.10/linux'
  CC [M]  /tmp/r1000_v1.05/src/r1000_n.o
/tmp/r1000_v1.05/src/r1000_n.c:1295: error: conflicting types for
'r1000_tx_action'
/tmp/r1000_v1.05/src/r1000_n.c:137: error: previous declaration of
'r1000_tx_action' was here
/tmp/r1000_v1.05/src/r1000_n.c:1295: error: conflicting types for
'r1000_tx_action'
/tmp/r1000_v1.05/src/r1000_n.c:137: error: previous declaration of
'r1000_tx_action' was here
/tmp/r1000_v1.05/src/r1000_n.c:1344: error: conflicting types for
'r1000_rx_action'
/tmp/r1000_v1.05/src/r1000_n.c:136: error: previous declaration of
'r1000_rx_action' was here
/tmp/r1000_v1.05/src/r1000_n.c:1344: error: conflicting types for
'r1000_rx_action'
/tmp/r1000_v1.05/src/r1000_n.c:136: error: previous declaration of
'r1000_rx_action' was here
/tmp/r1000_v1.05/src/r1000_n.c:136: warning: 'r1000_rx_action' declared
`static' but never defined
/tmp/r1000_v1.05/src/r1000_n.c:137: warning: 'r1000_tx_action' used but
never defined
/tmp/r1000_v1.05/src/r1000_n.c:1296: warning: 'r1000_tx_action' defined
but not used
/tmp/r1000_v1.05/src/r1000_n.c:1345: warning: 'r1000_rx_action' defined
but not used
make[3]: *** [/tmp/r1000_v1.05/src/r1000_n.o] Error 1
make[2]: *** [_module_/tmp/r1000_v1.05/src] Error 2
make[2]: Leaving directory `/usr/src/redhat/BUILD/kernel-ssi-2.6.10/linux'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/tmp/r1000_v1.05/src'
make: *** [modules] Error 2



So I make tow modifications in the file r1000_n.c

comment line 136 137 1295 1344 and copy the tow last in place of tow first

Here is the diff :

diff  r1000_n.c r1000_n.c.new
136,137c136,139
< static void r1000_rx_action(struct net_device *netdev);
< static void r1000_tx_action(struct net_device *netdev);
---
> //static void r1000_rx_action(struct net_device *netdev);
> static void FASTCALL (r1000_rx_action(struct net_device *netdev));
> //static void r1000_tx_action(struct net_device *netdev);
> static void FASTCALL (r1000_tx_action(struct net_device *netdev));
1295c1297
< static void FASTCALL (r1000_tx_action(struct net_device *netdev));
---
> //static void FASTCALL (r1000_tx_action(struct net_device *netdev));
1344c1346
< static void FASTCALL (r1000_rx_action(struct net_device *netdev));
---
> //static void FASTCALL (r1000_rx_action(struct net_device *netdev));


after the compilation seem to work.

root@node2 r1000_v1.05]# make modules
make -C src/ modules
make[1]: Entering directory `/tmp/r1000_v1.05/src'
make -C /usr/src/linux SUBDIRS=/tmp/r1000_v1.05/src modules
make[2]: Entering directory `/usr/src/redhat/BUILD/kernel-ssi-2.6.10/linux'
  CC [M]  /tmp/r1000_v1.05/src/r1000_n.o
  CC [M]  /tmp/r1000_v1.05/src/r1000_ioctl.o
  LD [M]  /tmp/r1000_v1.05/src/r1000.o
  Building modules, stage 2.
make[3]: Warning: File `/tmp/r1000_v1.05/src/r1000.o' has modification
time 0.38 s in the future
  MODPOST
  CC      /tmp/r1000_v1.05/src/r1000.mod.o
  LD [M]  /tmp/r1000_v1.05/src/r1000.ko
make[3]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Leaving directory `/usr/src/redhat/BUILD/kernel-ssi-2.6.10/linux'
strip --strip-debug r1000.ko
make[1]: Leaving directory `/tmp/r1000_v1.05/src'


Unfortunatly i can't test the module !

Fred

--------------------------
Frederic Augier
CRMCN-CNRS
Campus de Luminy, Case 913
13288 Marseille Cedex 9


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
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.