Been trying to get a lkm compiled on Zaurus on -current
However the following errors appear
when compiling with

gcc  -Wall -D_KERNEL -I/sys -c wafter.c

----------errors-----------------------
In file included from /usr/include/arm/cpu.h:89,
                 from /usr/include/machine/cpu.h:4,
                 from /usr/include/arm/param.h:198,
                 from /usr/include/machine/param.h:46,
                 from /sys/sys/param.h:95,
                 from wafter.c:40:
/usr/include/arm/cpuconf.h:101:2: #error ARM_NARCH is 0
/usr/include/arm/cpuconf.h:149:2: #error ARM_NMMUS is 0
In file included from /usr/include/arm/cpu.h:91,
                 from /usr/include/machine/cpu.h:4,
                 from /usr/include/arm/param.h:198,
                 from /usr/include/machine/param.h:46,
                 from /sys/sys/param.h:95,
                 from wafter.c:40:
/usr/include/machine/intr.h:125:36: arm/xscale/pxa2x0_intr.h: No such file or directory
In file included from wafter.c:41:
/sys/sys/systm.h:120:2: #error "what byte order is this machine?"
In file included from /sys/netinet/in_pcb.h:71,
                 from wafter.c:55:
/sys/netinet/ip_ipsp.h:436:2: #error "Please fix <machine/endian.h>"
wafter.c: In function `wafter_handler':
wafter.c:113: warning: implicit declaration of function `_splraise'
wafter.c:120: warning: implicit declaration of function `splx'
wafter.c: In function `new_tcp_input':
wafter.c:182: warning: implicit declaration of function `ntohs'
wafter.c:243: warning: unused variable `icp'
wafter.c:245: warning: unused variable `icmplen'
wafter.c:247: warning: unused variable `code'
wafter.c: In function `new_udp_input':
wafter.c:281: error: structure has no member named `ip_v'
wafter.c:293: warning: unsigned int format, long unsigned int arg (arg 2) wafter.c:293: warning: unsigned int format, long unsigned int arg (arg 3)

----------------errors--------------------

This works fine on current for i386

-Ober

Reply via email to