<div class="gmail_quote"><div>It works now.  Thanks Jeff.</div><div><br> </div><blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="gmail_quote">
---------- Forwarded message ----------<br>From: Jeff Lenk &lt;<a href="mailto:jeff@jefflenk.com">jeff@jefflenk.com</a>&gt;<br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
Date: Wed, 4 May 2011 14:59:03 -0700 (PDT)<br>Subject: Re: [Freeswitch-users] Build error related to &quot;libsofia_sip_ua_static&quot;<br>Please git pull and try this again I submitted a fix. Please let me know if<br>
it works now or if there are more problems.<br>
<br>
--<br>
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/Build-error-related-to-libsofia-sip-ua-static-tp6329599p6332522.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/Build-error-related-to-libsofia-sip-ua-static-tp6329599p6332522.html</a><br>

Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
<br>
<br>
<br><br>---------- Forwarded message ----------<br>From: david varnes &lt;<a href="mailto:david.varnes@gmail.com">david.varnes@gmail.com</a>&gt;<br>To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
Date: Thu, 5 May 2011 09:37:53 +1000<br>Subject: Re: [Freeswitch-users] org.freeswitch.esl.client warns of resource misuse<br>Hi Adam,<br>
<br>
On 4 May 2011 04:15, Adam Kelloway &lt;<a href="mailto:adam.kelloway@newpace.ca">adam.kelloway@newpace.ca</a>&gt; wrote:<br>
&gt; Hi there,<br>
&gt;<br>
&gt; This is directed at those involved in the development of the<br>
&gt; org.freeswitch.esl.client library. Apologies if this has already been<br>
&gt; mentioned, I couldn&#39;t find any references to it.<br>
&gt;<br>
&gt; In evaluating this library, I noticed that AbstractOutboundPipelineFactory<br>
&gt; implementation of ChannelPipelineFactory.getPipeline() creates a new<br>
&gt; ExecutionHandler each time it is called, which results in a increasing<br>
&gt; number of thread pools being used that eventually triggers the following<br>
&gt; warning:<br>
&gt;<br>
&gt; org.jboss.netty.util.internal.SharedResourceMisuseDetector<br>
&gt; WARNING: You are creating too many MemoryAwareThreadPoolExecutor instances.<br>
&gt; MemoryAwareThreadPoolExecutor is a shared resource that must be reused<br>
&gt; across the application, so that only a few instances are created.<br>
&gt;<br>
&gt; Looking at the documentation for ExecutionHandler, I noticed that the<br>
&gt; example implementation provides a dedicated ExecutionHandler instance, which<br>
&gt; is passed to all pipelines returned in getPipeline(). Note the comment in<br>
&gt; the example that states it &quot;Must be shared&quot;.<br>
&gt;<br>
&gt; From<br>
&gt; <a href="http://docs.jboss.org/netty/3.2/api/org/jboss/netty/handler/execution/ExecutionHandler.html" target="_blank">http://docs.jboss.org/netty/3.2/api/org/jboss/netty/handler/execution/ExecutionHandler.html</a>:<br>

