So I'm sitting here with a 3rd party project that happens to use link
to libcurl for network access. libcurl is built like so:

export CPP="arm-eabi-cpp" #libcurl doesn't prefix this automatically
export CPPFLAGS="-pipe -fPIC -I/opt/android-ndk-r4/build/platforms/
android-5/arch-arm/usr/include"
export CFLAGS="$CPPFLAGS -msoft-float -std=c99 -DANDROID"
export LDFLAGS="-L/opt/android-ndk-r4/build/platforms/android-5/arch-
arm/usr/lib"
export LIBS="-nostdlib -static-libgcc -lc -lstdc++ -ldl -lm"
./configure --target=arm-android-eabi --host=arm-eabi --disable-shared

More info: this is an Android 2.2 VM, bare except for our app. I've
also tried with 2.0 with no change in symptoms

The app itself works fine, until we try to talk to the network... curl
reports:

* Curl_ipv4_resolve_r failed for foobar.com
* Couldn't resolve host 'foobar.com'
* Closing connection #0
* Couldn't resolve host name

I replaced the URL with the raw IP address and received:

* About to connect() to 1.2.3.4 port 80 (#0)
* couldn't connect to host
* Closing connection #0
* Couldn't connect to server

ping also has issues, though it DOES resolve the ip address:

# ping -c3 google.com
PING google.com (74.125.95.99) 56(84) bytes of data.
--- google.com ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2002ms

Yet, the browser can browse sites just fine.

What am I missing here? How do I make this work?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to