[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sr-users
Subject:    Re: [SR-Users] Contents of sr-users digest...
From:       Stuart Feeser <sfeeser () gmail ! com>
Date:       2014-01-28 16:54:44
Message-ID: CAK4yGBipBZ0aTbEfaGxCvnH-BBDPU7HOnJx7tvkvChYfW1mcxg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Regarding the sem_post problem, here is an old email from Tomasz
Gebarowski which is interesting because it states that he had a
sem_post issue with cdp.so which he solved by modifying the
modules/cdp/Makefile. Now if we skip forward to right now, I notice that
cdp.so COMPILE and LINKS for me with no errors and I also notice that
Tomasz' fix is in place, but other ims modules that also use semaphore do
NOT link properly for me in ubuntu and are exhibiting the same *undefined
symbol: sem_post* error Tomasz had years ago in his ubuntu compiles. I
think (hope) this may be more than coincidence that these things are
related??? I have tried Tomasz' fix with an ubuntu compile but I still get
the sem_post error. I still think he is on to something here and I am NOT
modifying the Makefile correctly. Any suggestions on specifics to test this
theory are greatly welcome. Here is Tomansz' email.....
----------------------------------------------------------------------------------------------------------------------
 https://lists.berlios.de/pipermail/openimscore-users/2011-December/007219.html
[OpenIMSCore-Users] PROBLEM WITH ICSCF AND SCSCF STARTING
Tomasz Gebarowski gebarowski at gmail.com
Thu Dec 29 22:19:55 CET 2011
Previous message: [OpenIMSCore-Users] Fwd: How are you...
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
I've just googled some old post from October 2011, describing an issue
with crashing I-CSCF and S-CSCF. The log message was something like:

 0(2142) ERROR: load_module: could not open module /opt/OpenIMSCore/ser_ims/
 modules/cdp/cdp.so>: /opt/OpenIMSCore/ser_ims/modules/cdp/cdp.so:
undefined symbol: sem_post

I managed to fix this issue on Ubuntu 11.10. It seems that UBUNTU,
required linking cdp.so against pthread. Below you can find a simple patch:

Index: modules/cdp/Makefile
===================================================================
--- Makefile    (revision 1175)
+++ Makefile    (working copy)
@@ -20,7 +20,7 @@
  endif

  DEFS += -I/usr/include/libxml2
-LIBS += -L$(LOCALBASE)/lib -lxml2 -lrt
+LIBS += -L$(LOCALBASE)/lib -lxml2 -lrt -lpthread

  include ../../Makefile.modules
===================================================================
Regards,
Stuart Feeser


[Attachment #5 (text/html)]

<div dir="ltr">Regarding the sem_post problem, here is an old email from Tomasz \
Gebarowski which is interesting because it states that he had a sem_post issue with \
cdp.so which he solved by modifying the modules/cdp/Makefile. Now if we skip forward \
to right now, I notice that cdp.so COMPILE and LINKS for me with no errors and I also \
notice that Tomasz&#39; fix is in place, but other ims modules that also use \
semaphore do NOT link properly for me in ubuntu and are exhibiting the same \
*undefined symbol: sem_post* error Tomasz had years ago in his ubuntu compiles. I \
think (hope) this may be more than coincidence that these things are related??? I \
have tried Tomasz&#39; fix with an ubuntu compile but I still get the sem_post error. \
I still think he is on to something here and I am NOT modifying the Makefile \
correctly. Any suggestions on specifics to test this theory are greatly welcome. Here \
                is Tomansz&#39; email.....  <div>
----------------------------------------------------------------------------------------------------------------------</div><div><div><a \
href="https://lists.berlios.de/pipermail/openimscore-users/2011-December/007219.html"> \
https://lists.berlios.de/pipermail/openimscore-users/2011-December/007219.html</a></div>
 <div>[OpenIMSCore-Users] PROBLEM WITH ICSCF AND SCSCF STARTING<br></div><div>Tomasz \
Gebarowski gebarowski at <a href="http://gmail.com">gmail.com</a> <br></div><div>Thu \
Dec 29 22:19:55 CET 2011</div><div>Previous message: [OpenIMSCore-Users] Fwd: How are \
you...</div> <div>Messages sorted by: [ date ] [ thread ] [ subject ] [ author \
]</div><div>Hello,</div><div>I&#39;ve just googled some old post from October 2011, \
describing an issue <br></div><div>with crashing I-CSCF and S-CSCF. The log message \
was something like:</div> <div><br></div><div> 0(2142) ERROR: load_module: could not \
open module /opt/OpenIMSCore/ser_ims/</div><div> modules/cdp/cdp.so&gt;: \
/opt/OpenIMSCore/ser_ims/modules/cdp/cdp.so: undefined symbol: \
sem_post</div><div><br></div> <div>I managed to fix this issue on Ubuntu 11.10. It \
seems that UBUNTU,</div><div>required linking cdp.so against pthread. Below you can \
find a simple patch:</div><div><br></div><div>Index: modules/cdp/Makefile</div><div> \
===================================================================</div><div>--- \
Makefile    (revision 1175)</div><div>+++ Makefile    (working copy)</div><div>@@ \
-20,7 +20,7 @@</div><div>  endif</div><div><br></div><div>  DEFS += \
-I/usr/include/libxml2</div><div>-LIBS += -L$(LOCALBASE)/lib -lxml2 \
-lrt</div><div>+LIBS += -L$(LOCALBASE)/lib -lxml2 -lrt \
-lpthread</div><div><br></div><div>  include \
../../Makefile.modules</div></div><div>===================================================================</div>
 <div>Regards,</div><div>Stuart Feeser</div><div><br></div></div>



_______________________________________________
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic