[Freeswitch-users] libcurl fails cross compilation on latest git

Ken Rice krice at freeswitch.org
Fri May 13 01:40:24 MSD 2011


Oh oh that does fix a similar issue on ubuntu 10.04... And to fix the ssl
issue add in libssl-dev on ubuntu to your pre-req packages now...

There are 3 FS modules mod_cidlookup, mod_xml_curl, and mod_xml_cdr that
still have issues... Related to the same bug... Makefile.in/am updates
probably required here looking into it now

K


On 5/12/11 3:42 PM, "Michael Jerris" <mike at jerris.com> wrote:

> commit 314713fce14c6daa01dea0f3e57be2e1b0152366
> Author: Michael Jerris <mike at jerris.com>
> Date:   Thu May 12 16:38:18 2011 -0400
> 
>     FS-2936: attempt to fix wrt build
> 
> try that maybe?
> 
> On May 12, 2011, at 2:30 PM, mazilo wrote:
> 
>> I just did a fresh untar with a git pull this morning to
>> dc2208e3fe0ec8bdd0eeb63e1db1111f6ac8f982 revision and now FS cross
>> compilation crashes on compiling libs/curl as shown below:
>> 
>> OpenWrt-quiet_libtool: compile:  arm-openwrt-linux-uclibcgnueabi-gcc
>> -DHAVE_CONFIG_H -I. -I./src/include -I./libs/xmlrpc-c
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/src/include
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/src/include
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/libs/libteletone/src
>> -fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -I.
>> -I./lua
>> -I/opt/openwrt-svn-trunk/staging_dir/target-arm_v5te_uClibc-0.9.32_eabi/usr/i
>> nclude
>> -I/opt/openwrt-svn-trunk/staging_dir/target-arm_v5te_uClibc-0.9.32_eabi/inclu
>> de
>> -I/opt/openwrt-svn-trunk/staging_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9
>> .32_eabi/usr/include
>> -I/opt/openwrt-svn-trunk/staging_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9
>> .32_eabi/include
>> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/libs/apr/include
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/libs/apr-util/include
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/libs/apr-util/xml/expat/lib
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/libs/stfu
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/libs/sqlite
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/libs/pcre
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/libs/speex/include
>> -Ilibs/speex/include
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/libs/srtp/include
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/libs/srtp/crypto/include
>> -Ilibs/srtp/crypto/include
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/libs/spandsp/src
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/libs/tiff-3.8.2/libtiff
>> -DCORE_USE_CURL -DENABLE_SRTP -DSWITCH_HAVE_ODBC
>> -I/opt/openwrt-svn-trunk/staging_dir/target-arm_v5te_uClibc-0.9.32_eabi/usr/i
>> nclude
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/libs/libedit/src
>> -DSWITCH_HAVE_LIBEDIT
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/src/include
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/src/include
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/libs/libteletone/src
>> -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1
>> -DHAVE_VISIBILITY=1 -g -ggdb -Wall -std=c99 -pedantic
>> -Wdeclaration-after-statement -I. -I./lua
>> -I/opt/openwrt-svn-trunk/staging_dir/target-arm_v5te_uClibc-0.9.32_eabi/usr/i
>> nclude
>> -I/opt/openwrt-svn-trunk/staging_dir/target-arm_v5te_uClibc-0.9.32_eabi/inclu
>> de
>> -I/opt/openwrt-svn-trunk/staging_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9
>> .32_eabi/usr/include
>> -I/opt/openwrt-svn-trunk/staging_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9
>> .32_eabi/include
>> -Os -pipe -march=armv5te -mtune=xscale -fno-caller-saves -fhonour-copts
>> -msoft-float -DLUA_USE_LINUX -fpic -std=gnu99 -Wno-format -MT
>> libfreeswitch_la-bit_operations.lo -MD -MP -MF
>> .deps/libfreeswitch_la-bit_operations.Tpo -c
>> libs/spandsp/src/bit_operations.c -o libfreeswitch_la-bit_operations.o
>>> /dev/null 2>&1
>> OpenWrt-quiet_libtool: compile:  arm-openwrt-linux-uclibcgnueabi-g++
>> -DHAVE_CONFIG_H -I. -I./src/include -I./libs/xmlrpc-c
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/src/include
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/src/include
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/libs/libteletone/src
>> -fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -I.
>> -I./lua
>> -I/opt/openwrt-svn-trunk/staging_dir/target-arm_v5te_uClibc-0.9.32_eabi/usr/i
>> nclude
>> -I/opt/openwrt-svn-trunk/staging_dir/target-arm_v5te_uClibc-0.9.32_eabi/inclu
>> de
>> -I/opt/openwrt-svn-trunk/staging_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9
>> .32_eabi/usr/include
>> -I/opt/openwrt-svn-trunk/staging_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9
>> .32_eabi/include
>> -I. -I./lua
>> -I/opt/openwrt-svn-trunk/staging_dir/target-arm_v5te_uClibc-0.9.32_eabi/usr/i
>> nclude
>> -I/opt/openwrt-svn-trunk/staging_dir/target-arm_v5te_uClibc-0.9.32_eabi/inclu
>> de
>> -I/opt/openwrt-svn-trunk/staging_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9
>> .32_eabi/usr/include
>> -I/opt/openwrt-svn-trunk/staging_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9
>> .32_eabi/include
>> -DLUA_USE_LINUX -fpic -Wno-format -MT switch_cpp.lo -MD -MP -MF
>> .deps/switch_cpp.Tpo -c src/switch_cpp.cpp  -fPIC -DPIC -o
>> .libs/switch_cpp.o
>> OpenWrt-quiet_libtool: compile:  arm-openwrt-linux-uclibcgnueabi-g++
>> -DHAVE_CONFIG_H -I. -I./src/include -I./libs/xmlrpc-c
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/src/include
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/src/include
>> -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswi
>> tch_git/libs/libteletone/src
>> -fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -I.
>> -I./lua
>> -I/opt/openwrt-svn-trunk/staging_dir/target-arm_v5te_uClibc-0.9.32_eabi/usr/i
>> nclude
>> -I/opt/openwrt-svn-trunk/staging_dir/target-arm_v5te_uClibc-0.9.32_eabi/inclu
>> de
>> -I/opt/openwrt-svn-trunk/staging_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9
>> .32_eabi/usr/include
>> -I/opt/openwrt-svn-trunk/staging_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9
>> .32_eabi/include
>> -I. -I./lua
>> -I/opt/openwrt-svn-trunk/staging_dir/target-arm_v5te_uClibc-0.9.32_eabi/usr/i
>> nclude
>> -I/opt/openwrt-svn-trunk/staging_dir/target-arm_v5te_uClibc-0.9.32_eabi/inclu
>> de
>> -I/opt/openwrt-svn-trunk/staging_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9
>> .32_eabi/usr/include
>> -I/opt/openwrt-svn-trunk/staging_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9
>> .32_eabi/include
>> -DLUA_USE_LINUX -fpic -Wno-format -MT switch_cpp.lo -MD -MP -MF
>> .deps/switch_cpp.Tpo -c src/switch_cpp.cpp -o switch_cpp.o >/dev/null 2>&1
>> OpenWrt-quiet_libtool: link: cannot find the library
>> `/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswit
>> ch_git/libs/curl/lib/libcurl.la'
>> or unhandled argument
>> `/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswit
>> ch_git/libs/curl/lib/libcurl.la'
>> make[4]: *** [libfreeswitch.la] Error 1
>> make[4]: Leaving directory
>> `/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswit
>> ch_git'
>> make[3]: *** [all] Error 2
>> make[3]: Leaving directory
>> `/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswit
>> ch_git'
>> make[2]: ***
>> [/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.32_eabi/freeswit
>> ch_git/.built]
>> Error 2
>> make[2]: Leaving directory `/opt/OpenWRT/feeds/packages/net/freeswitch_git'
>> make[1]: *** [package/feeds/local/freeswitch_git/compile] Error 2
>> make[1]: Leaving directory `/opt/openwrt-svn-trunk'
>> make: *** [package/freeswitch_git/compile] Error 2
>> 
>> 
>> -----
>> FreeSWITCH hosted on a Seagate DockStar with OpenWRT.
>> --
>> View this message in context:
>> http://freeswitch-users.2379917.n2.nabble.com/libcurl-fails-cross-compilation
>> -on-latest-git-tp6356793p6356793.html
>> Sent from the freeswitch-users mailing list archive at Nabble.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
> 
> 
> _______________________________________________
> 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





More information about the FreeSWITCH-users mailing list