<div dir="ltr"><pre style="color:rgb(0,0,0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">Thank you Ciprian Dosoftei. <br><br>I was able to install with version latest development version FreeSWITCH (Version 1.10.2-dev 64bit).</pre></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 27, 2019 at 12:30 AM Ciprian Dosoftei <<a href="mailto:ciprian.dosoftei@gmail.com">ciprian.dosoftei@gmail.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 dir="ltr">You're using the PHP 7+ development packages against an extension designed for PHP 5 (deprecated).<div><br></div><div>This has been addressed after 1.10.1 was released so you can try building the PHP extension against the latest master or any commit after 93691c60cea1c2e873b0507134815500401ca9cb.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 26 Dec 2019 at 13:24, Vishal Pai <<a href="mailto:vishalmpai@gmail.com" target="_blank">vishalmpai@gmail.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 dir="ltr"><div>Hello everyone</div><div><br></div><div>Season's Greetings.</div><div><br></div><div>I am having php7.0 installed on my Debian 9 OS Using below command</div><div><br></div><div>apt install php7.0 libapache2-mod-php7.0 php7.0-common php7.0-pdo php7.0-mbstring php7.0-xmlrpc php7.0-soap php7.0-gd php7.0-xml php7.0-intl php7.0-mysql php7.0-cli php7.0-mcrypt php7.0-ldap php7.0-zip php7.0-curl php7.0-dev</div><div><br></div><div>Now when i compile esl under </div><div><br></div><div>/usr/src/freeswitch-1.10.1.-release/libs/esl make phpmod-install</div><div><br></div><div>i am getting following errors</div><div><br></div><div>make MYLIB=".././.libs/libesl.a" SOLINK="-shared -Xlinker -x" CFLAGS="-I/usr/src/freeswitch-1.10.1.-release/libs/esl/src/include -I/usr/include/uuid -I/usr/src/freeswitch-1.10.1.-release/src/include -I/usr/src/freeswitch-1.10.1.-release/src/include -I/usr/src/freeswitch-1.10.1.-release/libs/libteletone/src -fPIC -ffast-math -Werror -Wno-unused-result -Wno-misleading-indentation -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DCJSON_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -DHAVE_OPENSSL" CXXFLAGS="-I/usr/src/freeswitch-1.10.1.-release/libs/esl/src/include -I/usr/src/freeswitch-1.10.1.-release/src/include -I/usr/src/freeswitch-1.10.1.-release/src/include -I/usr/src/freeswitch-1.10.1.-release/libs/libteletone/src -fPIC -ffast-math -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DCJSON_API_VISIBILITY=1 -DHAVE_VISIBILITY=1" CXX_CFLAGS="" -C php <br>make[1]: Entering directory '/usr/src/freeswitch-1.10.1.-release/libs/esl/php'<br>g++ -I/usr/src/freeswitch-1.10.1.-release/libs/esl/src/include -I/usr/src/freeswitch-1.10.1.-release/src/include -I/usr/src/freeswitch-1.10.1.-release/src/include -I/usr/src/freeswitch-1.10.1.-release/libs/libteletone/src -fPIC -ffast-math -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DCJSON_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -I/usr/src/freeswitch-1.10.1.-release/libs/esl/src/include -I/usr/src/freeswitch-1.10.1.-release/src/include -I/usr/src/freeswitch-1.10.1.-release/src/include -I/usr/src/freeswitch-1.10.1.-release/libs/libteletone/src -fPIC -ffast-math -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DCJSON_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -Wno-unused-label -Wno-unused-function -c esl_wrap.cpp -o esl_wrap.o<br>esl_wrap.cpp:876:105: error: macro "zend_hash_update" passed 6 arguments, but takes just 3<br> zend_hash_update(HASH_OF(z), (char*)"_cPtr", sizeof("_cPtr"), (void*)&resource, sizeof(zval), NULL);<br>esl_wrap.cpp:1246:50: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2<br> ZVAL_STRING(return_value, (char *)result, 1);<br> ^<br>esl_wrap.cpp:1521:50: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2<br> ZVAL_STRING(return_value, (char *)result, 1);<br> ^<br>esl_wrap.cpp:1610:50: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2<br> ZVAL_STRING(return_value, (char *)result, 1);<br> ^<br>esl_wrap.cpp:1640:50: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2<br> ZVAL_STRING(return_value, (char *)result, 1);<br> ^<br>esl_wrap.cpp:1670:50: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2<br> ZVAL_STRING(return_value, (char *)result, 1);<br> ^<br>esl_wrap.cpp:1918:50: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2<br> ZVAL_STRING(return_value, (char *)result, 1);<br> ^<br>esl_wrap.cpp:1948:50: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2<br> ZVAL_STRING(return_value, (char *)result, 1);<br> ^<br>esl_wrap.cpp: In function ‘void SWIG_landfill(zend_resource*)’:<br>esl_wrap.cpp:813:51: error: ‘rsrc’ was not declared in this scope<br> static ZEND_RSRC_DTOR_FUNC(SWIG_landfill) { (void)rsrc; }<br> ^~~~<br>esl_wrap.cpp: In function ‘void SWIG_ZTS_SetPointerZval(zval*, void*, swig_type_info*, int)’:<br>esl_wrap.cpp:836:66: error: ‘ZEND_REGISTER_RESOURCE’ was not declared in this scope<br> ZEND_REGISTER_RESOURCE(z, value, *(int *)(type->clientdata));<br> ^<br>esl_wrap.cpp:857:29: error: ‘MAKE_STD_ZVAL’ was not declared in this scope<br> MAKE_STD_ZVAL(resource);<br> ^<br>esl_wrap.cpp:858:73: error: ‘ZEND_REGISTER_RESOURCE’ was not declared in this scope<br> ZEND_REGISTER_RESOURCE(resource, value, *(int *)(type->clientdata));<br> ^<br>esl_wrap.cpp:863:93: error: cannot convert ‘char*’ to ‘zend_string* {aka _zend_string*}’ for argument ‘1’ to ‘zend_class_entry* zend_lookup_class(zend_string*)’<br> result = zend_lookup_class(classname, SWIG_PREFIX_LEN + type_name_len, &ce TSRMLS_CC);<br> ^<br>esl_wrap.cpp:866:83: error: cannot convert ‘char*’ to ‘zend_string* {aka _zend_string*}’ for argument ‘1’ to ‘zend_class_entry* zend_lookup_class(zend_string*)’<br> result = zend_lookup_class((char *)type_name, type_name_len, &ce TSRMLS_CC);</div><div><br></div><div><br></div><div>Which doesn't get compiled successfully. Can anyone let me know what i am doing wrong here.</div><div><br></div></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr">Best Regards,<br>Ciprian Dosoftei<br><br>The information transmitted is intended only for the addressee and may contain privileged and/or confidential material. If you are not the intended recipient, kindly contact the sender and delete the message.<br><br>Any disclosure, distribution or copying of this message is strictly prohibited without the expressed permission of the sender.</div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>