theanswer 发表于 2006-3-17 18:08:53

编译orinoco-0.13b出现错误

# make install
cc -MD -O2 -Wall -Wstrict-prototypes -pipe-D__KERNEL__ -DPCMCIA_DEBUG=1 -DMODU
LE -DEXPORT_SYMTAB -I/lib/modules/2.6.15.3/build/include -DMODVERSIONS -include
/lib/modules/2.6.15.3/build/include/linux/modversions.h -c hermes.c
cc1: /lib/modules/2.6.15.3/build/include/linux/modversions.h: 没有那个文件或目录
In file included from /lib/modules/2.6.15.3/build/include/asm/processor.h:18,
               from /lib/modules/2.6.15.3/build/include/asm/thread_info.h:17,
               from /lib/modules/2.6.15.3/build/include/linux/thread_info.h:21
,
               from /lib/modules/2.6.15.3/build/include/linux/preempt.h:10,
               from /lib/modules/2.6.15.3/build/include/linux/spinlock.h:50,
               from /lib/modules/2.6.15.3/build/include/linux/capability.h:45,
               from /lib/modules/2.6.15.3/build/include/linux/sched.h:7,
               from /lib/modules/2.6.15.3/build/include/linux/module.h:10,
               from hermes.c:43:
/lib/modules/2.6.15.3/build/include/asm/system.h: In function `__set_64bit_var':
/lib/modules/2.6.15.3/build/include/asm/system.h:213: warning: dereferencing typ
e-punned pointer will break strict-aliasing rules
/lib/modules/2.6.15.3/build/include/asm/system.h:213: warning: dereferencing typ
e-punned pointer will break strict-aliasing rules
In file included from /lib/modules/2.6.15.3/build/include/linux/irq.h:22,
               from /lib/modules/2.6.15.3/build/include/asm/hardirq.h:6,
               from /lib/modules/2.6.15.3/build/include/linux/hardirq.h:7,
               from /lib/modules/2.6.15.3/build/include/linux/interrupt.h:11,
               from /lib/modules/2.6.15.3/build/include/linux/rcuref.h:36,
               from /lib/modules/2.6.15.3/build/include/linux/fs.h:12,
               from /lib/modules/2.6.15.3/build/include/linux/mm.h:15,
               from /lib/modules/2.6.15.3/build/include/linux/skbuff.h:26,
               from /lib/modules/2.6.15.3/build/include/linux/if_ether.h:109,
               from hermes.h:33,
               from hermes.c:53:
/lib/modules/2.6.15.3/build/include/asm/irq.h:16:25: irq_vectors.h: 没有那个文件
或目录
In file included from /lib/modules/2.6.15.3/build/include/asm/hardirq.h:6,
               from /lib/modules/2.6.15.3/build/include/linux/hardirq.h:7,
               from /lib/modules/2.6.15.3/build/include/linux/interrupt.h:11,
               from /lib/modules/2.6.15.3/build/include/linux/rcuref.h:36,
               from /lib/modules/2.6.15.3/build/include/linux/fs.h:12,
               from /lib/modules/2.6.15.3/build/include/linux/mm.h:15,
               from /lib/modules/2.6.15.3/build/include/linux/skbuff.h:26,
               from /lib/modules/2.6.15.3/build/include/linux/if_ether.h:109,
               from hermes.h:33,
               from hermes.c:53:
/lib/modules/2.6.15.3/build/include/linux/irq.h: At top level:
/lib/modules/2.6.15.3/build/include/linux/irq.h:85: error: `NR_IRQS' undeclared
here (not in a function)
In file included from /lib/modules/2.6.15.3/build/include/linux/irq.h:94,
               from /lib/modules/2.6.15.3/build/include/asm/hardirq.h:6,
               from /lib/modules/2.6.15.3/build/include/linux/hardirq.h:7,
               from /lib/modules/2.6.15.3/build/include/linux/interrupt.h:11,
               from /lib/modules/2.6.15.3/build/include/linux/rcuref.h:36,
               from /lib/modules/2.6.15.3/build/include/linux/fs.h:12,
               from /lib/modules/2.6.15.3/build/include/linux/mm.h:15,
               from /lib/modules/2.6.15.3/build/include/linux/skbuff.h:26,
               from /lib/modules/2.6.15.3/build/include/linux/if_ether.h:109,
               from hermes.h:33,
               from hermes.c:53:
