root@sangoma:/usr/src/zaptel-1.0.7# make cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o gendigits.o gendigits.c cc -o gendigits gendigits.o -lm ./gendigits gcc -I/usr/src/linux-2.4/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/usr/src/linux/drivers/net -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I /usr/src/linux/include -I/usr/src/linux/include/net -DSTANDALONE_ZAPATA -c zaptel.c In file included from /usr/src/linux/include/asm/processor.h:18, from /usr/src/linux/include/asm/thread_info.h:17, from /usr/src/linux/include/linux/thread_info.h:21, from /usr/src/linux/include/linux/spinlock.h:12, from /usr/src/linux/include/linux/capability.h:45, from /usr/src/linux/include/linux/sched.h:7, from /usr/src/linux/include/linux/module.h:10, from zaptel.c:44: /usr/src/linux/include/asm/system.h: In function `__set_64bit_var': /usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules /usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules In file included from /usr/src/linux/include/asm/smp.h:18, from /usr/src/linux/include/linux/smp.h:19, from /usr/src/linux/include/linux/sched.h:25, from /usr/src/linux/include/linux/module.h:10, from zaptel.c:44: /usr/src/linux/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory In file included from /usr/src/linux/include/asm/smp.h:18, from /usr/src/linux/include/linux/smp.h:19, from /usr/src/linux/include/linux/sched.h:25, from /usr/src/linux/include/linux/module.h:10, from zaptel.c:44: /usr/src/linux/include/asm/mpspec.h: At top level: /usr/src/linux/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type' /usr/src/linux/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type' /usr/src/linux/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus' /usr/src/linux/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus' In file included from /usr/src/linux/include/asm/smp.h:20, from /usr/src/linux/include/linux/smp.h:19, from /usr/src/linux/include/linux/sched.h:25, from /usr/src/linux/include/linux/module.h:10, from zaptel.c:44: /usr/src/linux/include/asm/io_apic.h:158: error: `MAX_IRQ_SOURCES' undeclared here (not in a function) /usr/src/linux/include/asm/io_apic.h:158: error: conflicting types for `mp_irqs' /usr/src/linux/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs' In file included from /usr/src/linux/include/linux/smp.h:19, from /usr/src/linux/include/linux/sched.h:25, from /usr/src/linux/include/linux/module.h:10, from zaptel.c:44: /usr/src/linux/include/asm/smp.h:73:26: mach_apicdef.h: No such file or directory In file included from /usr/src/linux/include/linux/smp.h:19, from /usr/src/linux/include/linux/sched.h:25, from /usr/src/linux/include/linux/module.h:10, from zaptel.c:44: /usr/src/linux/include/asm/smp.h: In function `hard_smp_processor_id': /usr/src/linux/include/asm/smp.h:77: warning: implicit declaration of function `GET_APIC_ID' zaptel.c: At top level: zaptel.c:167: warning: `fcstab' defined but not used make: *** [zaptel.o] Error 1 root@sangoma:/usr/src/zaptel-1.0.7#