Compilation errors with qemu in android-1.5 recent release

23 views
Skip to first unread message

Elvis Dowson

unread,
Apr 25, 2009, 7:14:03 AM4/25/09
to android-porting
Hi,
I just checked out the android-1.5 sdk that was just released
yesterday, and it fails during compilation because of qemu.

I have to now revert back to the android-sdk-1.5-pre.

Best regards,

Elvis

Teck Choon Giam

unread,
Apr 25, 2009, 1:20:47 PM4/25/09
to android...@googlegroups.com
On Sat, Apr 25, 2009 at 7:14 PM, Elvis Dowson <elvis....@gmail.com> wrote:
>
> Hi,
>      I just checked out the android-1.5 sdk that was just released
> yesterday, and it fails during compilation because of qemu.
>
> I have to now revert back to the android-sdk-1.5-pre.

I am able to get it compiled by commenting out the EAI_NODATA line
found in sockets.c file. I won't know but from the error it shown
EAI_NODATA no predefine or similar thus don't think will affect
current build images. Patch as below:

--- external/qemu/sockets.c.orig 2009-04-26 01:15:24.000000000 +0800
+++ external/qemu/sockets.c 2009-04-26 01:15:44.000000000 +0800
@@ -634,7 +634,7 @@
err = EHOSTDOWN;
break;

- case EAI_NODATA:
+ /* case EAI_NODATA: */
case EAI_NONAME:
err = ENOENT;
break;

Kindest regards,
Giam Teck Choon

paraeco

unread,
Apr 26, 2009, 10:13:02 PM4/26/09
to android-porting
Hi,

I faced the same problem while compiling Android on Ubuntu 9.04 .
But I fixed it in the make file instead.


--- ./myandroid-org/external/qemu/Makefile.android 2009-04-27
09:34:36.000000000 +0800
+++ ./myandroid/external/qemu/Makefile.android 2009-04-27
09:03:12.000000000 +0800
@@ -18,7 +18,7 @@

# this is needed to build the emulator on 64-bit Linux systems
ifeq ($(HOST_OS)-$(HOST_ARCH),linux-x86)
- MY_CFLAGS += -Wa,--32
+ MY_CFLAGS += -Wa,--32 -D_GNU_SOURCE
endif

ifeq ($(HOST_OS),freebsd)


Regards,
Paraeco

On Apr 26, 1:20 am, Teck Choon Giam <giamteckch...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages