[Freeswitch-users] Build error: undefined reference to `Curl_setopt'
Thomas Mueller
thomas at chaschperli.ch
Wed Nov 30 11:52:08 MSK 2011
On 30.11.2011 08:14, Farhan Husain wrote:
> Hi all,
>
> I am trying to build the latest source from Git in an Ubuntu machine.
> The error I am getting is this:
>
> Making all in .
> quiet_libtool: link: gcc -I/usr/local/src/freeswitch/src/include
> -I/usr/local/src/freeswitch/src/include
> -I/usr/local/src/freeswitch/libs/libteletone/src -fPIC -Werror
> -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g
> -ggdb -DHAVE_OPENSSL -Wall -std=c99 -pedantic
> -Wdeclaration-after-statement -g -O2 -pthread -DLINUX=2 -D_REENTRANT
> -D_GNU_SOURCE -I/usr/local/src/freeswitch/libs/apr/include
> -I/usr/local/src/freeswitch/libs/apr-util/include
> -I/usr/local/src/freeswitch/libs/apr-util/xml/expat/lib
> -I/usr/local/src/freeswitch/libs/stfu
> -I/usr/local/src/freeswitch/libs/sqlite
> -I/usr/local/src/freeswitch/libs/pcre
> -I/usr/local/src/freeswitch/libs/speex/include -Ilibs/speex/include
> -I/usr/local/src/freeswitch/libs/srtp/include
> -I/usr/local/src/freeswitch/libs/srtp/crypto/include
> -Ilibs/srtp/crypto/include
> -I/usr/local/src/freeswitch/libs/spandsp/src
> -I/usr/local/src/freeswitch/libs/tiff-3.8.2/libtiff -DENABLE_SRTP
> -I/usr/local/src/freeswitch/libs/libedit/src -DSWITCH_HAVE_LIBEDIT
> -Ilibs/libedit/src -DSWITCH_HAVE_LIBEDIT -g -O2 -o .libs/freeswitch
> freeswitch-switch.o /usr/lib/libcurl.so -lm -lz
> ./.libs/libfreeswitch.so libs/apr/.libs/libapr-1.a -luuid -lrt -ldl
> -lcrypt -lpthread libs/libedit/src/.libs/libedit.a -lssl -lcrypto
> -lncurses -pthread -Wl,-rpath -Wl,/usr/local/freeswitch/lib
>
> ./.libs/libfreeswitch.so: undefined reference to `Curl_setopt'
> collect2: ld returned 1 exit status
> make[2]: *** [freeswitch] Error 1
>
> I have installed php-curl (sudo apt-get install php5-curl) but to no
> avail. Does anyone have any solution to this?
seems like the curl dev package is missing ( libcurl4-dev or
libcurl3-dev) -> sudo aptitude install libcurl4-dev
- Thomas
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list