[SR-Users] kamailio rpm build

Min Wang ser.basis at gmail.com
Sun Apr 1 01:34:35 CEST 2012


HI

I tried to build Kamailio 3.2.2 rpm pkg on Centos 6.2

following instruction from:
http://kb.asipto.com/kamailio:install:3.1.x-rpms-centos5x

I got the following error ( at the end of the email)

also tried:
pkg-config --cflags glib-2.0
export C_INCLUDE_PATH="/usr/include/glib-2.0 /usr/lib64/glib-2.0/include"
export CPLUS_INCLUDE_PATH="/usr/include/glib-2.0 
/usr/lib64/glib-2.0/include"

the try to build again, got the same error.

anything could be wrong?

thanks.

min


//////////////////////////////////////////////////////////
+ make every-module group_include=kpurple
CC (gcc) [M purple.so]        clientaccount.o
In file included from /usr/include/glib-2.0/glib/galloca.h:34,
                  from /usr/include/glib-2.0/glib.h:32,
                  from /usr/include/libpurple/account.h:30,
                  from clientaccount.c:21:
/usr/include/glib-2.0/glib/gtypes.h:410:2: error: #error unknown ENDIAN 
type
In file included from /usr/include/glib-2.0/glib.h:33,
                  from /usr/include/libpurple/account.h:30,
                  from clientaccount.c:21:
/usr/include/glib-2.0/glib/garray.h:50: error: expected 
specifier-qualifier-list before 'guint8'
/usr/include/glib-2.0/glib/garray.h:152: error: expected '=', ',', ';', 
'asm' or '__attribute__' before '*' token
/usr/include/glib-2.0/glib/garray.h:157: error: expected ';', ',' or ')' 
before '*' token
/usr/include/glib-2.0/glib/garray.h:160: error: expected ';', ',' or ')' 
before '*' token
In file included from /usr/include/glib-2.0/glib/gerror.h:30,
                  from /usr/include/glib-2.0/glib/gthread.h:34,
                  from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                  from /usr/include/glib-2.0/glib.h:34,
                  from /usr/include/libpurple/account.h:30,
                  from clientaccount.c:21:
/usr/include/glib-2.0/glib/gquark.h:38: error: expected '=', ',', ';', 
'asm' or '__attribute__' before 'GQuark'
/usr/include/glib-2.0/glib/gquark.h:42: error: expected '=', ',', ';', 
'asm' or '__attribute__' before 'g_quark_try_string'
/usr/include/glib-2.0/glib/gquark.h:43: error: expected '=', ',', ';', 
'asm' or '__attribute__' before 'g_quark_from_static_string'
/usr/include/glib-2.0/glib/gquark.h:44: error: expected '=', ',', ';', 
'asm' or '__attribute__' before 'g_quark_from_string'
/usr/include/glib-2.0/glib/gquark.h:45: error: expected ')' before 'quark'
In file included from /usr/include/glib-2.0/glib/gthread.h:34,
....




More information about the sr-users mailing list