Hello,

the problem is with purple module which works with an older version of libpurple.

You have to edit kamailio.spec file and remove the purple module from there.

Cheers,
Daniel

On 4/1/12 1:34 AM, Min Wang wrote:
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,
....


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

--
Daniel-Constantin Mierla
Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
http://www.asipto.com/index.php/kamailio-advanced-training/


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to