curl-library
Problems cross compiling curl-7.33.0 with polarssl-1.3.2 support.
Date: Sat, 7 Dec 2013 13:07:01 -0800 (PST)
Well, I've gotten a little further. I found out how to remove the /lib from the configuration file. These are my new configuration options:
AR="${PSL1GHT}/ppu/bin/powerpc64-ps3-elf-ar" \
AS="${PSL1GHT}/ppu/bin/powerpc64-ps3-elf-as" \
CC="${PSL1GHT}/ppu/bin/powerpc64-ps3-elf-gcc" \
CPP="${PSL1GHT}/ppu/bin/powerpc64-ps3-elf-cpp" \
CXX="${PSL1GHT}/ppu/bin/powerpc64-ps3-elf-g++" \
CXXCPP="${PSL1GHT}/ppu/bin/powerpc64-ps3-elf-cpp" \
LD="${PSL1GHT}/ppu/bin/powerpc64-ps3-elf-ld" \
NM="${PSL1GHT}/ppu/bin/powerpc64-ps3-elf-nm" \
RANLIB="${PSL1GHT}/ppu/bin/powerpc64-ps3-elf-ranlib" \
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" \
PKG_CONFIG_LIBDIR="${PS3DEV}/portlibs/ppu/lib/pkgconfig" \
PKG_CONFIG_PATH="${PS3DEV}/portlibs/ppu/lib/pkgconfig" \
../configure --prefix="${PS3DEV}/portlibs/ppu" --host="powerpc64-ps3-elf" \
--without-ssl --with-polarssl="/usr/local/ps3dev/portlibs/ppu" \
--with-sysroot="${PS3DEV}/ppu/lib" --with-ca-bundle="../ca-bundle.crt"
I believe the PKG_CONFIG_LIBDIR or the PKG_CONFIG_PATH fixed the LDFLAGS="... /lib" problem from showing up in the config.log.
When I run ./libtool --config from inside my build directory, I see something that maybe causing my problems. It's this line here:
# Run-time system search path for libraries.
sys_lib_dlsearch_path_spec="/lib /usr/lib"
Could this be my problem? Make errors out at this:
/bin/sh ../libtool --tag=CC --mode=link /usr/local/ps3dev/ppu/bin/powerpc64-ps3-elf-gcc -O2 -Wall -Wno-system-headers -L/usr/local/ps3dev/ppu/lib -L/usr/local/ps3dev/portlibs/ppu/lib -L/usr/local/ps3dev/portlibs/ppu/lib -o curl curl-tool_binmode.o curl-tool_bname.o curl-tool_cb_dbg.o curl-tool_cb_hdr.o curl-tool_cb_prg.o curl-tool_cb_rea.o curl-tool_cb_see.o curl-tool_cb_wrt.o curl-tool_cfgable.o curl-tool_convert.o curl-tool_dirhie.o curl-tool_doswin.o curl-tool_easysrc.o curl-tool_formparse.o curl-tool_getparam.o curl-tool_getpass.o curl-tool_help.o curl-tool_helpers.o curl-tool_homedir.o curl-tool_hugehelp.o curl-tool_libinfo.o curl-tool_main.o curl-tool_metalink.o curl-tool_mfiles.o curl-tool_msgs.o curl-tool_operate.o curl-tool_operhlp.o curl-tool_panykey.o curl-tool_paramhlp.o curl-tool_parsecfg.o curl-tool_setopt.o curl-tool_sleep.o curl-tool_urlglob.o curl-tool_util.o curl-tool_vms.o curl-tool_writeenv.o curl-tool_writeout.o
curl-tool_xattr.o ../lib/curl-strtoofft.o ../lib/curl-strdup.o ../lib/curl-rawstr.o ../lib/curl-nonblock.o ../lib/libcurl.la -lpolarssl -lz -lnet -lsysutil -lsysmodule -lm
This is the actual error:
libtool: link: /usr/local/ps3dev/ppu/bin/powerpc64-ps3-elf-gcc -O2 -Wall -Wno-system-headers -o curl curl-tool_binmode.o curl-tool_bname.o curl-tool_cb_dbg.o curl-tool_cb_hdr.o curl-tool_cb_prg.o curl-tool_cb_rea.o curl-tool_cb_see.o curl-tool_cb_wrt.o curl-tool_cfgable.o curl-tool_convert.o curl-tool_dirhie.o curl-tool_doswin.o curl-tool_easysrc.o curl-tool_formparse.o curl-tool_getparam.o curl-tool_getpass.o curl-tool_help.o curl-tool_helpers.o curl-tool_homedir.o curl-tool_hugehelp.o curl-tool_libinfo.o curl-tool_main.o curl-tool_metalink.o curl-tool_mfiles.o curl-tool_msgs.o curl-tool_operate.o curl-tool_operhlp.o curl-tool_panykey.o curl-tool_paramhlp.o curl-tool_parsecfg.o curl-tool_setopt.o curl-tool_sleep.o curl-tool_urlglob.o curl-tool_util.o curl-tool_vms.o curl-tool_writeenv.o curl-tool_writeout.o curl-tool_xattr.o ../lib/curl-strtoofft.o ../lib/curl-strdup.o ../lib/curl-rawstr.o ../lib/curl-nonblock.o -L/usr/local/ps3dev/ppu/lib
-L/usr/local/ps3dev/portlibs/ppu/lib ../lib/.libs/libcurl.a -lpolarssl -lz -lnet -lsysutil -lsysmodule -lm
collect2: error: ld terminated with signal 11 [Segmentation fault]
make[2]: *** [curl] Error 1
make[2]: Leaving directory `/home/spork/src/toolchain/build/ps3libraries/build/curl-7.33.0/build-ppu/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/spork/src/toolchain/build/ps3libraries/build/curl-7.33.0/build-ppu/src'
make: *** [all-recursive] Error 1
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-12-07