[Freeswitch-users] problem compiling esl for use with freepbx v3

frek818 herman.griffin at gmail.com
Sun Oct 11 12:12:08 PDT 2009


Did anyone find a solution to this problem? I too would like to install the
esl module for PHP.

Herman

Harondel J. Sibble wrote:
> 
> Okay, just finished installing 1.0.4 from tarball on Ubuntu 9.0.4 server, 
> then went to install FreePBX v3, I've gotten all the prerequisities in the 
> wizard fixed except for ESL
> 
> As per
> 
> http://wiki.freeswitch.org/wiki/Event_Socket_Library
> http://wiki.freeswitch.org/wiki/Event_Socket
> 
> I go into my FS source dir
> 
> /home/sibbleh/freeswitch-1.0.4/libs/esl
> 
> Run make and then "sudo make phpmod-install" 
> 
> and I get 
> 
> 
> $ sudo make phpmod-install
> make MYLIB="../libesl.a" SOLINK="-shared -Xlinker -x" CFLAGS="-
> I/home/sibbleh/freeswitch-1.0.4/libs/esl/src/include -DHAVE_EDITLINE -g
> -ggdb 
> -I../../libs/libedit/src/ -fPIC -O2 -ffast-math -Wall -Werror -Wunused-
> variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
> CXXFLAGS="-
> I/home/sibbleh/freeswitch-1.0.4/libs/esl/src/include -DHAVE_EDITLINE -g
> -ggdb 
> -I../../libs/libedit/src/ -fPIC -Wall -Werror -Wno-unused-variable" 
> CXX_CFLAGS="" -C php
> make[1]: Entering directory `/home/sibbleh/freeswitch-1.0.4/libs/esl/php'
> g++  -I/home/sibbleh/freeswitch-1.0.4/libs/esl/src/include -DHAVE_EDITLINE
> -g 
> -ggdb -I../../libs/libedit/src/ -fPIC -Wall -Werror -Wno-unused-variable -
> 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
> cc1plus: warnings being treated as errors
> esl_wrap.cpp: In function 'void _wrap_ESLevent_event_set(int, zval*,
> zval**, 
> zval*, int)':
> esl_wrap.cpp:1047: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLevent_event_get(int, zval*,
> zval**, 
> zval*, int)':
> esl_wrap.cpp:1073: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLevent_serialized_string_set(int, 
> zval*, zval**, zval*, int)':
> esl_wrap.cpp:1111: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLevent_serialized_string_get(int, 
> zval*, zval**, zval*, int)':
> esl_wrap.cpp:1141: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLevent_mine_set(int, zval*,
> zval**, 
> zval*, int)':
> esl_wrap.cpp:1172: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLevent_mine_get(int, zval*,
> zval**, 
> zval*, int)':
> esl_wrap.cpp:1198: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_new_ESLevent__SWIG_0(int, zval*, 
> zval**, zval*, int)':
> esl_wrap.cpp:1234: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_new_ESLevent__SWIG_1(int, zval*, 
> zval**, zval*, int)':
> esl_wrap.cpp:1269: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_new_ESLevent__SWIG_2(int, zval*, 
> zval**, zval*, int)':
> esl_wrap.cpp:1294: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_new_ESLevent(int, zval*, zval**,
> zval*, 
> int)':
> esl_wrap.cpp:1346: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLevent_serialize(int, zval*,
> zval**, 
> zval*, int)':
> esl_wrap.cpp:1403: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLevent_setPriority(int, zval*, 
> zval**, zval*, int)':
> esl_wrap.cpp:1441: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLevent_getHeader(int, zval*,
> zval**, 
> zval*, int)':
> esl_wrap.cpp:1478: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLevent_getBody(int, zval*, zval**, 
> zval*, int)':
> esl_wrap.cpp:1508: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLevent_getType(int, zval*, zval**, 
> zval*, int)':
> esl_wrap.cpp:1538: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLevent_addBody(int, zval*, zval**, 
> zval*, int)':
> esl_wrap.cpp:1571: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLevent_addHeader(int, zval*,
> zval**, 
> zval*, int)':
> esl_wrap.cpp:1611: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLevent_delHeader(int, zval*,
> zval**, 
> zval*, int)':
> esl_wrap.cpp:1644: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLevent_firstHeader(int, zval*, 
> zval**, zval*, int)':
> esl_wrap.cpp:1674: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLevent_nextHeader(int, zval*,
> zval**, 
> zval*, int)':
> esl_wrap.cpp:1704: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_new_ESLconnection__SWIG_0(int,
> zval*, 
> zval**, zval*, int)':
> esl_wrap.cpp:1744: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_new_ESLconnection__SWIG_1(int,
> zval*, 
> zval**, zval*, int)':
> esl_wrap.cpp:1770: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_new_ESLconnection(int, zval*,
> zval**, 
> zval*, int)':
> esl_wrap.cpp:1803: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_socketDescriptor(int, 
> zval*, zval**, zval*, int)':
> esl_wrap.cpp:1846: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_connected(int, zval*, 
> zval**, zval*, int)':
> esl_wrap.cpp:1872: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_getInfo(int, zval*, 
> zval**, zval*, int)':
> esl_wrap.cpp:1898: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_send(int, zval*,
> zval**, 
> zval*, int)':
> esl_wrap.cpp:1931: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_sendRecv(int, zval*, 
> zval**, zval*, int)':
> esl_wrap.cpp:1964: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_api(int, zval*,
> zval**, 
> zval*, int)':
> esl_wrap.cpp:2007: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_bgapi(int, zval*,
> zval**, 
> zval*, int)':
> esl_wrap.cpp:2050: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_sendEvent(int, zval*, 
> zval**, zval*, int)':
> esl_wrap.cpp:2082: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_recvEvent(int, zval*, 
> zval**, zval*, int)':
> esl_wrap.cpp:2108: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_recvEventTimed(int, 
> zval*, zval**, zval*, int)':
> esl_wrap.cpp:2141: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_filter(int, zval*, 
> zval**, zval*, int)':
> esl_wrap.cpp:2181: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_events(int, zval*, 
> zval**, zval*, int)':
> esl_wrap.cpp:2221: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_execute(int, zval*, 
> zval**, zval*, int)':
> esl_wrap.cpp:2272: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_executeAsync(int,
> zval*, 
> zval**, zval*, int)':
> esl_wrap.cpp:2323: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_setAsyncExecute(int, 
> zval*, zval**, zval*, int)':
> esl_wrap.cpp:2356: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_setEventLock(int,
> zval*, 
> zval**, zval*, int)':
> esl_wrap.cpp:2389: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_ESLconnection_disconnect(int, zval*, 
> zval**, zval*, int)':
> esl_wrap.cpp:2415: error: format not a string literal and no format
> arguments
> esl_wrap.cpp: In function 'void _wrap_eslSetLogLevel(int, zval*, zval**, 
> zval*, int)':
> esl_wrap.cpp:2438: error: format not a string literal and no format
> arguments
> make[1]: *** [esl_wrap.o] Error 1
> make[1]: Leaving directory `/home/sibbleh/freeswitch-1.0.4/libs/esl/php'
> make: *** [phpmod] Error 2
> 
> Same thing happens if I try sudo make everymod
> 
> Checking the list archives I found this thread
> 
> http://www.nabble.com/ESL-Wrapper-td22209991.html#a22222338
> 
> I've made sure that the php-dev packages are installed. Any suggestions on 
> what to do next?
> -- 
> Harondel J. Sibble 
> Sibble Computer Consulting
> Creating Solutions for the small and medium business computer user.
> help at pdscc.com (use pgp keyid 0x3AD5C11D) http://www.pdscc.com
> (604) 739-3709 (voice)
> 
> 
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
> 
> 

-- 
View this message in context: http://www.nabble.com/problem-compiling-esl-for-use-with-freepbx-v3-tp25106337p25846572.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.





More information about the FreeSWITCH-users mailing list