[Freeswitch-users] Issue Compiling ESL (PHP)

Alfredo Quiroga-Villamil lawwton at gmail.com
Fri Jan 15 14:37:24 PST 2010


All:

System:

Linux usnc-rtp-01-fs 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:55:12 EDT
2007 i686 i686 i386 GNU/Linux

I am trying to compile ESL, following the following steps:

1- cd to my libs/esl directory as the wiki page indicates.
2- run make

I then get right away the following:

cc  -I/usr/src/freeswitch-1.0.5-20100113-0400/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 -c src/esl.c -o src/esl.o
cc  -I/usr/src/freeswitch-1.0.5-20100113-0400/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 -c src/esl_event.c -o
src/esl_event.o
cc  -I/usr/src/freeswitch-1.0.5-20100113-0400/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 -c src/esl_threadmutex.c -o
src/esl_threadmutex.o
cc  -I/usr/src/freeswitch-1.0.5-20100113-0400/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 -c src/esl_config.c -o
src/esl_config.o
g++  -I/usr/src/freeswitch-1.0.5-20100113-0400/libs/esl/src/include
-DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -Wall -Werror
-Wno-unused-variable -c src/esl_oop.cpp -o src/esl_oop.o
ar rcs libesl.a src/esl.o src/esl_event.o src/esl_threadmutex.o
src/esl_config.o src/esl_oop.o
ranlib libesl.a
cc  -I/usr/src/freeswitch-1.0.5-20100113-0400/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 fs_cli.c -o fs_cli -L.
-L../../libs/libedit/src/.libs -lncurses -lpthread -lesl -ledit
cc  -I/usr/src/freeswitch-1.0.5-20100113-0400/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 testclient.c -o testclient
-L. -lncurses -lpthread -lesl
cc  -I/usr/src/freeswitch-1.0.5-20100113-0400/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 testserver.c -o testserver
-L. -lncurses -lpthread -lesl
cc  -I/usr/src/freeswitch-1.0.5-20100113-0400/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 ivrd.c -o ivrd -L. -lncurses
-lpthread -lesl

3- I try typing then:

make phpmod and get the following:

make MYLIB="../libesl.a" SOLINK="-shared -Xlinker -x"
CFLAGS="-I/usr/src/freeswitch-1.0.5-20100113-0400/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/usr/src/freeswitch-1.0.5-20100113-0400/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
`/usr/src/freeswitch-1.0.5-20100113-0400/libs/esl/php'
g++  -I/usr/src/freeswitch-1.0.5-20100113-0400/libs/esl/src/include
-DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -Wall -Werror
-Wno-unused-variable -I/usr/include/php -I/usr/include/php/main
-I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext
-I/usr/include/php/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/kerberos/lib
-lcrypt -lcrypt -lncurses -laspell -lpspell -lcurl -lresolv -lm -ldl
-lnsl -lm -ldl -lcurl -ldl -lm -lcrypt -lm -lm -lcrypt -lpthread -o
ESL.so -L.
make[1]: Leaving directory
`/usr/src/freeswitch-1.0.5-20100113-0400/libs/esl/php'

I've installed I think all the -dev dependencies listed in the wiki. Any ideas?

Thanks in advance,

Alfredo Q-V




More information about the FreeSWITCH-users mailing list