<div dir="ltr"><div dir="ltr"><div>Hi All,</div><div><br></div><div>Workaround given by Ben has done some part. Opensips 3.2.3 is compiled with latest openssl version 3.0.1 but still I am not able to run my configuration file. Errors coming like below:-</div><div><br></div><div><font face="arial narrow, sans-serif"><b>Jan 17 13:30:05 ip-192-168-0-56 opensips: ERROR:core:sr_load_module: could not open module </usr/local/lib64/opensips/modules/tls_openssl.so>: /usr/local/lib64/opensips/modules/tls_openssl.so: undefined symbol: OPENSSL_sk_num<br>Jan 17 13:30:05 ip-192-168-0-56 opensips: ERROR:core:load_module: failed to load module<br>Jan 17 13:30:05 ip-192-168-0-56 opensips: Traceback (last included file at the bottom):<br>Jan 17 13:30:05 ip-192-168-0-56 opensips: 0. /usr/local/etc/opensips/opensips_webrtc_proxy.cfg<br>Jan 17 13:30:05 ip-192-168-0-56 opensips: CRITICAL:core:yyerror: parse error in /usr/local/etc/opensips/opensips_webrtc_proxy.cfg:74:13-14: failed to load module tls_openssl.so</b></font><br></div><div><br></div><div>Could you please help us resolve this?</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Best Regards<div>Saurabh Chopra</div><div>+918861979979</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 15, 2022 at 9:27 PM Ben Newlin <<a href="mailto:Ben.Newlin@genesys.com">Ben.Newlin@genesys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="gmail-m_-9082434533227053921WordSection1">
<p class="MsoNormal">Apologies, I misspoke. It is not due to any change in OpenSIPS. It is caused by the change to openssl-1.1.1. We actually encountered the issue using OpenSIPS 2.4, which still uses the shared libraries<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="color:black">Ben Newlin </span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in">
<p class="MsoNormal" style="margin-bottom:12pt"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">Users <<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>> on behalf of Ben Newlin <<a href="mailto:Ben.Newlin@genesys.com" target="_blank">Ben.Newlin@genesys.com</a>><br>
<b>Date: </b>Saturday, January 15, 2022 at 10:54 AM<br>
<b>To: </b>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>>, Răzvan Crainea <<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>>, <a href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a> <<a href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a>><br>
<b>Subject: </b>Re: [OpenSIPS-Users] Facing some issue while running opensips 3.2 latest branch with openssl-1.1.1<u></u><u></u></span></p>
</div>
<p class="MsoNormal">We ran into this too. I assume it is due to the change from using openssl as a shared library to a statically linked one.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">We were able to resolve by setting the environment variable “LDFLAGS” to a value of “-pthread” before the make command.
<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">$ LDFLAGS=-pthread make …<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">or<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">$ export LDFLAGS=-pthread<u></u><u></u></p>
<p class="MsoNormal">$ make …<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I’m not a C expert, but that could possibly be added to the standard OpenSIPS build configuration.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="color:black">Ben Newlin </span><u></u><u></u></p>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in">
<p class="MsoNormal" style="margin-bottom:12pt"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">Users <<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>> on behalf of Saurabh Chopra <<a href="mailto:saurabhc@3clogic.com" target="_blank">saurabhc@3clogic.com</a>><br>
<b>Date: </b>Saturday, January 15, 2022 at 2:48 AM<br>
<b>To: </b>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>>, Răzvan Crainea <<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>>, <a href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a> <<a href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a>><br>
<b>Subject: </b>Re: [OpenSIPS-Users] Facing some issue while running opensips 3.2 latest branch with openssl-1.1.1</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Hi Opensips Team/ Razvan,<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks for the response, but when i tried to compile opensips version (3.2.3) with latest openssl version (3.0.1 14 Dec 2021) on Centos 7 machine, it throws me erros,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p class="MsoNormal"><b><span style="font-family:"Times New Roman",serif">Linking opensips<br>
main.o: In function `pthread_mutex_init':<br>
/opt/opensips-codechanged-3.2/ssl_tweaks.h:32: undefined reference to `pthread_mutexattr_setpshared'<br>
/opt/opensips-codechanged-3.2/ssl_tweaks.h:38: undefined reference to `pthread_mutexattr_destroy'<br>
/opt/opensips-codechanged-3.2/ssl_tweaks.h:26: undefined reference to `pthread_mutexattr_init'<br>
main.o: In function `pthread_rwlock_init':<br>
/opt/opensips-codechanged-3.2/ssl_tweaks.h:64: undefined reference to `pthread_rwlockattr_setpshared'<br>
/opt/opensips-codechanged-3.2/ssl_tweaks.h:70: undefined reference to `pthread_rwlockattr_destroy'<br>
/opt/opensips-codechanged-3.2/ssl_tweaks.h:58: undefined reference to `pthread_rwlockattr_init'<br>
collect2: error: ld returned 1 exit status</span></b><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><b><span style="font-family:"Times New Roman",serif">make: *** [opensips] Error 1</span></b> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Same errors found on the GITHUB ticket <u><a href="https://github.com/OpenSIPS/opensips/issues/2088" target="_blank">https://github.com/OpenSIPS/opensips/issues/2088</a>
</u>but the machine was Debian. And the package dependencies in the answer given by
<b>Liviu</b> let us install openssl version 1.0.2, which we don't want to, because if we do, it will compile the opensips with 1.0.2 openssl version.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Kindly help us in this matter, we are stuck here. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">Best Regards<u></u><u></u></p>
<div>
<p class="MsoNormal">Saurabh Chopra<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">+918861979979<u></u><u></u></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">On Mon, Jan 3, 2022 at 2:06 PM Răzvan Crainea <<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt">
<p class="MsoNormal">Hi, Sasmita!<br>
<br>
You probably compiled opensips 3.2 with a previous openssl version, then <br>
replaced it with the new one.<br>
You need to re-compile tls_openssl with the new version to get this fixed.<br>
<br>
Best regards,<br>
<br>
Răzvan Crainea<br>
OpenSIPS Core Developer<br>
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a><br>
<br>
On 12/21/21 12:30, Sasmita Panda wrote:<br>
> Hi All ,<br>
> <br>
> I have taken opensips 3.2 latest code and configure with tls_openssl to <br>
> support proto_tls proto_wss and tls_gm .<br>
> I have installed openssl-1.1.1 . (Rtpeninge latest branch is not <br>
> suported with older version of openssl , so I have taken the newer <br>
> version here )<br>
> <br>
> <br>
> Installation is successful . While running the opensips process I am <br>
> getting the below error .<br>
> *ERROR:core:sr_load_module: could not open module <br>
> </usr/local/lib64/opensips/modules/auth.so>: <br>
> /usr/local/lib64/opensips/modules/auth.so: undefined symbol: EVP_MD_CTX_free<br>
> ERROR:core:load_module: failed to load module<br>
> Traceback (last included file at the bottom):<br>
> 0. /usr/local/etc/opensips/opensips_webrtc_reg.cfg<br>
> CRITICAL:core:yyerror: parse error in <br>
> /usr/local/etc/opensips/opensips_webrtc_reg.cfg:134:13-14: failed to <br>
> load module auth.so<br>
> *<br>
> <br>
> * ERROR:core:sr_load_module: could not open module <br>
> </usr/local/lib64/opensips/modules/tls_openssl.so>: <br>
> /usr/local/lib64/opensips/modules/tls_openssl.so: undefined symbol: <br>
> OPENSSL_sk_num<br>
> ERROR:core:load_module: failed to load module<br>
> Traceback (last included file at the bottom):<br>
> 0. /usr/local/etc/opensips/opensips_webrtc_proxy.cfg<br>
> CRITICAL:core:yyerror: parse error in <br>
> /usr/local/etc/opensips/opensips_webrtc_proxy.cfg:77:13-14: failed to <br>
> load module tls_openssl.so*<br>
> <br>
> Can anyone help me how to resolve this please ?<br>
> <br>
> */Thanks & Regards/*<br>
> /Sasmita Panda/<br>
> /Senior Network Testing and Software Engineer/<br>
> /3CLogic , ph:07827611765/<br>
> <br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">
http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div>