[Asterisk-Users] Problems compiling zaprtc on 2.4.27 kernel

Geoff Nordli geoffn at gnaa.net
Sat Nov 27 18:12:17 MST 2004


Has anyone successfully compiled zaprtc on Debian Sarge using the 2.4.27
kernel.

I have a symbolic link from linux-2.4 to linux.

I compiled a new kernel from source and have been able to compile zaptel as
well.

The main error seems to be:  /usr/include/asm/mpspec.h:6:25: mach_mpspec.h:
No such file or directory

These are the errors that I am getting:

cc -c zaprtc.c -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer
-O2 -Wall -I/usr/src/linux/include -I../zaptel -Wall
In file included from /usr/include/asm/smp.h:18,
                 from /usr/include/linux/smp.h:17,
                 from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/module.h:10,
                 from zaprtc.c:60:
/usr/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from /usr/include/asm/smp.h:18,
                 from /usr/include/linux/smp.h:17,
                 from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/module.h:10,
                 from zaprtc.c:60:
/usr/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in
a function)
/usr/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in
a function)
/usr/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in
a function)
/usr/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in
a function)
/usr/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a
function)
/usr/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in
a function)
/usr/include/asm/mpspec.h:20: error: conflicting types for
`mp_bus_id_to_type'
/usr/include/asm/mpspec.h:8: error: previous declaration of
`mp_bus_id_to_type'
/usr/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not
in a function)
/usr/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in
a function)
/usr/include/asm/mpspec.h:24: error: conflicting types for
`mp_bus_id_to_pci_bus'
/usr/include/asm/mpspec.h:12: error: previous declaration of
`mp_bus_id_to_pci_bus'
/usr/include/asm/mpspec.h:54: error: `MAX_APICS' undeclared here (not in a
function)
In file included from /usr/include/asm/smp.h:20,
                 from /usr/include/linux/smp.h:17,
                 from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/module.h:10,
                 from zaprtc.c:60:
/usr/include/asm/io_apic.h:120: error: `MAX_IRQ_SOURCES' undeclared here
(not in a function)
/usr/include/asm/io_apic.h:120: error: conflicting types for `mp_irqs'
/usr/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
In file included from /usr/include/linux/smp.h:17,
                 from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/module.h:10,
                 from zaprtc.c:60:
/usr/include/asm/smp.h:73:26: mach_apicdef.h: No such file or directory
zaprtc.c: In function `rtc_ioctl':
zaprtc.c:441: warning: implicit declaration of function `BIN_TO_BCD'
zaprtc.c: In function `rtc_init':
zaprtc.c:808: warning: implicit declaration of function `request_irq'
zaprtc.c: In function `rtc_exit':
zaprtc.c:900: warning: implicit declaration of function `free_irq'
zaprtc.c: At top level:
zaprtc.c:907: warning: type defaults to `int' in declaration of
`EXPORT_NO_SYMBOLS'
zaprtc.c:907: warning: data definition has no type or storage class
zaprtc.c: In function `get_rtc_time':
zaprtc.c:1102: warning: implicit declaration of function `BCD_TO_BIN'
make: *** [zaprtc.o] Error 1


Thanks,

Geoff




More information about the asterisk-users mailing list