[SR-Users] kamailio rpm build
Daniel-Constantin Mierla
miconda at gmail.com
Tue Apr 3 12:10:15 CEST 2012
Hello,
the correct link for v3.2.x is:
https://build.opensuse.org/package/files?package=kamailio32&project=home%3Akamailio%3Atelephony
previous one was for v3.1.x.
Cheers,
Daniel
On 4/3/12 12:01 PM, Daniel-Constantin Mierla wrote:
> Hello,
>
> it seems that the rpm spec file is not updated -- the rtpproxy module
> has been moved to 'modules/' folder.
>
> I worked with a custom kamailio.spec, used for opensuse build service
> -- you can find it at:
>
> https://build.opensuse.org/package/files?package=kamailio&project=home%3Akamailio%3Atelephony
>
>
> Perhaps you can compare the paths from the printed errors and update
> your spec file.
>
> Cheers,
> Daniel
>
> On 4/3/12 4:57 AM, Min Wang wrote:
>> HI Daniel
>>
>> thanks.
>>
>> I removed the purple module, still got some errors:
>>
>>
>> diff kamailio.spec.CenOS kamailio.spec.CenOS.orig
>> 14a15
>> > %define PURPLE_MODULES purple
>> 169a171,179
>> > %package purple
>> > Summary: Provides the purple module, a multi-protocol IM gateway.
>> > Group: System Environment/Daemons
>> > Requires: kamailio = %ver
>> > BuildPrereq: libpurple-devel
>> >
>> > %description purple
>> > The kamailio-purple package provides the purple module, a
>> multi-protocol instant
>> > messaging gateway module.
>> 654a665,668
>> > %files purple
>> > %defattr(-,root,root)
>> > %doc %{_docdir}/kamailio/modules_k/README.purple
>> > %{_libdir}/kamailio/modules_k/purple.so
>>
>> /////////////////////////////error
>>
>> Processing files: kamailio-3.2.2-0.x86_64
>> error: File not found:
>> /home/xxx/rpmbuild/BUILDROOT/kamailio-3.2.2-0.x86_64/usr/share/doc/kamailio/modules_k/README.rtpproxy
>> error: File not found:
>> /home/xxx/rpmbuild/BUILDROOT/kamailio-3.2.2-0.x86_64/usr/lib64/kamailio/modules/privacy.so
>> error: File not found:
>> /home/xxx/rpmbuild/BUILDROOT/kamailio-3.2.2-0.x86_64/usr/lib64/kamailio/modules_k/rtpproxy.so
>>
>>
>> RPM build errors:
>> line 39: buildprereq is deprecated: BuildPrereq: make flex bison
>> pcre-devel
>> line 58: buildprereq is deprecated: BuildPrereq: mysql-devel
>> zlib-devel
>> line 70: buildprereq is deprecated: BuildPrereq: postgresql-devel
>> line 82: buildprereq is deprecated: BuildPrereq: unixODBC-devel
>> line 102: buildprereq is deprecated: BuildPrereq: libxml2-devel
>> line 112: buildprereq is deprecated: BuildPrereq:
>> radiusclient-ng-devel
>> line 123: buildprereq is deprecated: BuildPrereq:
>> lm_sensors-devel net-snmp-devel
>> line 134: buildprereq is deprecated: BuildPrereq: libxml2-devel,
>> curl-devel
>> line 144: buildprereq is deprecated: BuildPrereq: expat-devel
>> line 154: buildprereq is deprecated: BuildPrereq: openssl-devel
>> line 164: buildprereq is deprecated: BuildPrereq: libconfuse-devel
>> line 176: buildprereq is deprecated: BuildPrereq: openldap-devel
>> line 209: buildprereq is deprecated: BuildPrereq: mod_perl-devel
>> line 220: buildprereq is deprecated: BuildPrereq: lua-devel
>> line 230: buildprereq is deprecated: BuildPrereq: python-devel
>> line 240: buildprereq is deprecated: BuildPrereq: geoip-devel
>> File not found:
>> /home/xxx/rpmbuild/BUILDROOT/kamailio-3.2.2-0.x86_64/usr/share/doc/kamailio/modules_k/README.rtpproxy
>> File not found:
>> /home/xxx/rpmbuild/BUILDROOT/kamailio-3.2.2-0.x86_64/usr/lib64/kamailio/modules/privacy.so
>> File not found:
>> /home/xxx/rpmbuild/BUILDROOT/kamailio-3.2.2-0.x86_64/usr/lib64/kamailio/modules_k/rtpproxy.so
>>
>>
>> min
>>
>>
>>
>>
>> On 04/02/2012 04:59 AM, Daniel-Constantin Mierla wrote:
>>> 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 at 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/
More information about the sr-users
mailing list