e qual è il comando esatto che dài per cercare di installare kernel-headers-quellocheè?
li davo "apt-get install kernel-headers" con il nome della versione esattamente copiato (facevo il copia e incolla) e mi dava l'errore che il pacchetto non esisteva, e in fatti era una cosa molto strana.
l'apt-get update l'avevo fatto.
a quello che avevo capito dall'errore dovresti avere un K7 come processore
si ho un processore k-7 (amd athlon xp).
ora la directory di build me la trova, ma ci sono moltissimi errori di compilazione.
debian:/home/giacomo/Desktop/hardsid# make
make -C /lib/modules/2.6.8-2-k7/build SUBDIRS=/home/giacomo/Desktop/hardsid modules
make[1]: Entering directory `/usr/src/kernel-headers-2.6.8-2-k7'
CC [M] /home/giacomo/Desktop/hardsid/hardsid.o
/home/giacomo/Desktop/hardsid/hardsid.c:473: error: syntax error before "sid_type"
/home/giacomo/Desktop/hardsid/hardsid.c:473: warning: no semicolon at end of struct or union
/home/giacomo/Desktop/hardsid/hardsid.c:474: warning: type defaults to `int' in declaration of `card'
/home/giacomo/Desktop/hardsid/hardsid.c:474: warning: data definition has no type or storage class
/home/giacomo/Desktop/hardsid/hardsid.c:509: error: syntax error before '}' token
/home/giacomo/Desktop/hardsid/hardsid.c:509: warning: type defaults to `int' in declaration of `sid_d'
/home/giacomo/Desktop/hardsid/hardsid.c:509: warning: data definition has no type or storage class
/home/giacomo/Desktop/hardsid/hardsid.c:519: error: syntax error before '*' token
/home/giacomo/Desktop/hardsid/hardsid.c:519: warning: function declaration isn't a prototype
/home/giacomo/Desktop/hardsid/hardsid.c:529: error: syntax error before '*' token
/home/giacomo/Desktop/hardsid/hardsid.c:529: warning: type defaults to `int' in declaration of `sid_data'
/home/giacomo/Desktop/hardsid/hardsid.c:529: warning: data definition has no type or storage class
/home/giacomo/Desktop/hardsid/hardsid.c:536: error: syntax error before "sid_setup"
/home/giacomo/Desktop/hardsid/hardsid.c:536: warning: type defaults to `int' in declaration of `sid_setup'
/home/giacomo/Desktop/hardsid/hardsid.c:536: warning: data definition has no type or storage class
/home/giacomo/Desktop/hardsid/hardsid.c: In function `m_fifo_in':
/home/giacomo/Desktop/hardsid/hardsid.c:545: error: dereferencing pointer to incomplete type
/home/giacomo/Desktop/hardsid/hardsid.c:546: error: dereferencing pointer to incomplete type
/home/giacomo/Desktop/hardsid/hardsid.c:546: error: dereferencing pointer to incomplete type
/home/giacomo/Desktop/hardsid/hardsid.c:547: error: dereferencing pointer to incomplete type
/home/giacomo/Desktop/hardsid/hardsid.c:548: error: dereferencing pointer to incomplete type
/home/giacomo/Desktop/hardsid/hardsid.c:549: error: dereferencing pointer to incomplete type
/home/giacomo/Desktop/hardsid/hardsid.c: In function `m_fifo_out':
/home/giacomo/Desktop/hardsid/hardsid.c:555: error: dereferencing pointer to incomplete type
/home/giacomo/Desktop/hardsid/hardsid.c:558: error: dereferencing pointer to incomplete type
/home/giacomo/Desktop/hardsid/hardsid.c:559: error: dereferencing pointer to incomplete type
/home/giacomo/Desktop/hardsid/hardsid.c:559: error: dereferencing pointer to incomplete type
/home/giacomo/Desktop/hardsid/hardsid.c:560: error: dereferencing pointer to incomplete type
/home/giacomo/Desktop/hardsid/hardsid.c:561: error: dereferencing pointer to incomplete type
/home/giacomo/Desktop/hardsid/hardsid.c:562: error: dereferencing pointer to incomplete type
/home/giacomo/Desktop/hardsid/hardsid.c: At top level:
/home/giacomo/Desktop/hardsid/hardsid.c:568: error: syntax error before '*' token
/home/giacomo/Desktop/hardsid/hardsid.c:570: warning: function declaration isn't a prototype
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_poke_isa_slowaccess':
/home/giacomo/Desktop/hardsid/hardsid.c:571: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:571: error: (Each undeclared identifier is reported only once
/home/giacomo/Desktop/hardsid/hardsid.c:571: error: for each function it appears in.)
/home/giacomo/Desktop/hardsid/hardsid.c:572: error: `value' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:573: error: `reg' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: At top level:
/home/giacomo/Desktop/hardsid/hardsid.c:576: error: syntax error before '*' token
/home/giacomo/Desktop/hardsid/hardsid.c:578: warning: function declaration isn't a prototype
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_poke_isa':
/home/giacomo/Desktop/hardsid/hardsid.c:579: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:579: error: `reg' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:579: error: `value' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: At top level:
/home/giacomo/Desktop/hardsid/hardsid.c:582: error: syntax error before '*' token
/home/giacomo/Desktop/hardsid/hardsid.c:584: warning: function declaration isn't a prototype
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_poke_cwmk3':
/home/giacomo/Desktop/hardsid/hardsid.c:585: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:586: error: `value' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:587: error: `reg' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: At top level:
/home/giacomo/Desktop/hardsid/hardsid.c:590: error: syntax error before '*' token
/home/giacomo/Desktop/hardsid/hardsid.c:592: warning: function declaration isn't a prototype
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_poke_pci':
/home/giacomo/Desktop/hardsid/hardsid.c:593: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:593: error: `reg' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:593: error: `value' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: At top level:
/home/giacomo/Desktop/hardsid/hardsid.c:597: error: syntax error before '*' token
/home/giacomo/Desktop/hardsid/hardsid.c:598: warning: function declaration isn't a prototype
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_peek_isa':
/home/giacomo/Desktop/hardsid/hardsid.c:599: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:600: error: `reg' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: At top level:
/home/giacomo/Desktop/hardsid/hardsid.c:605: error: syntax error before '*' token
/home/giacomo/Desktop/hardsid/hardsid.c:606: warning: function declaration isn't a prototype
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_peek_cwmk3':
/home/giacomo/Desktop/hardsid/hardsid.c:607: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:608: error: `reg' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: At top level:
/home/giacomo/Desktop/hardsid/hardsid.c:614: error: syntax error before '*' token
/home/giacomo/Desktop/hardsid/hardsid.c:615: warning: function declaration isn't a prototype
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_peek_pci':
/home/giacomo/Desktop/hardsid/hardsid.c:616: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:618: error: `reg' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: At top level:
/home/giacomo/Desktop/hardsid/hardsid.c:628: error: syntax error before '*' token
/home/giacomo/Desktop/hardsid/hardsid.c:629: warning: function declaration isn't a prototype
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_delay_pr':
/home/giacomo/Desktop/hardsid/hardsid.c:630: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:630: error: `SID_CARD_CWMK4' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:632: error: `delay' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: At top level:
/home/giacomo/Desktop/hardsid/hardsid.c:665: error: syntax error before '*' token
/home/giacomo/Desktop/hardsid/hardsid.c:666: warning: function declaration isn't a prototype
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_delay':
/home/giacomo/Desktop/hardsid/hardsid.c:667: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:667: error: `SID_CARD_CWMK4' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:672: error: `delay' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: At top level:
/home/giacomo/Desktop/hardsid/hardsid.c:726: error: syntax error before '*' token
/home/giacomo/Desktop/hardsid/hardsid.c:727: warning: function declaration isn't a prototype
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_reset':
/home/giacomo/Desktop/hardsid/hardsid.c:732: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:736: error: `vol' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_thread':
/home/giacomo/Desktop/hardsid/hardsid.c:743: error: `sids' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:743: error: syntax error before ')' token
/home/giacomo/Desktop/hardsid/hardsid.c:744: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:746: warning: unused variable `clocks'
/home/giacomo/Desktop/hardsid/hardsid.c:747: warning: unused variable `tv'
/home/giacomo/Desktop/hardsid/hardsid.c:748: warning: unused variable `delayed'
/home/giacomo/Desktop/hardsid/hardsid.c:749: warning: unused variable `next'
/home/giacomo/Desktop/hardsid/hardsid.c:749: warning: unused variable `nextTime'
/home/giacomo/Desktop/hardsid/hardsid.c:749: warning: unused variable `wait'
/home/giacomo/Desktop/hardsid/hardsid.c:749: warning: unused variable `i'
/home/giacomo/Desktop/hardsid/hardsid.c:751: warning: unused variable `counter'
/home/giacomo/Desktop/hardsid/hardsid.c:752: warning: unused variable `fstate'
/home/giacomo/Desktop/hardsid/hardsid.c:753: warning: unused variable `ffeedback'
/home/giacomo/Desktop/hardsid/hardsid.c:754: warning: unused variable `fmdelay'
/home/giacomo/Desktop/hardsid/hardsid.c:755: warning: unused variable `id'
/home/giacomo/Desktop/hardsid/hardsid.c: At top level:
/home/giacomo/Desktop/hardsid/hardsid.c:1074: error: syntax error before '*' token
/home/giacomo/Desktop/hardsid/hardsid.c:1075: warning: function declaration isn't a prototype
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_write_pr':
/home/giacomo/Desktop/hardsid/hardsid.c:1076: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1076: error: `SID_CARD_CWMK4' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1078: error: `cmd' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_write':
/home/giacomo/Desktop/hardsid/hardsid.c:1116: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: At top level:
/home/giacomo/Desktop/hardsid/hardsid.c:1165: error: syntax error before '*' token
/home/giacomo/Desktop/hardsid/hardsid.c:1166: warning: function declaration isn't a prototype
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_read_pr':
/home/giacomo/Desktop/hardsid/hardsid.c:1169: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1175: error: `cmd' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1193: error: `SID_CARD_CWMK4' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_read':
/home/giacomo/Desktop/hardsid/hardsid.c:1207: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_ioctl':
/home/giacomo/Desktop/hardsid/hardsid.c:1233: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1287: error: `HSID_IOCTL_CARDTYPE_DEPRECIATED' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1324: error: `HSID_IOCTL_DEVICES' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1327: error: `HSID_IOCTL_RELEASE' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1330: error: `HSID_IOCTL_ALLOCATED' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_open':
/home/giacomo/Desktop/hardsid/hardsid.c:1351: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1359: error: request for member `status' in something not a structure or union
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_release_pr':
/home/giacomo/Desktop/hardsid/hardsid.c:1430: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1451: error: `SID_CARD_QUATTRO' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1452: error: `SID_CARD_PCI_QUATTRO' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: At top level:
/home/giacomo/Desktop/hardsid/hardsid.c:1531: error: syntax error before "hsid_detect"
/home/giacomo/Desktop/hardsid/hardsid.c:1531: error: syntax error before '*' token
/home/giacomo/Desktop/hardsid/hardsid.c:1532: warning: return type defaults to `int'
/home/giacomo/Desktop/hardsid/hardsid.c:1532: warning: function declaration isn't a prototype
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_detect':
/home/giacomo/Desktop/hardsid/hardsid.c:1536: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1560: error: `SID_NONE' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1582: error: `SID_6581' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1584: error: `SID_8580' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: At top level:
/home/giacomo/Desktop/hardsid/hardsid.c:1587: error: syntax error before '*' token
/home/giacomo/Desktop/hardsid/hardsid.c:1588: warning: function declaration isn't a prototype
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_detect_chips':
/home/giacomo/Desktop/hardsid/hardsid.c:1590: error: `newsid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1591: error: `chips' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1593: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1595: error: `SID_NONE' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1598: error: `SID_6581' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: At top level:
/home/giacomo/Desktop/hardsid/hardsid.c:1620: error: syntax error before '*' token
/home/giacomo/Desktop/hardsid/hardsid.c:1621: warning: function declaration isn't a prototype
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_probe_isa':
/home/giacomo/Desktop/hardsid/hardsid.c:1626: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1658: error: `SID_CARD_NONE' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1675: error: `SID_CARD_QUATTRO' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1676: error: `SID_CARD_HARDSID' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_probe_pci':
/home/giacomo/Desktop/hardsid/hardsid.c:1683: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1686: error: `sid_card_type' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1686: error: syntax error before "card"
/home/giacomo/Desktop/hardsid/hardsid.c:1693: error: `SID_CARD_PCI_HARDSID' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1696: error: `SID_CARD_PCI_QUATTRO' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_probe_cmk3':
/home/giacomo/Desktop/hardsid/hardsid.c:1754: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1759: error: `SID_CARD_CWMK3' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_interrupt':
/home/giacomo/Desktop/hardsid/hardsid.c:1802: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1802: error: syntax error before ')' token
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_probe_cmk4':
/home/giacomo/Desktop/hardsid/hardsid.c:1840: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:1850: error: `SID_CARD_CWMK4' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_notify':
/home/giacomo/Desktop/hardsid/hardsid.c:2048: error: request for member `pcidev' in something not a structure or union
/home/giacomo/Desktop/hardsid/hardsid.c:2050: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:2051: error: `SID_CARD_CWMK4' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_init':
/home/giacomo/Desktop/hardsid/hardsid.c:2080: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:2138: error: `SID_CARD_HARDSID' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:2142: error: `SID_CARD_QUATTRO' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_exit':
/home/giacomo/Desktop/hardsid/hardsid.c:2189: error: request for member `pcidev' in something not a structure or union
/home/giacomo/Desktop/hardsid/hardsid.c:2191: error: request for member `card' in something not a structure or union
/home/giacomo/Desktop/hardsid/hardsid.c:2193: error: `SID_CARD_CWMK4' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:2194: error: request for member `pcidev' in something not a structure or union
/home/giacomo/Desktop/hardsid/hardsid.c:2196: error: request for member `port' in something not a structure or union
/home/giacomo/Desktop/hardsid/hardsid.c:2197: error: `SID_CARD_CWMK3' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:2198: error: request for member `port' in something not a structure or union
/home/giacomo/Desktop/hardsid/hardsid.c:2200: error: `SID_CARD_PCI_HARDSID' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:2201: error: `SID_CARD_PCI_QUATTRO' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:2202: error: request for member `pcidev' in something not a structure or union
/home/giacomo/Desktop/hardsid/hardsid.c:2207: error: request for member `pcidev' in something not a structure or union
/home/giacomo/Desktop/hardsid/hardsid.c: In function `hsid_proc_output':
/home/giacomo/Desktop/hardsid/hardsid.c:2229: error: `sid' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c:2264: error: `SID_6581' undeclared (first use in this function)
/home/giacomo/Desktop/hardsid/hardsid.c: At top level:
/home/giacomo/Desktop/hardsid/hardsid.c:626: warning: `fcounter' defined but not used
make[2]: *** [/home/giacomo/Desktop/hardsid/hardsid.o] Error 1
make[1]: *** [_module_/home/giacomo/Desktop/hardsid] Error 2
make[1]: Leaving directory `/usr/src/kernel-headers-2.6.8-2-k7'
make: *** [kmod_build] Error 2
se è venuto un post troppo lungo che da noia, diitemelo pure che tanto ho fatto un file con gli errori, e se potete e volete, ve lo spedisco, che c capite più di me :D .