Bonjour à tous,
j’ai un gros souci…
j’ai un PC DELL optiplex 380, avec une carte mère intégrant la carte réseau
[quote]tg3-3.105h # lspci | grep -i ethernet
02:00.0 Ethernet controller: Broadcom Corporation Device 1692 (rev 01)[/quote]
j’ai fait une install avec une debian netinst, j’ai téléchargé le module tg3-3.105h , j’ai également installé les sources : linux-source-2.6.26.
Mais impossibl de compiler le module
si quelqu’un aurait une solution s’il vous plait, merci.
Pour plus de précision je me suis inspirer de cette méthode : http://tools.akiletour.fr/2009/02/18/compiler-tg3-sur-debian-2618/
message de la compilation : [quote]pacifix tg3-3.105h # make
make -C /lib/modules/2.6.26-2-686/build SUBDIRS=/sictiam/driver/tg3-3.105h modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.26-2-686 »
CC [M] /sictiam/driver/tg3-3.105h/tg3.o
In file included from /sictiam/driver/tg3-3.105h/tg3.h:13,
from /sictiam/driver/tg3-3.105h/tg3.c:91:
/sictiam/driver/tg3-3.105h/tg3_compat.h:42: error: conflicting types for âboolâ
include/linux/types.h:33: error: previous declaration of âboolâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:48: error: redefinition of typedef â__le32â
include/linux/types.h:182: error: previous declaration of â__le32â was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:49: error: redefinition of typedef â__be32â
include/linux/types.h:183: error: previous declaration of â__be32â was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:53: error: conflicting types for âresource_size_tâ
include/linux/types.h:197: error: previous declaration of âresource_size_tâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:79: error: conflicting types for âkzallocâ
include/linux/slab.h:275: error: previous definition of âkzallocâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:102: error: static declaration of âjiffies_to_usecsâ follows non-static declaration
include/linux/jiffies.h:287: error: previous declaration of âjiffies_to_usecsâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:115: error: static declaration of âusecs_to_jiffiesâ follows non-static declaration
include/linux/jiffies.h:289: error: previous declaration of âusecs_to_jiffiesâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:130: error: static declaration of âmsecs_to_jiffiesâ follows non-static declaration
include/linux/jiffies.h:288: error: previous declaration of âmsecs_to_jiffiesâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:166: error: static declaration of âmsleepâ follows non-static declaration
include/linux/delay.h:45: error: previous declaration of âmsleepâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:178: error: static declaration of âmsleep_interruptibleâ follows non-static declaration
include/linux/delay.h:46: error: previous declaration of âmsleep_interruptibleâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:447: error: static declaration of âpci_choose_stateâ follows non-static declaration
include/linux/pci.h:619: error: previous declaration of âpci_choose_stateâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h: In function âpci_choose_stateâ:
/sictiam/driver/tg3-3.105h/tg3_compat.h:448: error: incompatible types in return
/sictiam/driver/tg3-3.105h/tg3_compat.h: At top level:
/sictiam/driver/tg3-3.105h/tg3_compat.h:473: error: static declaration of âpci_enable_wakeâ follows non-static declaration
include/linux/pci.h:620: error: previous declaration of âpci_enable_wakeâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:499: error: static declaration of âpci_set_power_stateâ follows non-static declaration
include/linux/pci.h:618: error: previous declaration of âpci_set_power_stateâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:572: error: static declaration of âpcie_set_readrqâ follows non-static declaration
include/linux/pci.h:605: error: previous declaration of âpcie_set_readrqâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:685: error: static declaration of âprint_macâ follows non-static declaration
include/linux/if_ether.h:132: error: previous declaration of âprint_macâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:752: error: redefinition of âskb_transport_offsetâ
include/linux/skbuff.h:1056: error: previous definition of âskb_transport_offsetâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h: In function âskb_transport_offsetâ:
/sictiam/driver/tg3-3.105h/tg3_compat.h:753: error: âconst struct sk_buffâ has no member named âhâ
/sictiam/driver/tg3-3.105h/tg3_compat.h: At top level:
/sictiam/driver/tg3-3.105h/tg3_compat.h:759: error: redefinition of âip_hdrâ
include/linux/ip.h:111: error: previous definition of âip_hdrâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h: In function âip_hdrâ:
/sictiam/driver/tg3-3.105h/tg3_compat.h:760: error: âconst struct sk_buffâ has no member named ânhâ
/sictiam/driver/tg3-3.105h/tg3_compat.h: At top level:
/sictiam/driver/tg3-3.105h/tg3_compat.h:766: error: redefinition of âip_hdrlenâ
include/net/ip.h:48: error: previous definition of âip_hdrlenâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:773: error: redefinition of âtcp_hdrâ
include/linux/tcp.h:182: error: previous definition of âtcp_hdrâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h: In function âtcp_hdrâ:
/sictiam/driver/tg3-3.105h/tg3_compat.h:774: error: âconst struct sk_buffâ has no member named âhâ
/sictiam/driver/tg3-3.105h/tg3_compat.h: At top level:
/sictiam/driver/tg3-3.105h/tg3_compat.h:780: error: redefinition of âtcp_optlenâ
include/linux/tcp.h:192: error: previous definition of âtcp_optlenâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:1014: error: redefinition of âskb_copy_from_linear_dataâ
include/linux/skbuff.h:1481: error: previous definition of âskb_copy_from_linear_dataâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:1025: error: redefinition of ânetif_tx_lockâ
include/linux/netdevice.h:1410: error: previous definition of ânetif_tx_lockâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h: In function ânetif_tx_lockâ:
/sictiam/driver/tg3-3.105h/tg3_compat.h:1026: error: âstruct net_deviceâ has no member named âxmit_lockâ
/sictiam/driver/tg3-3.105h/tg3_compat.h: At top level:
/sictiam/driver/tg3-3.105h/tg3_compat.h:1031: error: redefinition of ânetif_tx_unlockâ
include/linux/netdevice.h:1429: error: previous definition of ânetif_tx_unlockâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h: In function ânetif_tx_unlockâ:
/sictiam/driver/tg3-3.105h/tg3_compat.h:1033: error: âstruct net_deviceâ has no member named âxmit_lockâ
/sictiam/driver/tg3-3.105h/tg3.c: In function âtg3_napi_disableâ:
/sictiam/driver/tg3-3.105h/tg3.c:767: error: implicit declaration of function ânetif_poll_disableâ
/sictiam/driver/tg3-3.105h/tg3.c: In function âtg3_napi_enableâ:
/sictiam/driver/tg3-3.105h/tg3.c:779: error: implicit declaration of function ânetif_poll_enableâ
/sictiam/driver/tg3-3.105h/tg3.c: In function âtg3_rxâ:
/sictiam/driver/tg3-3.105h/tg3.c:5072: error: too few arguments to function ânetif_rx_scheduleâ
/sictiam/driver/tg3-3.105h/tg3.c: In function âtg3_pollâ:
/sictiam/driver/tg3-3.105h/tg3.c:5408: error: too few arguments to function ânetif_rx_completeâ
/sictiam/driver/tg3-3.105h/tg3.c:5422: error: âstruct net_deviceâ has no member named âquotaâ
/sictiam/driver/tg3-3.105h/tg3.c:5423: error: âstruct net_deviceâ has no member named âquotaâ
/sictiam/driver/tg3-3.105h/tg3.c:5428: error: âstruct net_deviceâ has no member named âquotaâ
/sictiam/driver/tg3-3.105h/tg3.c:5440: error: too few arguments to function ânetif_rx_completeâ
/sictiam/driver/tg3-3.105h/tg3.c: In function âtg3_msi_1shotâ:
/sictiam/driver/tg3-3.105h/tg3.c:5507: error: too few arguments to function ânetif_rx_scheduleâ
/sictiam/driver/tg3-3.105h/tg3.c: In function âtg3_msiâ:
/sictiam/driver/tg3-3.105h/tg3.c:5537: error: too few arguments to function ânetif_rx_scheduleâ
/sictiam/driver/tg3-3.105h/tg3.c: In function âtg3_interruptâ:
/sictiam/driver/tg3-3.105h/tg3.c:5583: error: too few arguments to function ânetif_rx_scheduleâ
/sictiam/driver/tg3-3.105h/tg3.c: In function âtg3_interrupt_taggedâ:
/sictiam/driver/tg3-3.105h/tg3.c:5645: error: too few arguments to function ânetif_rx_scheduleâ
/sictiam/driver/tg3-3.105h/tg3.c: In function âtg3_init_oneâ:
/sictiam/driver/tg3-3.105h/tg3.c:15551: error: âstruct net_deviceâ has no member named âpollâ
/sictiam/driver/tg3-3.105h/tg3.c:15552: error: âstruct net_deviceâ has no member named âweightâ
make[2]: *** [/sictiam/driver/tg3-3.105h/tg3.o] Erreur 1
make[1]: *** [module/sictiam/driver/tg3-3.105h] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.26-2-686 »
make: *** [default] Erreur 2
[/quote]