&gt; --------------<br>
&gt; public class DatabaseGatewayPipelineFactory implements<br>
&gt; ChannelPipelineFactory {<br>
&gt;<br>
&gt; private final ExecutionHandler executionHandler;<br>
&gt;<br>
&gt; public DatabaseGatewayPipelineFactory(ExecutionHandler executionHandler) {<br>
&gt;   this.executionHandler = executionHandler;<br>
&gt; }<br>
&gt;<br>
&gt; public ChannelPipeline getPipeline() {<br>
&gt;   return Channels.pipeline(<br>
&gt;     new DatabaseGatewayProtocolEncoder(),<br>
&gt;     new DatabaseGatewayProtocolDecoder(),<br>
&gt;     executionHandler, // Must be shared<br>
&gt;     new DatabaseQueryingHandler());<br>
&gt;   }<br>
&gt; }<br>
&gt; -------------<br>
&gt;<br>
&gt; Is there any particular reason why AbstractOutboundPipelineFactory does not<br>
&gt; provide a dedicated ExecutionHandler that may be shared by all pipelines, or<br>
&gt; is this simply an oversight?<br>
<br>
Very good question.  Off the top of my head I would say this is an oversight.<br>
<br>
Which version of esl-client and netty are you seeing this with ?<br>
<br>
Should be straight forward to sort this out.<br>
I have a few pending changes to commit into the esl-client, and will<br>
try to get to it asap.<br>
<br>
Thanks for the post.<br>
<br>
Also, I should find somewhere to log bugs (and patches :-), not sure<br>
if the official JIRA<br>
system is available.<br>
<br>
regards<br>
davidv<br>
<br>
<br>
&gt; Thanks and keep up the good work,<br>
&gt;<br>
&gt; Adam Kelloway<br>
&gt;<br>
<br>
<br>
<br>
--<br>
david varnes<br>
<br>
e: <a href="mailto:david.varnes@gmail.com">david.varnes@gmail.com</a><br>
<br>
<br>
<br><br>---------- Forwarded message ----------<br>From: Dave Horton &lt;<a href="mailto:dave@dchorton.com">dave@dchorton.com</a>&gt;<br>To: Michal Bielicki &lt;<a href="mailto:michal.bielicki@seventhsignal.de">michal.bielicki@seventhsignal.de</a>&gt;<br>
Date: Wed, 4 May 2011 22:28:14 -0400<br>Subject: Re: [Freeswitch-users] help on creating an rpm<br><div style="word-wrap: break-word;">Thanks, that was the problem.  I had installed python 2.7 because some other software needed it; not sure exactly how it was causing problems but I removed it so that configure found the older python install (2.4) and the rpm built fine.  Many thanks.  <br>
<div><div>On May 3, 2011, at 4:46 PM, Michal Bielicki wrote:</div><br><div style="word-wrap: break-word;">It seems to try to link a 32bit version of libpython to mod_pthon instead of the 64bit version. In dtail it seems to be linking in a version you installed by hand in/usr/local and that seems to be a 32bit version and that is why it fails.<div>
<br><div><div>Am 03.05.2011 um 22:33 schrieb Dave Horton:</div><br><blockquote type="cite"><div>Hmm..actually this is centos:<br><br>[root@centos64-1 ~]# uname -a<br>Linux centos64-1 2.6.18-194.26.1.el5 #1 SMP Tue Nov 9 12:54:20 EST 2010 x86_64 x86_64 x86_64 GNU/Linux<br>
[root@centos64-1 ~]# cat /etc/redhat-release <br>CentOS release 5.5 (Final)<br><br><br><br><br>Begin forwarded message:<br><br>From: Dave Horton &lt;<a href="mailto:dave@dchorton.com" target="_blank">dave@dchorton.com</a>&gt;<br>
Date: May 3, 2011 8:09:29 AM EDT<br>To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>Subject: help on creating an rpm<br>
<br><br>Thanks for some of the feedback, I have gotten further.  (As noted, I am not all that experienced with rpms, but have read up on various articles).  Now, I have created my .rpmmacros to set the top level directory, and gotten my source tree in the correct place to be located, and when I run rpmbuild against the spec file it runs for quite a while but eventually fails with this error below.  <br>
<br>gcc -I/usr/local/include/python2.7 -I/usr/local/include/python2.7 -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/data/home/build/tmp/rpm/BUILD/freeswitch-1.0.7/src/include -I/data/home/build/tmp/rpm/BUILD/freeswitch-1.0.7/src/include -I/data/home/build/tmp/rpm/BUILD/freeswitch-1.0.7/libs/libteletone/src -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -std=c99 -pedantic -Wdeclaration-after-statement -D_GNU_SOURCE -DHAVE_CONFIG_H -c /data/home/build/tmp/rpm/BUILD/freeswitch-1.0.7/src/mod/languages/mod_python/mod_python.c -o mod_python.o &gt;/dev/null 2&gt;&amp;1<br>
Creating mod_python.so...<br>/usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32 against `a local symbol&#39; can not be used when making a shared object; recompile with -fPIC<br>/usr/local/lib/libpython2.7.a: could not read symbols: Bad value<br>
collect2: ld returned 1 exit status<br>g++ -I/usr/local/include/python2.7 -I/usr/local/include/python2.7 -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/data/home/build/tmp/rpm/BUILD/freeswitch-1.0.7/src/include -I/data/home/build/tmp/rpm/BUILD/freeswitch-1.0.7/src/include -I/data/home/build/tmp/rpm/BUILD/freeswitch-1.0.7/libs/libteletone/src -fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -shared -o .libs/mod_python.so -shared -Wl,-x .libs/mod_python.o freeswitch_python.o mod_python_wrap.o  /data/home/build/tmp/rpm/BUILD/freeswitch-1.0.7/.libs/libfreeswitch.so -lz -L/data/home/build/tmp/rpm/BUILD/freeswitch-1.0.7/libs/apr-util/xml/expat/lib -lpq /data/home/build/tmp/rpm/BUILD/freeswitch-1.0.7/libs/apr-util/xml/expat/lib/.libs/libexpat.a /data/home/build/tmp/rpm/BUILD/freeswitch-1.0.7/libs/apr/.libs/libapr-1.a -luuid -lrt -lcr<br>
 ypt -L/data/home/build/tmp/rpm/BUILD/freeswitch-1.0.7/libs/srtp -lssl -lcrypto -lncurses -L/usr/local/lib -lpthread -ldl -lutil -lm -lpython2.7   -Wl,--rpath -Wl,/opt/freeswitch/lib -Wl,--rpath -Wl,/opt/freeswitch/mod<br>
make[5]: *** [mod_python.so] Error 1<br>make[5]: Leaving directory `/data/home/build/tmp/rpm/BUILD/freeswitch-1.0.7/src/mod/languages/mod_python&#39;<br>make[4]: *** [all] Error 1<br>make[4]: Leaving directory `/data/home/build/tmp/rpm/BUILD/freeswitch-1.0.7/src/mod/languages/mod_python&#39;<br>
make[3]: *** [languages/mod_python-all] Error 1<br>make[3]: Leaving directory `/data/home/build/tmp/rpm/BUILD/freeswitch-1.0.7/src/mod&#39;<br>make[3]: Entering directory `/data/home/build/tmp/rpm/BUILD/freeswitch-1.0.7/src&#39;<br>
make[3]: Nothing to be done for `all-am&#39;.<br>make[3]: Leaving directory `/data/home/build/tmp/rpm/BUILD/freeswitch-1.0.7/src&#39;<br>make[2]: *** [all-recursive] Error 1<br>make[2]: Leaving directory `/data/home/build/tmp/rpm/BUILD/freeswitch-1.0.7/src&#39;<br>
make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/data/home/build/tmp/rpm/BUILD/freeswitch-1.0.7&#39;<br>make: *** [all] Error 2<br>error: Bad exit status from /var/tmp/rpm-tmp.67849 (%build)<br><br>Any thoughts about what might be wrong?  <br>
<br><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></blockquote></div><br><div>
<span style="text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><div style="word-wrap: break-word;">
<span style="text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><div style="word-wrap: break-word;"><span style="text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><div style="word-wrap: break-word;">
<span style="text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><div style="word-wrap: break-word;"><span style="text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><div style="word-wrap: break-word;">
<div><div><div style="margin: 0px;"><b>Michal Bielicki</b></div><div style="margin: 0px;">Geschäftsführer / CEO</div><div style="margin: 0px; min-height: 15px;"><br></div><div style="margin: 0px;"><b>Seventh Signal Ltd. &amp; Co. KG</b></div>
<div style="margin: 0px;">Weigandufer 45, Büro 115, <span style="color: rgb(68, 68, 68);">D-12059 Berlin</span></div><div style="margin: 0px; color: rgb(68, 68, 68);">Voice: +49 30 60988730</div><div style="margin: 0px; min-height: 15px;">
<br></div><div style="margin: 0px;">Amtsgericht Charlottenburg HRA 44413 B</div><div style="margin: 0px;">Ust.-ID: DE266981999</div><div style="margin: 0px;">Geschäftsführer: Michal Bielicki</div><div style="margin: 0px;">
Persönlich Haftende Gesellschafterin:</div><div style="margin: 0px;">Seventh Signal Ltd, 69 Great Hampton St. Birmingham, </div><div style="margin: 0px;">B18 6EW, GB, Company Nr.: 06889439</div><div style="margin: 0px; color: rgb(21, 79, 174);">
<span style="color: rgb(0, 0, 0);">WWW.: <a href="http://www.seventhsignal.de/" target="_blank"><span style="text-decoration: underline;">http://www.seventhsignal.de</span></a></span></div></div></div></div></span></div></span></div>
</span></div></span></div></span></span>
</div>
<br></div></div></div><br></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>