[Freeswitch-users] Cannot complie ESL PHP module on debian

Denis Papes shishko69 at gmail.com
Tue Oct 14 12:55:14 MSD 2014


You should install QDBM Database Libraries for C++ and Development files
for libonig2

apt-get install libqdbm-dev
apt-get install libonig-dev


On Tue, Oct 14, 2014 at 10:22 AM, Delifisek Tux <delifisek.tux at gmail.com>
wrote:

> Hello All.
>
> I'm trying to build freeswitch for my testing purposes.
>
> Last 2 days I try to build freeswitch with php support
>
> Everhing goes fine however when I try to compile phpmod for esl I got
> strange errors. And seaching google does not provide information
>
> root at fs2:/usr/src/freeswitch/libs/esl# make phpmod
> make MYLIB="../libesl.a" SOLINK="-shared -Xlinker -x"
> CFLAGS="-I/usr/src/freeswitch/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb
> -I../../libs/libedit/src/ -fPIC -O2"
> CXXFLAGS="-I/usr/src/freeswitch/libs/esl/src/include -DHAVE_EDITLINE -g
> -ggdb -I../../libs/libedit/src/ -fPIC" CXX_CFLAGS="" -C php
> make[1]: Entering directory `/usr/src/freeswitch/libs/esl/php'
> g++  -I/usr/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
> g++ -shared -Xlinker -x esl_wrap.o ../libesl.a -L/usr/lib/php5
> -L/usr/lib/x86_64-linux-gnu -lcrypt -lcrypt -lonig -lstdc++ -ldb -lqdbm
> -lrt -lm -ldl -lnsl -lcrypt -lcrypt -lpthread -o ESL.so -L.
> /usr/bin/ld: cannot find -lonig
> /usr/bin/ld: cannot find -lqdbm
> collect2: error: ld returned 1 exit status
> make[1]: *** [ESL.so] Error 1
> make[1]: Leaving directory `/usr/src/freeswitch/libs/esl/php'
> make: *** [phpmod] Error 2
>
> I follow this document
>
>
> https://confluence.freeswitch.org/display/FREESWITCH/Debian#Debian-BuildingFromSource
>
> Debian 7.6 64bit.
> Freeswtich 1.2.stable, 1.4 and lastest was giving same errors.
>
> I think there where missing libs and I can't find it.
>
> My best regards.
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 
> 
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141014/1dc72f82/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list