[Asterisk-Users] Conference Server

pesb pesb at conexion.com.py
Tue Jun 1 09:28:14 MST 2004


Hi,

> First, open your eyes and read the messages. Second use google. Google
> is there for just such a problem. Visit this url and marvel at how easy
> it is to ask google a question.
> http://tinyurl.com/2ajso
>
> I responded to a message not but half a month ago to tell the person to
> do the same thing. Install the kernel source.

Sorry to bother you with my questions.
I've installed the kernel source code. Compiled it and it runned smoothly. I 
have installed linux-2.4.22-1.2115.nptl  and linux-2.6.6 sources.

But, when I try to compile zaptelrtc with 2.6.6 I get the following error 
message:

[root at musashi zaptelrtc]# make
cc -c zaprtc.c -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -O2 
-Wall -I/usr/src/linux/include  -Wall
In file included from /usr/src/linux/include/asm/processor.h:18,
                 from /usr/src/linux/include/asm/thread_info.h:16,
                 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 zaprtc.c:60:
/usr/src/linux/include/asm/system.h: En la función `__set_64bit_var':
/usr/src/linux/include/asm/system.h:193: aviso: dereferencing type-punned 
pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:193: aviso: dereferencing type-punned 
pointer will break strict-aliasing rules
En el fichero incluído de /usr/src/linux/include/asm/smp.h:18,
                 de /usr/src/linux/include/linux/smp.h:17,
                 de /usr/src/linux/include/linux/sched.h:23,
                 de /usr/src/linux/include/linux/module.h:10,
                 de zaprtc.c:60:
/usr/src/linux/include/asm/mpspec.h:6:25: mach_mpspec.h: No existe el fichero 
o el directorio
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 zaprtc.c:60:
/usr/src/linux/include/asm/mpspec.h: En el nivel principal:
/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:43: error: `MAX_APICS' undeclared here 
(not in a function)
"and the error output continues..."

and when I try to compile it with 2.4.22-1.2115.nptl, I get this error output

[root at musashi zaptelrtc]# make
cc -c zaprtc.c -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -O2 
-Wall -I/usr/src/linux/include  -Wall -DMODVERSIONS -include 
/usr/src/linux/include/linux/modversions.h
En el fichero incluído de /usr/src/linux/include/linux/spinlock.h:56,
                 de /usr/src/linux/include/linux/module.h:11,
                 de zaprtc.c:60:
/usr/src/linux/include/asm/spinlock.h:9:12: sufijo "b7d4074" inválido en la 
constante entera
In file included from /usr/src/linux/include/linux/spinlock.h:56,
                 from /usr/src/linux/include/linux/module.h:11,
                 from zaprtc.c:60:
/usr/src/linux/include/asm/spinlock.h:9: error: error sintáctico before 
numeric constant
/usr/src/linux/include/asm/spinlock.h:10: error: `printk_R_ver_str' declared 
as function returning a function
In file included from /usr/src/linux/include/linux/prefetch.h:13,
                 from /usr/src/linux/include/linux/list.h:6,
                 from /usr/src/linux/include/linux/module.h:12,
                 from zaprtc.c:60:
/usr/src/linux/include/asm/processor.h:60: aviso: nombres de parámetros (sin 
tipos) en la declaración de la función
/usr/src/linux/include/asm/processor.h:60: error: field 
`loops_per_jiffy_R_ver_str' declared as a function
"and the error output continues..."

I've 
read(http://lists.digium.com/pipermail/asterisk-users/2004-May/046197.html) 
and saw that you mentioned something about having the proper modversions.h 
built. What do you mean by that?
Hope someone could help me out here. You may notice I am not a Linux expert, 
just a simple user.

      thanks everybody,
                                    Pablo S.




More information about the asterisk-users mailing list