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:
> On Sat, Apr 25, 2009 at 7:14 PM, Elvis Dowson <elvis.dow...@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
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to