Finally i've got the solution: sudo apt-get install libdb-dev<div><br></div><div>Thanks, and sorry for disturbing :)<br><br><div class="gmail_quote">On Fri, May 11, 2012 at 10:04 AM, Szilárd Kovács <span dir="ltr"><<a href="mailto:kovszilard@gmail.com" target="_blank">kovszilard@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello<div><br></div><div>Sorry 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:</div>
<div><br></div><div><div>root@szilard-virtual-machine:/usr/local/src/freeswitch/libs/esl# make phpmod</div><div>cc -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.o</div>
<div>cc -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.o</div><div>cc -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.o</div>
<div>cc -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.o</div><div>cc -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.o</div>
<div>cc -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.o</div><div>g++ -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.o</div>
<div>ar 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.o</div><div>ranlib libesl.a</div><div>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 </div>
<div>make[1]: Entering directory `/usr/local/src/freeswitch/libs/esl/php'</div><div>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.o</div>
<div>esl_wrap.cpp: In function ‘void _wrap_ESLevent_event_set(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:1047:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLevent_event_get(int, zval*, zval**, zval*, int)’:</div>
<div>esl_wrap.cpp:1073:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLevent_serialized_string_set(int, zval*, zval**, zval*, int)’:</div>
<div>esl_wrap.cpp:1111:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLevent_serialized_string_get(int, zval*, zval**, zval*, int)’:</div>
<div>esl_wrap.cpp:1141:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLevent_mine_set(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:1172:46: warning: format not a string literal and no format arguments [-Wformat-security]</div>
<div>esl_wrap.cpp: In function ‘void _wrap_ESLevent_mine_get(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:1198:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_new_ESLevent__SWIG_0(int, zval*, zval**, zval*, int)’:</div>
<div>esl_wrap.cpp:1234:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_new_ESLevent__SWIG_1(int, zval*, zval**, zval*, int)’:</div><div>
esl_wrap.cpp:1269:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_new_ESLevent__SWIG_2(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:1294:46: warning: format not a string literal and no format arguments [-Wformat-security]</div>
<div>esl_wrap.cpp: In function ‘void _wrap_new_ESLevent(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:1346:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLevent_serialize(int, zval*, zval**, zval*, int)’:</div>
<div>esl_wrap.cpp:1403:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLevent_setPriority(int, zval*, zval**, zval*, int)’:</div><div>
esl_wrap.cpp:1441:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLevent_getHeader(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:1488:46: warning: format not a string literal and no format arguments [-Wformat-security]</div>
<div>esl_wrap.cpp: In function ‘void _wrap_ESLevent_getBody(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:1518:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLevent_getType(int, zval*, zval**, zval*, int)’:</div>
<div>esl_wrap.cpp:1548:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLevent_addBody(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:1581:46: warning: format not a string literal and no format arguments [-Wformat-security]</div>
<div>esl_wrap.cpp: In function ‘void _wrap_ESLevent_addHeader(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:1621:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLevent_pushHeader(int, zval*, zval**, zval*, int)’:</div>
<div>esl_wrap.cpp:1661:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLevent_unshiftHeader(int, zval*, zval**, zval*, int)’:</div><div>
esl_wrap.cpp:1701:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLevent_delHeader(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:1734:46: warning: format not a string literal and no format arguments [-Wformat-security]</div>
<div>esl_wrap.cpp: In function ‘void _wrap_ESLevent_firstHeader(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:1764:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>
esl_wrap.cpp: In function ‘void _wrap_ESLevent_nextHeader(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:1794:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_new_ESLconnection__SWIG_0(int, zval*, zval**, zval*, int)’:</div>
<div>esl_wrap.cpp:1841:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_new_ESLconnection__SWIG_1(int, zval*, zval**, zval*, int)’:</div>
<div>esl_wrap.cpp:1881:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_new_ESLconnection__SWIG_2(int, zval*, zval**, zval*, int)’:</div>
<div>esl_wrap.cpp:1907:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_new_ESLconnection(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:1956:46: warning: format not a string literal and no format arguments [-Wformat-security]</div>
<div>esl_wrap.cpp: In function ‘void _wrap_ESLconnection_socketDescriptor(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:1999:46: warning: format not a string literal and no format arguments [-Wformat-security]</div>
<div>esl_wrap.cpp: In function ‘void _wrap_ESLconnection_connected(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:2025:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>
esl_wrap.cpp: In function ‘void _wrap_ESLconnection_getInfo(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:2051:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLconnection_send(int, zval*, zval**, zval*, int)’:</div>
<div>esl_wrap.cpp:2084:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLconnection_sendRecv(int, zval*, zval**, zval*, int)’:</div><div>
esl_wrap.cpp:2117:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLconnection_api(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:2160:46: warning: format not a string literal and no format arguments [-Wformat-security]</div>
<div>esl_wrap.cpp: In function ‘void _wrap_ESLconnection_bgapi(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:2211:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>
esl_wrap.cpp: In function ‘void _wrap_ESLconnection_sendEvent(int, zval*, zval**, zval*, int)’:</div>
<div>esl_wrap.cpp:2243:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLconnection_sendMSG(int, zval*, zval**, zval*, int)’:</div><div>
esl_wrap.cpp:2285:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLconnection_recvEvent(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:2311:46: warning: format not a string literal and no format arguments [-Wformat-security]</div>
<div>esl_wrap.cpp: In function ‘void _wrap_ESLconnection_recvEventTimed(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:2344:46: warning: format not a string literal and no format arguments [-Wformat-security]</div>
<div>esl_wrap.cpp: In function ‘void _wrap_ESLconnection_filter(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:2384:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>
esl_wrap.cpp: In function ‘void _wrap_ESLconnection_events(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:2424:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLconnection_execute(int, zval*, zval**, zval*, int)’:</div>
<div>esl_wrap.cpp:2475:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLconnection_executeAsync(int, zval*, zval**, zval*, int)’:</div>
<div>esl_wrap.cpp:2526:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLconnection_setAsyncExecute(int, zval*, zval**, zval*, int)’:</div>
<div>esl_wrap.cpp:2559:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLconnection_setEventLock(int, zval*, zval**, zval*, int)’:</div>
<div>esl_wrap.cpp:2592:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_ESLconnection_disconnect(int, zval*, zval**, zval*, int)’:</div>
<div>
esl_wrap.cpp:2618:46: warning: format not a string literal and no format arguments [-Wformat-security]</div><div>esl_wrap.cpp: In function ‘void _wrap_eslSetLogLevel(int, zval*, zval**, zval*, int)’:</div><div>esl_wrap.cpp:2641:46: warning: format not a string literal and no format arguments [-Wformat-security]</div>
<div>esl_wrap.cpp: At global scope:</div><div>esl_wrap.cpp:2726:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]</div><div>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. </div>
<div>/usr/bin/ld: cannot find -ldb</div><div>collect2: ld returned 1 exit status</div><div>make[1]: *** [ESL.so] Error 1</div><div>make[1]: Leaving directory `/usr/local/src/freeswitch/libs/esl/php'</div><div>make: *** [phpmod] Error 2</div>
<div><br></div><div>How can I fix this?</div><div><div class="h5"><br><div class="gmail_quote">On Fri, May 11, 2012 at 9:28 AM, Szilárd Kovács <span dir="ltr"><<a href="mailto:kovszilard@gmail.com" target="_blank">kovszilard@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello<div><br></div><div>I would like to try the event socket connection with php, but i don't know where can i download ESL.php. Anybody?</div>
<div><br></div><div>Thanks,</div><div>Szilard Kovacs</div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>