Although probably not the best solution, I figured out a way to make it compile and install:<br><br>I removed all of the -Werror instances in PATH_TO_FREESWITCH_SOURCE/libs/esl/Makefile<br><br>If I was a hardcore c/c++ programmer, I'd figure out the real problem.<br>
<br>Herman aka frek818<br><br><div class="gmail_quote">On Sun, Oct 11, 2009 at 12:12 PM, frek818 <span dir="ltr"><<a href="mailto:herman.griffin@gmail.com">herman.griffin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Did anyone find a solution to this problem? I too would like to install the<br>
esl module for PHP.<br>
<br>
Herman<br>
<div><div></div><div class="h5"><br>
Harondel J. Sibble wrote:<br>
><br>
> Okay, just finished installing 1.0.4 from tarball on Ubuntu 9.0.4 server,<br>
> then went to install FreePBX v3, I've gotten all the prerequisities in the<br>
> wizard fixed except for ESL<br>
><br>
> As per<br>
><br>
> <a href="http://wiki.freeswitch.org/wiki/Event_Socket_Library" target="_blank">http://wiki.freeswitch.org/wiki/Event_Socket_Library</a><br>
> <a href="http://wiki.freeswitch.org/wiki/Event_Socket" target="_blank">http://wiki.freeswitch.org/wiki/Event_Socket</a><br>
><br>
> I go into my FS source dir<br>
><br>
> /home/sibbleh/freeswitch-1.0.4/libs/esl<br>
><br>
> Run make and then "sudo make phpmod-install"<br>
><br>
> and I get<br>
><br>
><br>
> $ sudo make phpmod-install<br>
> make MYLIB="../libesl.a" SOLINK="-shared -Xlinker -x" CFLAGS="-<br>
> I/home/sibbleh/freeswitch-1.0.4/libs/esl/src/include -DHAVE_EDITLINE -g<br>
> -ggdb<br>
> -I../../libs/libedit/src/ -fPIC -O2 -ffast-math -Wall -Werror -Wunused-<br>
> variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"<br>
> CXXFLAGS="-<br>
> I/home/sibbleh/freeswitch-1.0.4/libs/esl/src/include -DHAVE_EDITLINE -g<br>
> -ggdb<br>
> -I../../libs/libedit/src/ -fPIC -Wall -Werror -Wno-unused-variable"<br>
> CXX_CFLAGS="" -C php<br>
> make[1]: Entering directory `/home/sibbleh/freeswitch-1.0.4/libs/esl/php'<br>
> g++ -I/home/sibbleh/freeswitch-1.0.4/libs/esl/src/include -DHAVE_EDITLINE<br>
> -g<br>
> -ggdb -I../../libs/libedit/src/ -fPIC -Wall -Werror -Wno-unused-variable -<br>
> I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -<br>
> I/usr/include/php5/Zend -I/usr/include/php5/ext -<br>
> I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64<br>
> -<br>
> Wno-unused-label -Wno-unused-function -c esl_wrap.cpp -o esl_wrap.o<br>
> cc1plus: warnings being treated as errors<br>
> esl_wrap.cpp: In function 'void _wrap_ESLevent_event_set(int, zval*,<br>
> zval**,<br>
> zval*, int)':<br>
> esl_wrap.cpp:1047: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLevent_event_get(int, zval*,<br>
> zval**,<br>
> zval*, int)':<br>
> esl_wrap.cpp:1073: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLevent_serialized_string_set(int,<br>
> zval*, zval**, zval*, int)':<br>
> esl_wrap.cpp:1111: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLevent_serialized_string_get(int,<br>
> zval*, zval**, zval*, int)':<br>
> esl_wrap.cpp:1141: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLevent_mine_set(int, zval*,<br>
> zval**,<br>
> zval*, int)':<br>
> esl_wrap.cpp:1172: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLevent_mine_get(int, zval*,<br>
> zval**,<br>
> zval*, int)':<br>
> esl_wrap.cpp:1198: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_new_ESLevent__SWIG_0(int, zval*,<br>
> zval**, zval*, int)':<br>
> esl_wrap.cpp:1234: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_new_ESLevent__SWIG_1(int, zval*,<br>
> zval**, zval*, int)':<br>
> esl_wrap.cpp:1269: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_new_ESLevent__SWIG_2(int, zval*,<br>
> zval**, zval*, int)':<br>
> esl_wrap.cpp:1294: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_new_ESLevent(int, zval*, zval**,<br>
> zval*,<br>
> int)':<br>
> esl_wrap.cpp:1346: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLevent_serialize(int, zval*,<br>
> zval**,<br>
> zval*, int)':<br>
> esl_wrap.cpp:1403: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLevent_setPriority(int, zval*,<br>
> zval**, zval*, int)':<br>
> esl_wrap.cpp:1441: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLevent_getHeader(int, zval*,<br>
> zval**,<br>
> zval*, int)':<br>
> esl_wrap.cpp:1478: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLevent_getBody(int, zval*, zval**,<br>
> zval*, int)':<br>
> esl_wrap.cpp:1508: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLevent_getType(int, zval*, zval**,<br>
> zval*, int)':<br>
> esl_wrap.cpp:1538: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLevent_addBody(int, zval*, zval**,<br>
> zval*, int)':<br>
> esl_wrap.cpp:1571: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLevent_addHeader(int, zval*,<br>
> zval**,<br>
> zval*, int)':<br>
> esl_wrap.cpp:1611: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLevent_delHeader(int, zval*,<br>
> zval**,<br>
> zval*, int)':<br>
> esl_wrap.cpp:1644: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLevent_firstHeader(int, zval*,<br>
> zval**, zval*, int)':<br>
> esl_wrap.cpp:1674: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLevent_nextHeader(int, zval*,<br>
> zval**,<br>
> zval*, int)':<br>
> esl_wrap.cpp:1704: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_new_ESLconnection__SWIG_0(int,<br>
> zval*,<br>
> zval**, zval*, int)':<br>
> esl_wrap.cpp:1744: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_new_ESLconnection__SWIG_1(int,<br>
> zval*,<br>
> zval**, zval*, int)':<br>
> esl_wrap.cpp:1770: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_new_ESLconnection(int, zval*,<br>
> zval**,<br>
> zval*, int)':<br>
> esl_wrap.cpp:1803: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_socketDescriptor(int,<br>
> zval*, zval**, zval*, int)':<br>
> esl_wrap.cpp:1846: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_connected(int, zval*,<br>
> zval**, zval*, int)':<br>
> esl_wrap.cpp:1872: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_getInfo(int, zval*,<br>
> zval**, zval*, int)':<br>
> esl_wrap.cpp:1898: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_send(int, zval*,<br>
> zval**,<br>
> zval*, int)':<br>
> esl_wrap.cpp:1931: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_sendRecv(int, zval*,<br>
> zval**, zval*, int)':<br>
> esl_wrap.cpp:1964: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_api(int, zval*,<br>
> zval**,<br>
> zval*, int)':<br>
> esl_wrap.cpp:2007: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_bgapi(int, zval*,<br>
> zval**,<br>
> zval*, int)':<br>
> esl_wrap.cpp:2050: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_sendEvent(int, zval*,<br>
> zval**, zval*, int)':<br>
> esl_wrap.cpp:2082: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_recvEvent(int, zval*,<br>
> zval**, zval*, int)':<br>
> esl_wrap.cpp:2108: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_recvEventTimed(int,<br>
> zval*, zval**, zval*, int)':<br>
> esl_wrap.cpp:2141: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_filter(int, zval*,<br>
> zval**, zval*, int)':<br>
> esl_wrap.cpp:2181: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_events(int, zval*,<br>
> zval**, zval*, int)':<br>
> esl_wrap.cpp:2221: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_execute(int, zval*,<br>
> zval**, zval*, int)':<br>
> esl_wrap.cpp:2272: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_executeAsync(int,<br>
> zval*,<br>
> zval**, zval*, int)':<br>
> esl_wrap.cpp:2323: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_setAsyncExecute(int,<br>
> zval*, zval**, zval*, int)':<br>
> esl_wrap.cpp:2356: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_setEventLock(int,<br>
> zval*,<br>
> zval**, zval*, int)':<br>
> esl_wrap.cpp:2389: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_disconnect(int, zval*,<br>
> zval**, zval*, int)':<br>
> esl_wrap.cpp:2415: error: format not a string literal and no format<br>
> arguments<br>
> esl_wrap.cpp: In function 'void _wrap_eslSetLogLevel(int, zval*, zval**,<br>
> zval*, int)':<br>
> esl_wrap.cpp:2438: error: format not a string literal and no format<br>
> arguments<br>
> make[1]: *** [esl_wrap.o] Error 1<br>
> make[1]: Leaving directory `/home/sibbleh/freeswitch-1.0.4/libs/esl/php'<br>
> make: *** [phpmod] Error 2<br>
><br>
> Same thing happens if I try sudo make everymod<br>
><br>
> Checking the list archives I found this thread<br>
><br>
> <a href="http://www.nabble.com/ESL-Wrapper-td22209991.html#a22222338" target="_blank">http://www.nabble.com/ESL-Wrapper-td22209991.html#a22222338</a><br>
><br>
> I've made sure that the php-dev packages are installed. Any suggestions on<br>
> what to do next?<br>
> --<br>
> Harondel J. Sibble<br>
> Sibble Computer Consulting<br>
> Creating Solutions for the small and medium business computer user.<br>
> <a href="mailto:help@pdscc.com">help@pdscc.com</a> (use pgp keyid 0x3AD5C11D) <a href="http://www.pdscc.com" target="_blank">http://www.pdscc.com</a><br>
> (604) 739-3709 (voice)<br>
><br>
><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>
><br>
<br>
</div></div><font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/problem-compiling-esl-for-use-with-freepbx-v3-tp25106337p25846572.html" target="_blank">http://www.nabble.com/problem-compiling-esl-for-use-with-freepbx-v3-tp25106337p25846572.html</a><br>
Sent from the Freeswitch-users mailing list archive at Nabble.com.<br>
</font><div><div></div><div class="h5"><br>
<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>
</div></div></blockquote></div><br>