[Asterisk-Dev] kernel 2.6.4 compile problem

James Golovich james at wwnet.net
Wed Mar 17 01:18:23 MST 2004


That one looks like you are running make and not 'make linux26'
There is a README.Linux26 that says this in zaptel.  Beware that linux 2.6
support for zaptel is pretty new so there still could be some problems.

James

Not a -dev question. More of a -users question

On Wed, 17 Mar 2004, Tomaz wrote:

> hello!
> 
> I just get new asterisk on cvs in try to compile it, but got this errors 
> in zaptel.Asterisk,libpri and zapata compile is ok.
>  (kernel 2.6.4)
> 
> tomaz
> 
> 
> ---------------
> zaptel# make
> 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:13,
>                  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:17,
>                  from /usr/src/linux/include/linux/sched.h:23,
>                  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:17,
>                  from /usr/src/linux/include/linux/sched.h:23,
>                  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:19: error: `MAX_APICS' 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'
> /usr/src/linux/include/asm/mpspec.h:50: error: `MAX_APICS' undeclared 
> here (not in a function)
> In file included from /usr/src/linux/include/asm/smp.h:20,
>                  from /usr/src/linux/include/linux/smp.h:17,
>                  from /usr/src/linux/include/linux/sched.h:23,
>                  from /usr/src/linux/include/linux/module.h:10,
>                  from zaptel.c:44:
> /usr/src/linux/include/asm/io_apic.h:160: error: `MAX_IRQ_SOURCES' 
> undeclared here (not in a function)
> /usr/src/linux/include/asm/io_apic.h:160: 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:17,
>                  from /usr/src/linux/include/linux/sched.h:23,
>                  from /usr/src/linux/include/linux/module.h:10,
>                  from zaptel.c:44:
> /usr/src/linux/include/asm/smp.h:71:26: mach_apicdef.h: No such file or 
> directory
> In file included from /usr/src/linux/include/linux/smp.h:17,
>                  from /usr/src/linux/include/linux/sched.h:23,
>                  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:75: warning: implicit declaration of 
> function `GET_APIC_ID'
> make: *** [zaptel.o] Error 1
> 
> 
> 
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
> 




More information about the asterisk-dev mailing list