<div dir="ltr">
<div>Hello Henning,</div><div><br></div><div>thanks a lot for your 
response and explanation. strutils.[c,h] and strcommon.[c,h] are almost 
the same. So I modified my included header from stcommon[] to strutils 
as you mentioned.</div><div>Unfortunately, I surfed sequentially 
Kamailio version upgrades. Even though, i did not found such hints about
 this modification. So I have some doubts the called headers and codes 
from our own module. Hence, I am asking for yor advice.</div><div><br></div><div>What
 I am trying to do now is compiliing our module separately under it is 
own directory so I gain the Shared Object file (.so). Somehow our Module
 is requring cds, presence and xcap libraries. But the strange thing is 
that headers from these libraries are #including other headers assuming 
these included header files are under the same library's directory (but 
in fact most of the header files are under ../src/core/). For example :<br></div><div><br></div><div>Making  in cds<br>CC (gcc) [L libser_cds.so.0.1]          cds.o<br>In file included from cds.c:2:<br>/Abdul/install/clean_test/<wbr>kamailio-5.1.4/src/lib/cds/../<wbr>cds/memory.h:125:21: warning: mem/mem.h: No such file or directory<br>/Abdul/install/clean_test/<wbr>kamailio-5.1.4/src/lib/cds/../<wbr>cds/memory.h:126:25: warning: mem/shm_mem.h: No such file or directory<br>In file included from cds.c:3:<br>/Abdul/install/clean_test/<wbr>kamailio-5.1.4/src/lib/cds/../<wbr>cds/sync.h:30:22: warning: locking.h: No such file or directory<br>In file included from cds.c:4:<br>/Abdul/install/clean_test/<wbr>kamailio-5.1.4/src/lib/cds/../<wbr>cds/logger.h:42:20: error: dprint.h: No such file or directory<br>make[2]: *** [cds.o] Error 1<br>make[1]: [cds] Error 2 (ignored)<br><br></div><div><br></div><div>Those
 libraries are delivered with version 5.1.4 itself so i do not think it 
is a good idea to modify the paths of the included header files to 
compile my module. because most probably these libraries are needed by 
standard default modules of kamailio.</div><div><br></div><div>I hope this is not too much for you to inspect. <br></div><div>Note: The attached has the log files (
 
resulting 

from make all and install 

) .<br></div><div><br></div><div>Your kind response is highly appreciated</div><div class="gmail-yj6qo gmail-ajU"><div id="gmail-:14e" class="gmail-ajR" tabindex="0"><img class="gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div><div>

BR</div><div>Abdulaziz<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 9, 2018 at 11:31 AM, Abdulaziz Alghosh <span dir="ltr"><<a href="mailto:aziz647@gmail.com" target="_blank">aziz647@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello Henning,</div><div><br></div><div>thanks a lot for your response and explanation. strutils.[c,h] and strcommon.[c,h] are almost the same. So I modified my included header from stcommon[] to strutils as you mentioned.</div><div>Unfortunately, I surfed sequentially Kamailio version upgrades. Even though, i did not found such hints about this modification. So I have some doubts the called headers and codes from our own module. Hence, I am asking for yor advice.</div><div><br></div><div>What I am trying to do now is compiliing our module separately under it is own directory so I gain the Shared Object file (.so). Somehow our Module is requring cds, presence and xcap libraries. But the strange thing is that headers from these libraries are #including other headers assuming these included header files are under the same library's directory (but in fact most of the header files are under ../src/core/). For example :<br></div><div><br></div><div>Making  in cds<br>CC (gcc) [L libser_cds.so.0.1]          cds.o<br>In file included from cds.c:2:<br>/Abdul/install/clean_test/<wbr>kamailio-5.1.4/src/lib/cds/../<wbr>cds/memory.h:125:21: warning: mem/mem.h: No such file or directory<br>/Abdul/install/clean_test/<wbr>kamailio-5.1.4/src/lib/cds/../<wbr>cds/memory.h:126:25: warning: mem/shm_mem.h: No such file or directory<br>In file included from cds.c:3:<br>/Abdul/install/clean_test/<wbr>kamailio-5.1.4/src/lib/cds/../<wbr>cds/sync.h:30:22: warning: locking.h: No such file or directory<br>In file included from cds.c:4:<br>/Abdul/install/clean_test/<wbr>kamailio-5.1.4/src/lib/cds/../<wbr>cds/logger.h:42:20: error: dprint.h: No such file or directory<br>make[2]: *** [cds.o] Error 1<br>make[1]: [cds] Error 2 (ignored)<br><br></div><div><br></div><div>Those libraries are delivered with version 5.1.4 itself so i do not think it is a good idea to modify the paths of the included header files to compile my module. because most probably these libraries are needed by standard default modules of kamailio.</div><div><br></div><div>I hope this is not too much for you to inspect. <br></div><div>Note: The attached has the log files (
 
resulting 

from make all and install 

) .<br></div><div><br></div><div>Your kind response is highly appreciated</div><span class="HOEnZb"><font color="#888888"><div>Abdulaziz<br></div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 9, 2018 at 8:11 AM, Henning Westerholt <span dir="ltr"><<a href="mailto:hw@kamailio.org" target="_blank">hw@kamailio.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Am Mittwoch, 8. August 2018, 17:47:07 CEST schrieb Abdulaziz Alghosh:<br>
> i am somehow newbie with Kamailio and trying to migrate from kamailio<br>
> version 3.0.3 to 5.1.4. Former fellows had developed own modules which<br>
> needed "strcommon.h" and "strcommon.c".<br>
> <br>
> These last two files are not delievered with version 5.1.4. but I copied<br>
> them under ../src/core/ thinking it would be beneficial. Unfortunately,<br>
> after make prefix / (and including our own module) all, it seem that<br>
> several dependencies exist. Especially from header files under<br>
> ..src/lib/xcap/ and ../src/lib/presence<br>
> <br>
> Can somebody tell me how "strcommon.h" and "strcommon.c"  where replaced in<br>
> version 5.1.4 ?<br>
<br>
</span>Hello Abdul,<br>
<br>
the functions in strcommon.[c,h] were moved into src/core/strutils.[c,h] in <br>
releases starting from 5.0. I'd suggest to have a look to the file to verify <br>
if there are no other changes.<br>
<br>
Best regards,<br>
<br>
Henning<br>
<span class="m_4447589821868188543HOEnZb"><font color="#888888">-- <br>
Henning Westerholt<br>
<a href="https://skalatan.de/blog/" rel="noreferrer" target="_blank">https://skalatan.de/blog/</a><br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>