cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problems cross compiling curl-7.33.0 with polarssl-1.3.2 support.

From: Nacho Man <nacho2874_at_yahoo.com>
Date: Sat, 7 Dec 2013 09:37:12 -0800 (PST)

Hello, I have been working on updating the PS3 Toolchain and the PS3 Libraries packages to the latest versions.  For example, the GIT hub for the toolchain uses GCC-4.7.0.  I'm using GCC-4.8.2. I have compiled polarssl-1.3.2 and have been having some difficulties with curl-7.33.0.  I had to modify ./lib/urldata.h to include the polarssl compat-1.2.h header file because some of the functions have changed.  I don't think this is causing my problems though.  When I try to compile curl, I get a segmentation fault when it's trying to link. I am building in a directory that I made called build-ppu.  These are my configuration options:   AS="powerpc64-ps3-elf-as" \   CFLAGS="-O2 -Wall" \   CXXFLAGS="-I${PSL1GHT}/ppu/include -I${PS3DEV}/portlibs/ppu/include" \   CPPFLAGS=" -I${PSL1GHT}/ppu/include -I${PS3DEV}/portlibs/ppu/include" \   LDFLAGS="-L${PSL1GHT}/ppu/lib -L${PS3DEV}/portlibs/ppu/lib" \   LIBS="-lnet -lsysutil -lsysmodule -lm -lpolarssl" \   PKG_CONFIG_LIBDIR="${PS3DEV}/portlibs/ppu/lib/pkgconfig" \   ../configure   --prefix="${PS3DEV}/portlibs/ppu"  --host="powerpc64-ps3-elf"  \       --without-ssl --with-polarssl \       --with-ca-bundle="../ca-bundle.crt" To get the ca-bundle.crt file, I had to download a certdata.txt file from: http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1 and then I ran perl ./lib/mk-ca-bundle.pl -n I had to add the AS="powerpc64-ps3-elf-as" option because from looking at the config.log file, it appears it's using 'as' from my system, not the cross compiler's version.  The curl-7.33.0 compiles fine without the --with-polarssl option.  When I pass that option to configure, from looking at the LDFLAGS variable in the config.log file, I see the following: LDFLAGS='-L/usr/local/ps3dev/ppu/lib -L/usr/local/ps3dev/portlibs/ppu/lib -L/lib' I believe the reason I'm getting the segfault is because of the -L/lib at the end there.  I have tried a bunch of things and I don't know if it's something on my end or if it's a bug with curl.  I have even tried using the --with-sysroot=${PS3DEV}.   My ${PS3DEV} variable is set to /usr/local/ps3dev.  Same as my ${PSL1GHT} variable.   Can anyone suggest something? Thanks and sorry for such a long e-mail.  I just wanted to provide as much information as possible.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-12-07