<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>Hello,</p>
<p><br>
</p>
<p>what operating system do you use? Isn't the libphonenumber
packaged there? Should be easier if you install from packages.<br>
</p>
<p><br>
</p>
<p>Otherwise, have you installed the libphonenumber in the system?
The commands shown suggest only compilation and testing in the
source code library.</p>
<p><br>
</p>
<p>On the other hand, not that kamailio 5.1 is out of maintenance
time frame, you better start with 5.3 at this moment.</p>
<p><br>
</p>
<p>Cheers,<br>
Daniel</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 19.04.20 17:46, Edward Romanenco
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:AM0PR04MB66924735A920D4E8B3E39BD7C7D70@AM0PR04MB6692.eurprd04.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
Hi, I'm trying to add the PHONENUM module into my Kamailio
installation. For this, I've cloned the main branch of
<a
href="https://github.com/google/libphonenumber/tree/master/cpp"
title="https://github.com/google/libphonenumber/tree/master/cpp"
moz-do-not-send="true">
Libphonenumber</a> and followed the installation rules as they
appear in the relevant README file:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<span><i>Building and testing the library<br>
</i></span>
<div><i>--------------------------------<br>
</i></div>
<div><i> $ cd libphonenumber/cpp<br>
</i></div>
<div><i> $ mkdir build<br>
</i></div>
<div><i> $ cd build<br>
</i></div>
<div><i> $ cmake ..<br>
</i></div>
<div><i> $ make<br>
</i></div>
<div><i> $ ./libphonenumber_test</i><br>
</div>
<span></span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
It all went through and the library was created, but when I try
to make and install the module itself, I'm getting the following
error. Looks like the library wasn't included in the building
context, can you please lend me a hand and tell me how do I
include it?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<span><i><a class="moz-txt-link-abbreviated" href="mailto:root@kamaillioegress:/usr/local/src/kamailio-5.1/kamailio/src/modules/phonenum#">root@kamaillioegress:/usr/local/src/kamailio-5.1/kamailio/src/modules/phonenum#</a>
make<br>
</i></span>
<div><i>Compiling cphonenumber.cpp<br>
</i></div>
<div><i>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-function -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
-DNAME='"kamailio"' -DVERSION='"5.2.0-dev6"'
-DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"'
-DCOMPILER='"gcc 5.4.0"' -D__CPU_x86_64 -D__OS_linux
-DVERSIONVAL=5002000
-DCFG_DIR='"/usr/local/kamailio-5.1/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 -DMALLOC_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 -DUSE_RAW_SOCKS -DHAVE_EPOLL -DHAVE_SIGIO_RT
-DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT
-I/opt/local/include -DKAMAILIO_MOD_INTERFACE
-DMOD_NAME='"phonenum"' -c cphonenumber.cpp -o
cphonenumber.o<br>
</i></div>
<div><i>cphonenumber.cpp:24:65: fatal error:
phonenumbers/geocoding/phonenumber_offline_geocoder.h: No
such file or directory<br>
</i></div>
<div><i>compilation terminated.<br>
</i></div>
<div><i>Makefile:22: recipe for target 'cphonenumber.o' failed<br>
</i></div>
<div><i>make: *** [cphonenumber.o] Error 1</i><br>
</div>
<span></span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
Edward</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a></pre>
</body>
</html>