php - How to make Freeswitch ESL phpmod? -


Freeswitch 1.5 has been successfully installed, Fs_cli is working perfectly.

I am using Centos 6. I want ESL to work with PHP, so I have followed the steps written in Freeswitch wiki to create ESL for PHP. But it is giving the error as below:

  to create MYLIB = ".././. Libs / libesl.a" SOLINK = "- Shared-Xlinker -x" CFLAGS = "- I / Usr / local / src / freeswitch / libs / esl / src / include -i / usr / local / src / freeswitch / src / include -i / usr / local / src / freeswitch / src / include -i / usr / local / src / Freeswitch / libs / libteletone / src -fPIC -fvisibility = hidden -DSWITCH_API_VISIBILITY = 1 -DHAVE_VISIBILITY = 1 g -ggdb -DHAVE_OPENSSL "CXXFLAGS =" - I / usr / local / src / Freeswitch / libs / ESL / src / include I / usr / local / src / Freeswitch / src / include I / usr / local / src / Freeswitch / src / include / usr / local / src / Freeswitch / libs / libteletone / src -fPIC -fvisibility = Chipi- DSWITCH_API_VISIBILITY = 1 -DHAVE_VISIBILITY = 1 "CXX_CFLAGS =" "-C php make [1]: Dayrectori` / usr / local / src / freeswitch / libs / esl / php 'g ++ -i / usr / local / Src / Freeswitch / libs / ESL / src / include I / usr / local / src / Freeswitch / src / include I / usr / local / src / Freeswitch / src / include I / usr / local / src / Freeswitch / libs / Libteletone / src -fPIC -fvisibility = hidden -DSWITCH_API_VISIBILITY = 1 -DHAVE_VISIBILITY = 1 -i / usr / local / src / freeswitch / libs / esl / src / include -i / usr / local / src / freeswitch / src / include -i / usr / local / src / freeswitch / src / include -i / usr / local / src / Freeswitch / libs / libteletone / src -fPIC -fvisibility = hidden -DSWITCH_API_VISIBILITY = 1 -DHAVE_VISIBILITY = 1 -Wno- unused-taking Force -Wno-unused-function -c esl_wrap.cpp -o esl_wrap.o esl_wrap. CPP: 741: 18: Error: zend.h: Any such file or directory esl_wrap.cpp: 742: 22: Error: zend_API.h: Any such file or directory esl_wrap.cpp: 743: 29: error: zend_exceptions.h: No such file or directory esl_wrap.cpp: 744: 17: error: php.h: such a file or directory esl_wrap.cpp: 745: 37: error: ext / standard / php_string.h: such a file or directory esl_wrap. Cpp is not: 1093: 21: error: php_ini.h: no such file or directory esl_wrap.cpp: 1094: 31: error: ext / standard / info.h: such a file or directory esl_wrap.cpp: 803: error: 'E_ERROR' was not declared in this scope esl_wrap.cpp: 824: error: ISO C ++ forbids declaration esl_wrap.cpp not type with 'Jedararardiarseeditioar_fansi': 824: error: 'SWIG_landfil L' in the region Not declared esl_wrap.cpp: 824: Error: Expected ',' or '; 'Before' { 'token esl_wrap.cpp: 830: error: declare a variable or field' SWIG_ZTS_SetPointerZval 'zero esl_wrap.cpp: 830: error:' Zval "This scope has not been declared esl_wrap.cpp: 830: error: ' Z 'was not declared in this scope esl_wrap.cpp: 830: Error: Expected primary-expression before' zero ': esl_wrap.cpp: 830: Error: Expected primary-expression before' * 'token esl_wrap.cpp: 830: Error: 'Type' was not declared in this scope esl_wrap.cpp: 830: Error: expected before creating 'int' Primary-expression: 1 [esl_wrap.o] making error 1 [:] leaving directory `/ usr / local / src / Freeswitch / libs / esl / php ': *** [phpmod] error 2  < / Pre> 

Run again. / Configure the top-level FreeSwitch source directory; It will replace the corresponding PHP header then try to recreate ESL Lib.

Once created, use phpmod-install to install it.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -