[ r3ct0r @ 10.02.2004. 06:29 ] @
E ovako skinuo sam neke kao drivere za IrDA i makda odem na make, sledece izbacuje: Code: [rector@aureus Documents]$ make cc -I/lib/modules/2.4.22-10mdk/build/include -I../include -Wall -Wcast-align -Ws trict-prototypes -O2 -DLINUX -D__KERNEL__ -DMODULE -DMODVERSIONS -fomit-frame-po inter -fno-common -pipe -mpreferred-stack-boundary=2 -include /lib/modules/2.4.2 2-10mdk/build/include/linux/modversions.h -DKBUILD_BASENAME=stir4200 -o stir4200 .o -c stir4200.c <command line>:138586133:43096: /lib/modules/2.4.22-10mdk/build/include/linux/mo dversions.h: No such file or directory In file included from /usr/include/linux/prefetch.h:13, from /usr/include/linux/list.h:6, from /usr/include/linux/module.h:11, from stir4200.c:39: /usr/include/asm/processor.h:55: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared h ere (not in a function) /usr/include/asm/processor.h:55: error: requested alignment is not a constant In file included from /usr/include/linux/module.h:297, from stir4200.c:39: /usr/include/linux/version.h:2:2: #error "====================================== =================" /usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{l inux,asm}/ header" /usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules." /usr/include/linux/version.h:5:2: #error "" /usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files fro m a well-defined" /usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)" /usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the" /usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be" /usr/include/linux/version.h:10:2: #error "included via other system header file s - user space" /usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or" /usr/include/linux/version.h:12:2: #error "<asm/*.h> as well." /usr/include/linux/version.h:13:2: #error "" /usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:" /usr/include/linux/version.h:15:2: #error "" /usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed" /usr/include/linux/version.h:17:2: #error "" /usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link" /usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exis ts and points to" /usr/include/linux/version.h:20:2: #error " the matching kernel source directo ry" /usr/include/linux/version.h:21:2: #error "" /usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h t o" /usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/incl ude/linux/version.h" /usr/include/linux/version.h:24:2: #error "" /usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use t he following" /usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:" /usr/include/linux/version.h:27:2: #error "" /usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/in clude" /usr/include/linux/version.h:29:2: #error "" /usr/include/linux/version.h:30:2: #error " instead of" /usr/include/linux/version.h:31:2: #error "" /usr/include/linux/version.h:32:2: #error " -I/usr/include/linux" /usr/include/linux/version.h:33:2: #error "" /usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordi ngly." /usr/include/linux/version.h:35:2: #error "===================================== ==================" In file included from stir4200.c:39: /usr/include/linux/module.h:299: error: syntax error before "UTS_RELEASE" In file included from /usr/include/linux/mm.h:12, from /usr/include/linux/skbuff.h:26, from stir4200.c:45: /usr/include/linux/mmzone.h:44: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared he re (not in a function) /usr/include/linux/mmzone.h:44: error: requested alignment is not a constant In file included from stir4200.c:46: /usr/include/linux/netdevice.h:165: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclare d here (not in a function) /usr/include/linux/netdevice.h:165: error: requested alignment is not a constant In file included from /usr/include/asm/hardirq.h:6, from /usr/include/linux/interrupt.h:46, from /usr/include/linux/netdevice.h:461, from stir4200.c:46: /usr/include/linux/irq.h:65: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) /usr/include/linux/irq.h:65: error: requested alignment is not a constant In file included from /usr/include/linux/interrupt.h:46, from /usr/include/linux/netdevice.h:461, from stir4200.c:46: /usr/include/asm/hardirq.h:16: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared her e (not in a function) /usr/include/asm/hardirq.h:16: error: requested alignment is not a constant In file included from /usr/include/linux/netdevice.h:461, from stir4200.c:46: /usr/include/linux/interrupt.h:129: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclare d here (not in a function) /usr/include/linux/interrupt.h:129: error: requested alignment is not a constant In file included from stir4200.c:46: /usr/include/linux/netdevice.h:517: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclare d here (not in a function) /usr/include/linux/netdevice.h:517: error: requested alignment is not a constant In file included from /usr/include/linux/usb.h:136, from stir4200.c:49: /usr/include/linux/version.h:2:2: #error "====================================== =================" /usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{l inux,asm}/ header" /usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules." /usr/include/linux/version.h:5:2: #error "" /usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files fro m a well-defined" /usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)" /usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the" /usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be" /usr/include/linux/version.h:10:2: #error "included via other system header file s - user space" /usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or" /usr/include/linux/version.h:12:2: #error "<asm/*.h> as well." /usr/include/linux/version.h:13:2: #error "" /usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:" /usr/include/linux/version.h:15:2: #error "" /usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed" /usr/include/linux/version.h:17:2: #error "" /usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link" /usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exis ts and points to" /usr/include/linux/version.h:20:2: #error " the matching kernel source directo ry" /usr/include/linux/version.h:21:2: #error "" /usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h t o" /usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/incl ude/linux/version.h" /usr/include/linux/version.h:24:2: #error "" /usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use t he following" /usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:" /usr/include/linux/version.h:27:2: #error "" /usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/in clude" /usr/include/linux/version.h:29:2: #error "" /usr/include/linux/version.h:30:2: #error " instead of" /usr/include/linux/version.h:31:2: #error "" /usr/include/linux/version.h:32:2: #error " -I/usr/include/linux" /usr/include/linux/version.h:33:2: #error "" /usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordi ngly." /usr/include/linux/version.h:35:2: #error "===================================== ==================" stir4200.c:50:27: net/irda/irda.h: No such file or directory stir4200.c:51:28: net/irda/irlap.h: No such file or directory stir4200.c:52:34: net/irda/irda_device.h: No such file or directory stir4200.c:53:30: net/irda/wrapper.h: No such file or directory stir4200.c:54:26: net/irda/crc.h: No such file or directory stir4200.c:60:41: missing binary operator before token "(" In file included from stir4200.c:87: stir4200.h:132: error: field `qos' has incomplete type stir4200.h:142: error: syntax error before "iobuff_t" stir4200.h:142: warning: no semicolon at end of struct or union stir4200.h:143: warning: type defaults to `int' in declaration of `rx_buff' stir4200.h:143: warning: data definition has no type or storage class stir4200.h:154: error: syntax error before '}' token stir4200.c: In function `stir_write_reg': stir4200.c:131: error: dereferencing pointer to incomplete type stir4200.c:135: warning: implicit declaration of function `ERROR' stir4200.c:142: error: dereferencing pointer to incomplete type stir4200.c:143: warning: implicit declaration of function `MSECS_TO_JIFFIES' stir4200.c: At top level: stir4200.c:185: error: syntax error before '*' token stir4200.c:186: warning: function declaration isn't a prototype stir4200.c: In function `stir_irda_init_iobuf': stir4200.c:187: error: `io' undeclared (first use in this function) stir4200.c:187: error: (Each undeclared identifier is reported only once stir4200.c:187: error: for each function it appears in.) stir4200.c:187: error: `size' undeclared (first use in this function) stir4200.c:190: error: `FALSE' undeclared (first use in this function) stir4200.c:191: error: `OUTSIDE_FRAME' undeclared (first use in this function) stir4200.c: In function `stir_change_speed': stir4200.c:253: warning: implicit declaration of function `IRDA_DEBUG' stir4200.c:259: error: dereferencing pointer to incomplete type stir4200.c: At top level: stir4200.c:275: error: syntax error before "iobuff_t" stir4200.c:275: warning: function declaration isn't a prototype stir4200.c: In function `stir_wrap_sir_skb': stir4200.c:279: error: `buf' undeclared (first use in this function) stir4200.c:283: warning: implicit declaration of function `async_wrap_skb' stir4200.c:283: error: `skb' undeclared (first use in this function) stir4200.c: At top level: stir4200.c:319: error: syntax error before "iobuff_t" stir4200.c:319: warning: function declaration isn't a prototype stir4200.c: In function `stir_wrap_fir_skb': stir4200.c:322: error: `skb' undeclared (first use in this function) stir4200.c:329: error: `buf' undeclared (first use in this function) stir4200.c: In function `stir_tx_submit': stir4200.c:385: error: dereferencing pointer to incomplete type stir4200.c:389: warning: implicit declaration of function `WARNING' stir4200.c:393: error: dereferencing pointer to incomplete type stir4200.c:394: error: dereferencing pointer to incomplete type stir4200.c:396: error: dereferencing pointer to incomplete type stir4200.c:404: error: dereferencing pointer to incomplete type stir4200.c:404: error: dereferencing pointer to incomplete type stir4200.c:404: error: dereferencing pointer to incomplete type stir4200.c:404: error: dereferencing pointer to incomplete type stir4200.c:426: warning: implicit declaration of function `irda_get_mtt' stir4200.c:430: error: dereferencing pointer to incomplete type stir4200.c:431: error: dereferencing pointer to incomplete type stir4200.c:431: error: dereferencing pointer to incomplete type stir4200.c:443: error: dereferencing pointer to incomplete type stir4200.c:443: error: dereferencing pointer to incomplete type stir4200.c:456: error: dereferencing pointer to incomplete type Sta li je u pitanju, sta da radim?!? Odavde sam skinuo taj driver: http://wetlogic.net/stewart/stir4200/ |