[SR-Users] kamailio 5.1 from git compile error

Social Boh social at bohboh.info
Wed Jan 17 21:57:38 CET 2018


Hello Abdul,

check src/modules.lst

file

exclude_modules=

line must contain:

phonenum

phonenum is the new module present from 5.1 Kamailio version and depend
on libphonenumber library

https://kamailio.org/docs/modules/5.1.x/modules/phonenum.html

Regards

---
I'm SoCIaL, MayBe

El 17/01/2018 a las 15:40, Abdul Basit escribió:
> Hi Daniel,
>
> That's what i was thinking about phonenum module.
>
> I simply git clone form kamailio repo
>
> make cfg include_modules="utils app_lua db_postgres"
> make all
> make install
>
> Nothing else. I wonder why kamailio 5.1 want to use libphonenumber 
> where there was no such dependency for version 5.0.x
>
>
> --
> regards,
>
> abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445
>
> On 17 January 2018 at 19:22, Daniel-Constantin Mierla
> <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>
>     Hello,
>
>     how did you compile kamailio? The phonenum module should not be
>     compiled by default, only on demand...
>
>     Cheers,
>     Daniel
>
>
>     On 16.01.18 17:27, Abdul Basit wrote:
>>     Hi,
>>
>>     I am able to compile kamailio 5.1 now.
>>
>>     Added libphonenumber repo for latest debian packages
>>
>>     echo “deb http://ftp.de.debian.org/debian
>>     <http://ftp.de.debian.org/debian> sid main” >>
>>     /etc/apt/sources.list.d/libphonenumber7.list
>>
>>     apt-get update && apt-get upgrade
>>
>>     Additional updated packages and dependencies to install are
>>
>>     apt install libphonenumber7 libphonenumber-dev libicu57
>>     libprotobuf10 libstdc++6 libgeocoding7 libboost-date-time1.62.0
>>     libboost-filesystem1.62.0 libboost-system1.62.0
>>     libboost-thread1.62.0 libboost-thread-dev
>>
>>     apt install libprotobuf-dev
>>
>>     Once done, kamailio 5.1 was compiled successfully.
>>     I hope this will make someone's life easier.
>>
>>     --
>>     regards,
>>
>>     abdul basit
>>
>>
>>     On 16 January 2018 at 18:48, Abdul Basit <basit.engg at gmail.com
>>     <mailto:basit.engg at gmail.com>> wrote:
>>
>>         Hi,
>>
>>         I am trying to compile kamailio 5.1 from git following
>>         https://kamailio.org/docs/tutorials/5.1.x/kamailio-install-guide-git/
>>         <https://kamailio.org/docs/tutorials/5.1.x/kamailio-install-guide-git/>
>>          
>>         on Debian GNU/Linux 8.10 (jessie)
>>
>>         I also installed packages after getting dependency errors
>>         apt-get install libhiredis-dev libphonenumber6-dev libicu-dev
>>
>>         apt-get install unicode unicode-data
>>
>>         Kamailio compile stopped at error
>>         .....
>>         LD (gcc) [M uid_avp_db.so]              uid_avp_db.so
>>         CC (gcc) [M pdb.so]             pdb.o
>>         LD (gcc) [M pdb.so]             pdb.so
>>         CC (gcc) [M phonenum.so]                phonenum_mod.o
>>         CC (gcc) [M phonenum.so]                phonenum_pv.o
>>         Compiling cphonenumber.cpp
>>         g++ -fPIC -DPIC -g -funroll-loops -Wcast-align -m64
>>         -minline-all-stringops -falign-loops -ftree-vectorize
>>         -fno-strict-overflow -Wall -Wno-write-strings -Wno-deprecated
>>         -Wno-unused-f
>>         unction -Wno-sign-compare -Wno-strict-aliasing -fPIC -DPIC -g
>>         -funroll-loops -Wcast-align -m64 -minline-all-stringops
>>         -falign-loops -ftree-vectorize -fno-strict-overflow -Wall  -DNA
>>         ME='"kamailio"' -DVERSION='"5.1.0"' -DARCH='"x86_64"'
>>         -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.9.2"'
>>         -D__CPU_x86_64 -D__OS_linux -DSER_VER=5001000
>>         -DCFG_DIR='"/usr/loc
>>         al/etc/kamailio/"' -DRUN_DIR='"/var/run/kamailio/"'
>>         -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_MCAST
>>         -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE
>>         -DUSE_DNS
>>         _FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP
>>         -DMEM_JOIN_FREE -DF_MALLOC -DQ_MALLOC -DTLSF_MALLOC
>>         -DDBG_SR_MEMORY -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS
>>         -DSTATISTICS -DMALLO
>>         C_STATS -DWITH_AS_SUPPORT -DUSE_SCTP -DFAST_LOCK
>>         -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM
>>         -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD
>>         -DHAVE_MSG_
>>         NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H
>>         -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DHAVE_IP_MREQN
>>         -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND
>>         -DUSE_FUTEX -DHAVE_SE
>>         LECT  -I/opt/local/include -DKAMAILIO_MOD_INTERFACE
>>         -DMOD_NAME='"phonenum"' -c cphonenumber.cpp -o cphonenumber.o
>>         In file included from
>>         /usr/include/phonenumbers/geocoding/phonenumber_offline_geocoder.h:26:0,
>>                          from cphonenumber.cpp:24:
>>         /usr/include/phonenumbers/base/memory/scoped_ptr.h:25:45:
>>         fatal error: phonenumbers/base/template_util.h: No such file
>>         or directory
>>          #include "phonenumbers/base/template_util.h"
>>                                                      ^
>>         compilation terminated.
>>         Makefile:22: recipe for target 'cphonenumber.o' failed
>>         make[2]: *** [cphonenumber.o] Error 1
>>         Makefile:511: recipe for target 'modules' failed
>>         make[1]: *** [modules] Error 1
>>         make[1]: Leaving directory '/usr/local/src/kamailio/src'
>>         Makefile:27: recipe for target 'all' failed
>>         make: *** [all] Error 2
>>
>>         I googled but couldnt found any resolution or required
>>         dependency. Its look like libphonenumber is broken.
>>
>>         Kindly suggest way out.
>>
>>         Also i don't require libphonenumber for this server. How to
>>         get rid off.
>>
>>
>>         --
>>         regards,
>>
>>         abdul basit
>>
>>
>>
>>
>>     _______________________________________________
>>     Kamailio (SER) - Users Mailing List
>>     sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
>>     https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>     <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
>
>     -- 
>     Daniel-Constantin Mierla
>     www.twitter.com/miconda <http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda>
>     Kamailio Advanced Training - March 5-7, 2018, Berlin - www.asipto.com <http://www.asipto.com>
>     Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com <http://www.kamailioworld.com>
>
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180117/1f6d1254/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x35793C51.asc
Type: application/pgp-keys
Size: 3147 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180117/1f6d1254/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180117/1f6d1254/attachment.sig>


More information about the sr-users mailing list