Finally i've got the solution: sudo apt-get install libdb-dev
HelloSorry for the early question, i found the answer on the wiki. I have an other issue now. When i try make phpmod in <freeswitch source dir>/libs/esl, i'm getting the following error message on ubuntu 12.04:root@szilard-virtual-machine:/usr/local/src/freeswitch/libs/esl# make phpmodcc -I/usr/local/src/freeswitch/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -O2 -c src/esl.c -o src/esl.occ -I/usr/local/src/freeswitch/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -O2 -c src/esl_event.c -o src/esl_event.occ -I/usr/local/src/freeswitch/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -O2 -c src/esl_threadmutex.c -o src/esl_threadmutex.occ -I/usr/local/src/freeswitch/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -O2 -c src/esl_config.c -o src/esl_config.occ -I/usr/local/src/freeswitch/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -O2 -c src/esl_json.c -o src/esl_json.occ -I/usr/local/src/freeswitch/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -O2 -c src/esl_buffer.c -o src/esl_buffer.og++ -I/usr/local/src/freeswitch/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -c src/esl_oop.cpp -o src/esl_oop.oar rcs libesl.a src/esl.o src/esl_event.o src/esl_threadmutex.o src/esl_config.o src/esl_json.o src/esl_buffer.o src/esl_oop.oranlib libesl.amake 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 phpmake[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 -Wno-unused-label -Wno-unused-function -c esl_wrap.cpp -o esl_wrap.oesl_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: In function ‘void _wrap_ESLevent_event_get(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1073:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLevent_serialized_string_set(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1111:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLevent_serialized_string_get(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1141:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLevent_mine_set(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1172:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLevent_mine_get(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1198:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_new_ESLevent__SWIG_0(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1234:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_new_ESLevent__SWIG_1(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1269:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_new_ESLevent__SWIG_2(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1294:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_new_ESLevent(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1346:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLevent_serialize(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1403:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLevent_setPriority(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1441:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLevent_getHeader(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1488:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLevent_getBody(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1518:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLevent_getType(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1548:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLevent_addBody(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1581:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLevent_addHeader(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1621:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLevent_pushHeader(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1661:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLevent_unshiftHeader(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1701:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLevent_delHeader(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1734:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLevent_firstHeader(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1764:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLevent_nextHeader(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1794:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_new_ESLconnection__SWIG_0(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1841:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_new_ESLconnection__SWIG_1(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1881:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_new_ESLconnection__SWIG_2(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1907:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_new_ESLconnection(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1956:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLconnection_socketDescriptor(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:1999:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLconnection_connected(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:2025:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLconnection_getInfo(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:2051:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLconnection_send(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:2084:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLconnection_sendRecv(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:2117:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLconnection_api(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:2160:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLconnection_bgapi(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:2211:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLconnection_sendEvent(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:2243:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLconnection_sendMSG(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:2285:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLconnection_recvEvent(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:2311:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLconnection_recvEventTimed(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:2344:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLconnection_filter(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:2384:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLconnection_events(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:2424:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLconnection_execute(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:2475:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLconnection_executeAsync(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:2526:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLconnection_setAsyncExecute(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:2559:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLconnection_setEventLock(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:2592:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_ESLconnection_disconnect(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:2618:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: In function ‘void _wrap_eslSetLogLevel(int, zval*, zval**, zval*, int)’:esl_wrap.cpp:2641:46: warning: format not a string literal and no format arguments [-Wformat-security]esl_wrap.cpp: At global scope:esl_wrap.cpp:2726:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]g++ -shared -Xlinker -x esl_wrap.o ../libesl.a -L/usr/lib/x86_64-linux-gnu -lcrypt -lresolv -lcrypt -ldb -lrt -lm -ldl -lnsl -lcrypt -lcrypt -lpthread -o ESL.so -L./usr/bin/ld: cannot find -ldbcollect2: ld returned 1 exit statusmake[1]: *** [ESL.so] Error 1make[1]: Leaving directory `/usr/local/src/freeswitch/libs/esl/php'make: *** [phpmod] Error 2How can I fix this?On Fri, May 11, 2012 at 9:28 AM, Szilárd Kovács <kovszilard@gmail.com> wrote:
HelloI would like to try the event socket connection with php, but i don't know where can i download ESL.php. Anybody?Thanks,Szilard Kovacs