[aca-nidza@192 Linux]$ ls inc/ makefile* readme.txt* relnote.txt* src/ [aca-nidza@192 Linux]$ make clean rm -f ./src/CDCEther.o ./src/CDCEther.o *.o .depend ./VKGEther '[aca-nidza@192 Linux]$ make all gcc -c -O2 -Wall -Wno-missing-braces -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -mcpu=i486 -falign-loops=2 -falign-jumps=2 -falign-functions=2 -I/usr/src/linux/include -I./inc -D__KERNEL__ -DMODULE -Dlinux -DDBG=0 -o src/CDCEther.o src/CDCEther.c In file included from /usr/src/linux/include/linux/rwsem.h:27, from /usr/src/linux/include/asm/semaphore.h:42, from /usr/src/linux/include/linux/sched.h:20, from src/CDCEther.c:22: /usr/src/linux/include/asm/rwsem.h: In function `__down_read': /usr/src/linux/include/asm/rwsem.h:105: error: syntax error before "KBUILD_BASENAME" /usr/src/linux/include/asm/rwsem.h: In function `__down_write': /usr/src/linux/include/asm/rwsem.h:157: error: syntax error before "KBUILD_BASENAME" /usr/src/linux/include/asm/rwsem.h: In function `__up_read': /usr/src/linux/include/asm/rwsem.h:194: error: syntax error before "KBUILD_BASENAME" /usr/src/linux/include/asm/rwsem.h:188: warning: unused variable `tmp' /usr/src/linux/include/asm/rwsem.h: In function `__up_write': /usr/src/linux/include/asm/rwsem.h:220: error: syntax error before "KBUILD_BASENAME" /usr/src/linux/include/asm/rwsem.h: In function `__downgrade_write': /usr/src/linux/include/asm/rwsem.h:245: error: syntax error before "KBUILD_BASENAME" In file included from /usr/src/linux/include/linux/sched.h:20, from src/CDCEther.c:22: /usr/src/linux/include/asm/semaphore.h: In function `down': /usr/src/linux/include/asm/semaphore.h:105: error: syntax error before "KBUILD_BASENAME" /usr/src/linux/include/asm/semaphore.h: In function `down_interruptible': /usr/src/linux/include/asm/semaphore.h:130: error: syntax error before "KBUILD_BASENAME" /usr/src/linux/include/asm/semaphore.h: In function `down_trylock': /usr/src/linux/include/asm/semaphore.h:155: error: syntax error before "KBUILD_BASENAME" /usr/src/linux/include/asm/semaphore.h: In function `up': /usr/src/linux/include/asm/semaphore.h:179: error: syntax error before "KBUILD_BASENAME" In file included from /usr/src/linux/include/linux/irq.h:22, from /usr/src/linux/include/asm/hardirq.h:6, from /usr/src/linux/include/linux/hardirq.h:7, from /usr/src/linux/include/linux/interrupt.h:11, from /usr/src/linux/include/linux/netdevice.h:534, from src/CDCEther.c:26: /usr/src/linux/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory In file included from /usr/src/linux/include/asm/hardirq.h:6, from /usr/src/linux/include/linux/hardirq.h:7, from /usr/src/linux/include/linux/interrupt.h:11, from /usr/src/linux/include/linux/netdevice.h:534, from src/CDCEther.c:26: /usr/src/linux/include/linux/irq.h: At top level: /usr/src/linux/include/linux/irq.h:85: error: `NR_IRQS' undeclared here (not in a function) In file included from /usr/src/linux/include/linux/irq.h:94, from /usr/src/linux/include/asm/hardirq.h:6, from /usr/src/linux/include/linux/hardirq.h:7, from /usr/src/linux/include/linux/interrupt.h:11, from /usr/src/linux/include/linux/netdevice.h:534, from src/CDCEther.c:26: /usr/src/linux/include/asm/hw_irq.h:30: error: `NR_IRQ_VECTORS' undeclared here (not in a function) /usr/src/linux/include/asm/hw_irq.h:34: error: `NR_IRQS' undeclared here (not in a function) In file included from /usr/src/linux/include/asm/hardirq.h:6, from /usr/src/linux/include/linux/hardirq.h:7, from /usr/src/linux/include/linux/interrupt.h:11, from /usr/src/linux/include/linux/netdevice.h:534, from src/CDCEther.c:26: /usr/src/linux/include/linux/irq.h:99: error: `NR_IRQS' undeclared here (not in a function) In file included from src/CDCEther.c:32: inc/CDCEther.h:79:41: missing binary operator before token "(" In file included from src/CDCEther.c:32: inc/CDCEther.h:87: error: syntax error before "USB_CTRLREQUEST" inc/CDCEther.h:87: warning: type defaults to `int' in declaration of `USB_CTRLREQUEST' inc/CDCEther.h:87: warning: data definition has no type or storage class inc/CDCEther.h:126: error: syntax error before "USB_CTRLREQUEST" inc/CDCEther.h:126: warning: no semicolon at end of struct or union inc/CDCEther.h:135: error: syntax error before '}' token inc/CDCEther.h:135: warning: type defaults to `int' in declaration of `ether_dev_t' inc/CDCEther.h:135: warning: data definition has no type or storage class src/CDCEther.c: In function `read_bulk_callback': src/CDCEther.c:60: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c:60: error: (Each undeclared identifier is reported only once src/CDCEther.c:60: error: for each function it appears in.) src/CDCEther.c:99: error: `USB_ST_NOERROR' undeclared (first use in this function) src/CDCEther.c:101: error: `USB_ST_NORESPONSE' undeclared (first use in this function) src/CDCEther.c:194: warning: implicit declaration of function `FILL_BULK_URB' src/CDCEther.c:199: error: `USB_QUEUE_BULK' undeclared (first use in this function) src/CDCEther.c:203: error: too few arguments to function `usb_submit_urb' src/CDCEther.c: In function `write_bulk_callback': src/CDCEther.c:215: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c: In function `intr_callback': src/CDCEther.c:313: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c:321: error: `USB_ST_NOERROR' undeclared (first use in this function) src/CDCEther.c:323: error: `USB_ST_URB_KILLED' undeclared (first use in this function) src/CDCEther.c: In function `setpktfilter_done': src/CDCEther.c:339: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c:344: error: `USB_ST_NOERROR' undeclared (first use in this function) src/CDCEther.c:346: error: `USB_ST_URB_KILLED' undeclared (first use in this function) src/CDCEther.c: At top level: src/CDCEther.c:354: error: syntax error before '*' token src/CDCEther.c:355: warning: function declaration isn't a prototype src/CDCEther.c: In function `CDC_SetEthernetPacketFilter': src/CDCEther.c:356: error: `dr' undeclared (first use in this function) src/CDCEther.c:356: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c:374: warning: passing arg 7 of `usb_fill_control_urb' from incompatible pointer type src/CDCEther.c:375: error: too few arguments to function `usb_submit_urb' src/CDCEther.c: At top level: src/CDCEther.c:387: error: syntax error before '*' token src/CDCEther.c:388: warning: function declaration isn't a prototype src/CDCEther.c: In function `CDCEther_StartInt': src/CDCEther.c:391: warning: implicit declaration of function `FILL_INT_URB' src/CDCEther.c:391: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c:396: error: too few arguments to function `usb_submit_urb' src/CDCEther.c: In function `CDCEther_tx_timeout': src/CDCEther.c:409: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c:423: error: `USB_ASYNC_UNLINK' undeclared (first use in this function) src/CDCEther.c: In function `CDCEther_start_xmit': src/CDCEther.c:432: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c:509: error: `USB_QUEUE_BULK' undeclared (first use in this function) src/CDCEther.c:512: error: too few arguments to function `usb_submit_urb' src/CDCEther.c: In function `CDCEther_netdev_stats': src/CDCEther.c:581: error: syntax error before ')' token src/CDCEther.c: In function `CDCEther_open': src/CDCEther.c:586: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c:586: error: syntax error before ')' token src/CDCEther.c:606: error: too few arguments to function `usb_submit_urb' src/CDCEther.c:624: warning: implicit declaration of function `usb_inc_dev_use' src/CDCEther.c: In function `CDCEther_close': src/CDCEther.c:632: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c:656: warning: implicit declaration of function `usb_dec_dev_use' src/CDCEther.c: In function `CDCEther_set_multicast': src/CDCEther.c:715: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c: At top level: src/CDCEther.c:773: error: syntax error before "ether_dev_t" src/CDCEther.c:775: warning: function declaration isn't a prototype src/CDCEther.c: In function `parse_header_functional_descriptor': src/CDCEther.c:779: error: `requirements' undeclared (first use in this function) src/CDCEther.c:785: error: `bFunctionLength' undeclared (first use in this function) src/CDCEther.c:795: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c:795: error: `data' undeclared (first use in this function) src/CDCEther.c: At top level: src/CDCEther.c:809: error: syntax error before "ether_dev_t" src/CDCEther.c:811: warning: function declaration isn't a prototype src/CDCEther.c: In function `parse_union_functional_descriptor': src/CDCEther.c:815: error: `requirements' undeclared (first use in this function) src/CDCEther.c:821: error: `bFunctionLength' undeclared (first use in this function) src/CDCEther.c:828: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c:828: error: `data' undeclared (first use in this function) src/CDCEther.c: At top level: src/CDCEther.c:856: error: syntax error before "ether_dev_t" src/CDCEther.c:858: warning: function declaration isn't a prototype src/CDCEther.c: In function `parse_ethernet_functional_descriptor': src/CDCEther.c:862: error: `requirements' undeclared (first use in this function) src/CDCEther.c:868: error: `bFunctionLength' undeclared (first use in this function) src/CDCEther.c:874: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c:874: error: `data' undeclared (first use in this function) src/CDCEther.c: At top level: src/CDCEther.c:894: error: syntax error before "ether_dev_t" src/CDCEther.c:896: warning: function declaration isn't a prototype src/CDCEther.c: In function `parse_protocol_unit_functional_descriptor': src/CDCEther.c:900: error: `bDescriptorType' undeclared (first use in this function) src/CDCEther.c:906: error: `bDescriptorSubtype' undeclared (first use in this function) src/CDCEther.c:908: error: `bFunctionLength' undeclared (first use in this function) src/CDCEther.c:911: error: `data' undeclared (first use in this function) src/CDCEther.c:912: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c:913: error: `requirements' undeclared (first use in this function) src/CDCEther.c: At top level: src/CDCEther.c:940: error: syntax error before "ether_dev_t" src/CDCEther.c:941: warning: function declaration isn't a prototype src/CDCEther.c: In function `parse_ethernet_class_information': src/CDCEther.c:952: error: `length' undeclared (first use in this function) src/CDCEther.c:954: error: `data' undeclared (first use in this function) src/CDCEther.c:973: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c: At top level: src/CDCEther.c:999: error: syntax error before "ether_dev_t" src/CDCEther.c:1000: warning: function declaration isn't a prototype src/CDCEther.c: In function `find_and_parse_ethernet_class_information': src/CDCEther.c:1012: error: `device' undeclared (first use in this function) src/CDCEther.c:1012: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c:1013: error: structure has no member named `interface' src/CDCEther.c:1019: error: structure has no member named `extralen' src/CDCEther.c:1021: error: structure has no member named `extra' src/CDCEther.c:1021: error: structure has no member named `extralen' src/CDCEther.c:1022: error: structure has no member named `extralen' src/CDCEther.c:1027: error: structure has no member named `extra' src/CDCEther.c:1027: error: structure has no member named `extralen' src/CDCEther.c: At top level: src/CDCEther.c:1040: error: syntax error before "ether_dev_t" src/CDCEther.c:1041: warning: function declaration isn't a prototype src/CDCEther.c: In function `get_data_interface_endpoints': src/CDCEther.c:1047: error: `device' undeclared (first use in this function) src/CDCEther.c:1047: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c:1048: error: structure has no member named `interface' src/CDCEther.c:1056: error: structure has no member named `endpoint' src/CDCEther.c:1057: error: structure has no member named `endpoint' src/CDCEther.c:1060: error: structure has no member named `endpoint' src/CDCEther.c:1061: error: structure has no member named `endpoint' src/CDCEther.c:1062: error: structure has no member named `endpoint' src/CDCEther.c:1072: error: structure has no member named `endpoint' src/CDCEther.c:1074: error: structure has no member named `endpoint' src/CDCEther.c:1077: error: structure has no member named `endpoint' src/CDCEther.c:1078: error: structure has no member named `endpoint' src/CDCEther.c:1082: error: structure has no member named `endpoint' src/CDCEther.c:1084: error: structure has no member named `endpoint' src/CDCEther.c:1087: error: structure has no member named `endpoint' src/CDCEther.c:1088: error: structure has no member named `endpoint' src/CDCEther.c: At top level: src/CDCEther.c:1100: error: syntax error before "ether_dev_t" src/CDCEther.c:1101: warning: function declaration isn't a prototype src/CDCEther.c: In function `verify_ethernet_data_interface': src/CDCEther.c:1113: error: `device' undeclared (first use in this function) src/CDCEther.c:1113: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c:1114: error: structure has no member named `interface' src/CDCEther.c:1125: warning: assignment from incompatible pointer type src/CDCEther.c: At top level: src/CDCEther.c:1164: error: syntax error before "ether_dev_t" src/CDCEther.c:1165: warning: function declaration isn't a prototype src/CDCEther.c: In function `find_ethernet_comm_interface': src/CDCEther.c:1173: error: `device' undeclared (first use in this function) src/CDCEther.c:1173: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c:1178: error: structure has no member named `interface' src/CDCEther.c:1182: warning: assignment from incompatible pointer type src/CDCEther.c: At top level: src/CDCEther.c:1223: error: syntax error before "ether_dev_t" src/CDCEther.c:1224: warning: function declaration isn't a prototype src/CDCEther.c: In function `find_valid_configuration': src/CDCEther.c:1230: error: `device' undeclared (first use in this function) src/CDCEther.c:1237: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c: In function `check_for_claimed_interfaces': src/CDCEther.c:1267: error: structure has no member named `interface' src/CDCEther.c: At top level: src/CDCEther.c:1301: error: syntax error before '*' token src/CDCEther.c:1302: warning: function declaration isn't a prototype src/CDCEther.c: In function `set_ethernet_addr': src/CDCEther.c:1316: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c: At top level: src/CDCEther.c:1351: error: syntax error before '*' token src/CDCEther.c:1352: warning: function declaration isn't a prototype src/CDCEther.c: In function `log_device_info': src/CDCEther.c:1366: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c: In function `CDCEther_probe': src/CDCEther.c:1413: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c:1420: warning: passing arg 1 of `check_for_claimed_interfaces' from incompatible pointer type src/CDCEther.c:1448: warning: implicit declaration of function `usb_set_configuration' src/CDCEther.c:1506: warning: implicit declaration of function `init_etherdev' src/CDCEther.c:1506: warning: assignment makes pointer from integer without a cast src/CDCEther.c: In function `CDCEther_disconnect': src/CDCEther.c:1558: error: `ether_dev' undeclared (first use in this function) src/CDCEther.c: At top level: src/CDCEther.c:1603: warning: initialization from incompatible pointer type src/CDCEther.c:1604: warning: initialization from incompatible pointer type make: *** [src/CDCEther.o] Error 1 [aca-nidza@192 Linux]$