<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><base href="x-msg://2142/"><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks Mike.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Michael Jerris<br><b>Sent:</b> Friday, October 11, 2013 1:31 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] Error when building ESL for PHP<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>You can just do a checkout of the master or 1.2 branch directly from git.<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Mike<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Oct 11, 2013, at 2:09 PM, Sam Montour <<a href="mailto:smontour@verizon.net">smontour@verizon.net</a>> wrote:<o:p></o:p></p></div><p class=MsoNormal><br><br><o:p></o:p></p><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I’d like to test the patch for now. Where can I download the patch file?</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p></div><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><div><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span class=apple-converted-space><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> </span></span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:freeswitch-<a href="mailto:users-bounces@lists.freeswitch.org">users-bounces@lists.freeswitch.org</a>]<span class=apple-converted-space> </span><b>On Behalf Of<span class=apple-converted-space> </span></b>Michael Jerris<br><b>Sent:</b><span class=apple-converted-space> </span>Friday, October 11, 2013 1:00 PM<br><b>To:</b><span class=apple-converted-space> </span>FreeSWITCH Users Help<br><b>Subject:</b><span class=apple-converted-space> </span>Re: [Freeswitch-users] Error when building ESL for PHP</span><o:p></o:p></p></div></div></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal>I'll wait for ken to chime in, it might not be a release yet, you can just hand patch libs/esl/php/esl_wrap.cpp real quick and it will fix the issue<o:p></o:p></p></div><div><div><p class=MsoNormal> <o:p></o:p></p></div><div><div><div><p class=MsoNormal>On Oct 11, 2013, at 1:48 PM, Sam Montour <<a href="mailto:smontour@verizon.net"><span style='color:purple'>smontour@verizon.net</span></a>> wrote:<o:p></o:p></p></div></div><div><p class=MsoNormal><br><br><br><o:p></o:p></p></div><div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I am running FS 1.2.12. Is the patch included in FS 1.2.13? I can upgrade then. If not, where can I download the patch? Thanks.</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p></div></div><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><div><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span class=apple-converted-space><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> </span></span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org"><span style='color:purple'>freeswitch-users-bounces@lists.freeswitch.org</span></a><span class=apple-converted-space> </span>[mailto:freeswitch-<a href="mailto:users-bounces@lists.freeswitch.org"><span style='color:purple'>users-bounces@lists.freeswitch.org</span></a>]<span class=apple-converted-space> </span><b>On Behalf Of<span class=apple-converted-space> </span></b>Michael Jerris<br><b>Sent:</b><span class=apple-converted-space> </span>Friday, October 11, 2013 12:35 PM<br><b>To:</b><span class=apple-converted-space> </span>FreeSWITCH Users Help<br><b>Subject:</b><span class=apple-converted-space> </span>Re: [Freeswitch-users] Error when building ESL for PHP</span><o:p></o:p></p></div></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>This patch should already be in tree. Ken Rice- Is this in a release build yet?<o:p></o:p></p></div></div><div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><div><p class=MsoNormal>On Oct 11, 2013, at 1:24 PM, Richard Genthner <<a href="mailto:rgenthner@symplicity.com"><span style='color:purple'>rgenthner@symplicity.com</span></a>> wrote:<o:p></o:p></p></div></div><div><div><p class=MsoNormal><br><br><br><br><o:p></o:p></p></div></div><div><div><div><p class=MsoNormal>Sam,<o:p></o:p></p></div></div><div><div><div><p class=MsoNormal>Thats a known bug.<o:p></o:p></p></div></div><div><div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>diff --git a/libs/esl/php/Makefile b/libs/esl/php/Makefile<o:p></o:p></p></div></div><div><div><p class=MsoNormal>index dce8fd4..97674f8 100644<o:p></o:p></p></div></div><div><div><p class=MsoNormal>--- a/libs/esl/php/Makefile<o:p></o:p></p></div></div><div><div><p class=MsoNormal>+++ b/libs/esl/php/Makefile<o:p></o:p></p></div></div><div><div><p class=MsoNormal>@@ -17,6 +17,7 @@ all: ESL.so<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal> esl_wrap.cpp:<o:p></o:p></p></div></div><div><div><p class=MsoNormal> swig -module ESL -php5 -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i<o:p></o:p></p></div></div><div><div><p class=MsoNormal>+ sed -e 's/ char \*type_name;/ const char \*type_name;/' -i esl_wrap.cpp<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal> esl_wrap.o: esl_wrap.cpp<o:p></o:p></p></div></div><div><div><p class=MsoNormal> $(CXX) $(CXX_CFLAGS) $(CXXFLAGS) $(LOCAL_CFLAGS) $(WRAP_GCC_WARNING_SILENCE) -c esl_wrap.cpp -o esl_wrap.o<o:p></o:p></p></div></div><div><div><p class=MsoNormal>diff --git a/libs/esl/php/esl_wrap.cpp b/libs/esl/php/esl_wrap.cpp<o:p></o:p></p></div></div><div><div><p class=MsoNormal>index 8c91f25..0389cc2 100644<o:p></o:p></p></div></div><div><div><p class=MsoNormal>--- a/libs/esl/php/esl_wrap.cpp<o:p></o:p></p></div></div><div><div><p class=MsoNormal>+++ b/libs/esl/php/esl_wrap.cpp<o:p></o:p></p></div></div><div><div><p class=MsoNormal>@@ -857,7 +857,7 @@ SWIG_ZTS_ConvertResourcePtr(zval *z, swig_type_info *ty, int flags TSRMLS_DC) {<o:p></o:p></p></div></div><div><div><p class=MsoNormal> swig_object_wrapper *value;<o:p></o:p></p></div></div><div><div><p class=MsoNormal> void *p;<o:p></o:p></p></div></div><div><div><p class=MsoNormal> int type;<o:p></o:p></p></div></div><div><div><p class=MsoNormal>- char *type_name;<o:p></o:p></p></div></div><div><div><p class=MsoNormal>+ const char *type_name;<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal> value = (swig_object_wrapper *) zend_list_find(z->value.lval, &type);<o:p></o:p></p></div></div><div><div><p class=MsoNormal> if ( flags && SWIG_POINTER_DISOWN ) {<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>Thats the Patch for it.<o:p></o:p></p></div></div></div><div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif"'>-- <br>Thanks,<br><br>Richard Genthner<br>System Administrator<br>Symplicity<br>tel 703.351.0200 x 8051<br>web <a href="http://www.symplicity.com/"><span style='color:purple'>www.symplicity.com</span></a></span><o:p></o:p></p></div></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><div><p class=MsoNormal>On Oct 11, 2013, at 1:16 PM, Sam Montour <<a href="mailto:smontour@verizon.net"><span style='color:purple'>smontour@verizon.net</span></a>> wrote:<o:p></o:p></p></div></div><div><div><p class=MsoNormal><br><br><br><br><o:p></o:p></p></div></div><div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Hi all,</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>I am trying to build ESL library for PHP but received the error below. I checked all pre-requisite libraries according to ESL wiki page and seem to have them all.</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> </span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>libxml2-dev libpcre3-dev libcurl4-openssl-dev libgmp3-dev libaspell-dev python-dev php5-dev libonig-dev libqdbm-dev libedit-dev libdb-dev.</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> </span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>It’s throwing an error for an invalid conversion from const char to char in esl_wrapp.cpp.</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> </span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>I am running FreeSWITCH Version 1.2.12+git~20130816T225403Z~8566ffa82a on Linux Mint 14.</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> </span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Any idea on how to fix this error?</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> </span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Thanks</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> </span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>root:/usr/local/src/freeswitch/libs/esl#<span class=apple-converted-space> </span><b><span style='color:#002060'>make</span></b></span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>root:/usr/local/src/freeswitch/libs/esl#<span class=apple-converted-space> </span><b><span style='color:#002060'>make phpmod-install</span></b></span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>make MYLIB="../libesl.a" SOLINK="-shared -Xlinker -x" CFLAGS="-I/usr/local/src/freeswitch/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -O2" CXXFLAGS="-I/usr/local/src/freeswitch/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC" CXX_CFLAGS="" -C php</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>make[1]: Entering directory `/usr/local/src/freeswitch/libs/esl/php'</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>g++ -I/usr/local/src/freeswitch/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unused-label -Wno-unused-function -c esl_wrap.cpp -o esl_wrap.o</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>esl_wrap.cpp: In function ‘void* SWIG_ZTS_ConvertResourcePtr(zval*, swig_type_info*, int)’:</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:red'>esl_wrap.cpp:869:65: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]</span></b><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>esl_wrap.cpp: In function ‘void _wrap_ESLevent_event_set(int, zval*, zval**, zval*, int)’:</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>esl_wrap.cpp:1047:46: warning: format not a string literal and no format arguments [-Wformat-security]</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> </span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>.</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>.</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>.</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>esl_wrap.cpp:2757:46: warning: format not a string literal and no format arguments [-Wformat-security]</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>make[1]: *** [esl_wrap.o] Error 1</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>make[1]: Leaving directory `/usr/local/src/freeswitch/libs/esl/php'</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>make: *** [phpmod] Error 2</span><o:p></o:p></p></div></div></div></div></div></div></div><div><div><p class=MsoNormal><o:p> </o:p></p></div></div></div></div></div></div></div></div></div></div></body></html>