cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problems using libcurl with c-ares

From: Spork Schivago <sporkschivago_at_gmail.com>
Date: Tue, 26 Aug 2014 21:02:46 -0400

Hello everyone. I'm having some issues here and would like some help.
I compile and install polarssl and c-ares. I'm using a cross compiler
and I'm compiling for the Playstation 3 using an open source
toolchain. When compile libcurl with the following options:
  AR="${PS3DEV}/ppu/bin/powerpc64-ps3-elf-ar" \
  AS="${PS3DEV}/ppu/bin/powerpc64-ps3-elf-as" \
  CC="${PS3DEV}/ppu/bin/powerpc64-ps3-elf-gcc" \
  CPP="${PS3DEV}/ppu/bin/powerpc64-ps3-elf-gcc -E" \
  CXX="${PS3DEV}/ppu/bin/powerpc64-ps3-elf-g++" \
  CXXCPP="${PS3DEV}/ppu/bin/powerpc64-ps3-elf-g++ -E" \
  LD="${PS3DEV}/ppu/bin/powerpc64-ps3-elf-ld" \
  NM="${PS3DEV}/ppu/bin/powerpc64-ps3-elf-nm" \
  RANLIB="${PS3DEV}/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
-I${PSL1GHT}/ppu/include/net" \
  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="${PS3DEV}/portlibs/ppu/include/polarssl" \
  --enable-ares="${PS3DEV}/portlibs"
--includedir="${PS3DEV}/portlibs/ppu/include" \
  --libdir="${PS3DEV}/portlibs/ppu/lib" --with-ca-bundle="${CA_CERT}"

All the environmental variables are correct. When I use
--enable-ares though, I run into problems. I compiled the sample
simple.c example found here: http://curl.haxx.se/libcurl/c/simple.html

and when I execute it on the PS3, I get this error message:
curl_easy_perform() failed: Couldn't resolve host name

Could some one please help me figure out what I'm doing wrong? If I
compile libcurl without c-ares, it works as expected. I'm using
c-ares version 1.10.0, libcurl version 7.37.1 and polarssl version
1.3.7. Any help would be greatly appreciated.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-08-27