Hi all,
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.
libxml2-dev libpcre3-dev libcurl4-openssl-dev libgmp3-dev libaspell-dev python-dev php5-dev libonig-dev libqdbm-dev libedit-dev libdb-dev.
It’s throwing an error for an invalid conversion from const char to char in esl_wrapp.cpp.
I am running FreeSWITCH Version 1.2.12+git~20130816T225403Z~8566ffa82a on Linux Mint 14.
Any idea on how to fix this error?
Thanks
root:/usr/local/src/freeswitch/libs/esl# make
root:/usr/local/src/freeswitch/libs/esl# make phpmod-install
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
make[1]: Entering directory `/usr/local/src/freeswitch/libs/esl/php'
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
esl_wrap.cpp: In function ‘void* SWIG_ZTS_ConvertResourcePtr(zval*, swig_type_info*, int)’:
esl_wrap.cpp:869:65: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
esl_wrap.cpp: In function ‘void _wrap_ESLevent_event_set(int, zval*, zval**, zval*, int)’:
esl_wrap.cpp:1047:46: warning: format not a string literal and no format arguments [-Wformat-security]
.
.
.
esl_wrap.cpp:2757:46: warning: format not a string literal and no format arguments [-Wformat-security]
make[1]: *** [esl_wrap.o] Error 1
make[1]: Leaving directory `/usr/local/src/freeswitch/libs/esl/php'
make: *** [phpmod] Error 2