I'm trying to build the simulator lib for x86 and I'm running into some strange problems, most of which seem related to header conflicts between bionic libc and my host (ubuntu 9.04).
A few things I resolved: LOCAL_CFLAGS += -D__off_t=uint32_t -D__off64_t=uint64_t in the makefile fixed some type issues. Commented out some of the 64 bit syscalls to avoid duplicate definitions (clearly lstat == lstat64 in the android libc) Adding signal.h and removing ftw.h fixed a few things too. Now I'm hitting a large number of errors like /usr/include/bits/types.h:134: error: conflicting types for '__dev_t' bionic/libc/include/sys/_types.h:43: error: previous declaration of '__dev_t' was here /usr/include/bits/types.h:137: error: conflicting types for '__ino_t' bionic/libc/include/sys/_types.h:49: error: previous declaration of '__ino_t' was here It seems odd to me that a) it's pulling both bionic and local headers and b) that there are conflicting definitions. For chuckles I tried building with -nostdinc to leave off the local headers but then I get a whole pile of other errors which makes me suspect that there is some legitimate dependency on at least some local headers. There are a bunch of other errors like /usr/include/sys/sem.h:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__THROW' that are mostly in the IPC headers (sem and shm). Any ideas to help me keep moving? cheers, Kris --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