/lib/modules/2.6.15.3/build/include/asm/hw_irq.h:30: error: `NR_IRQ_VECTORS' und
eclared here (not in a function)
In file included from hermes.c:53:
hermes.h: In function `hermes_present':
hermes.h:369: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.h: In function `hermes_set_irqmask':
hermes.h:375: warning: passing arg 2 of `writew' makes pointer from integer with
out a cast
hermes.h: In function `hermes_read_words':
hermes.h:418: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.h: In function `hermes_write_words':
hermes.h:438: warning: passing arg 2 of `writew' makes pointer from integer with
out a cast
hermes.c: In function `hermes_issue_cmd':
hermes.c:106: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.c:110: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.c:116: warning: passing arg 2 of `writew' makes pointer from integer with
out a cast
hermes.c:117: warning: passing arg 2 of `writew' makes pointer from integer with
out a cast
hermes.c:118: warning: passing arg 2 of `writew' makes pointer from integer with
out a cast
hermes.c:119: warning: passing arg 2 of `writew' makes pointer from integer with
out a cast
hermes.c: In function `hermes_init':
hermes.c:151: warning: passing arg 2 of `writew' makes pointer from integer with
out a cast
hermes.c:152: warning: passing arg 2 of `writew' makes pointer from integer with
out a cast
hermes.c:161: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.c:169: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.c:178: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.c:179: warning: passing arg 2 of `writew' makes pointer from integer with
out a cast
hermes.c:191: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.c:196: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.c:199: warning: passing arg 2 of `writew' makes pointer from integer with
out a cast
hermes.c:216: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.c:218: warning: passing arg 2 of `writew' makes pointer from integer with
out a cast
hermes.c: In function `hermes_docmd_wait':
hermes.c:253: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.c:258: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.c:277: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.c:280: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.c:281: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.c:282: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.c:285: warning: passing arg 2 of `writew' makes pointer from integer with
out a cast
hermes.c: In function `hermes_allocate':
hermes.c:308: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.c:313: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.c:330: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.c:331: warning: passing arg 2 of `writew' makes pointer from integer with
out a cast
hermes.c: In function `hermes_bap_seek':
hermes.c:355: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.c:359: warning: passing arg 1 of `readw' makes pointer from integer witho
ut a cast
hermes.c:379: warning: passing arg 2 of `writew' makes pointer from integer with
out a cast
hermes.c:380: warning: passing arg 2 of `writew' makes pointer from integer with                                                                                                                   out a cast
hermes.c:384: warning: passing arg 1 of `readw' makes pointer from integer witho                                                                                                                   ut a cast
hermes.c:388: warning: passing arg 1 of `readw' makes pointer from integer witho                                                                                                                   ut a cast
hermes.c: In function `hermes_read_ltv':
hermes.c:482: warning: passing arg 1 of `readw' makes pointer from integer witho                                                                                                                   ut a cast
hermes.c:483: warning: passing arg 1 of `readw' makes pointer from integer witho                                                                                                                   ut a cast
hermes.c: In function `hermes_write_ltv':
hermes.c:520: warning: passing arg 2 of `writew' makes pointer from integer with                                                                                                                   out a cast
hermes.c:521: warning: passing arg 2 of `writew' makes pointer from integer with                                                                                                                   out a cast
make: *** 错误 1
页: [1]
查看完整版本: 编译orinoco-0.13b出现错误