d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\libnativehelper\include\nativehelper\jni.h
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\system\core\include\android\log.h
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\system\core\include\cutils\native_handle.h
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\include\
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\core\jni\AndroidRuntime.cpp
C:\wxWidgets-2.9.2\include/utils/Errors.h:29:9: error: 'int32_t' does not name a type
#define HAVE_MS_C_RUNTIME
#ifdef HAVE_MS_C_RUNTIME
typedef int status_t;
#else
typedef int32_t status_t;
#endif
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111101-froyo\dalvik\vm\Jni.c
jint JNI_CreateJavaVM(JavaVM** p_vm, JNIEnv** p_env, void* vm_args)
service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
socket zygote stream 666
onrestart write /sys/android_power/request_state wake
onrestart write /sys/power/state on
onrestart restart media
C:\wxWidgets-2.9.2\include/binder/IPCThreadState.h:117:13: error: 'uid_t' does not name a type
#define HAVE_WIN32_PROC
#ifdef HAVE_WIN32_PROC
typedef int uid_t;
#endif
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp:30: undefined reference to `__android_log_print'
http://topic.csdn.net/u/20110121/09/857278ce-9f74-4f42-ac2c-62c2903733ec.html
#include
Android.mk:
LOCAL_SHARED_LIBRARIES := liblog libcutils
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\system\core\liblog\
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\system\core\libcutils\
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111101-froyo\external\skia\include\core\SkGraphics.h
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111101-froyo\external\skia\include\core\SkTypes.h
crtdbg.h: No such file or directory
http://forums.codeblocks.org/index.php?topic=5054.0
[solved] I finally reinstalled C::B aside 'VC++ Toolkit 2003' and 'Platform SDK' which provides the missing crtdbg.h file (in [pSDK_folder]\Include\crt). The process is described in:
http://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE
What I am still missing now are precompiled headers which is available, as I understood, only for MinGW in rc2. I assume that it will be soon implemented on other compilers.
In fact, I only the "core SDK" of 'Platform SDK', and then I get the crtdbg.h I need.
c:\Program Files\Microsoft Platform SDK\Include\crt\crtdbg.h
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp:32:28: fatal error: SkImageDecoder.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\include\images\SkImageDecoder.h
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/core/SkPreConfig.h:52:27: fatal error: sk_stdint.h: No such file or directory
I just download this file as the sk_stdint.h:
http://code.google.com/p/skia/source/browse/trunk/include/config/sk_stdint.h?r=460
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\libnativehelper\include\nativehelper\jni.h
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\libnativehelper\include\nativehelper\JNIHelp.h
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\core\jni\android_util_Binder.h
C:\wxWidgets-2.9.2\include/binder/IServiceManager.h:81:61: error: 'uid_t' has not been declared
typedef int uid_t;
bool checkPermission(const String16& permission, pid_t pid, uid_t uid);
C:\wxWidgets-2.9.2\include/binder/Parcel.h:61:61: error: expected ',' or '...' before 'struct'
status_t writeInterfaceToken(const String16& interface);
this is because "interface" is defined as stuct in c:\mingw-4.6.1\include\basetyps.h:
1 # define _COM_interface struct
2 # ifndef __OBJC__
3 # define interface _COM_interface
4 # endif
So I comment line 3.
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp: In function 'void android::blockSigpipe()':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp:506:22: error: 'sigemptyset' was not declared in this scope
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp:507:22: error: 'SIGPIPE' was not declared in this scope
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp:507:29: error: 'sigaddset' was not declared in this scope
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp:508:43: error: 'sigprocmask' was not declared in this scope
Get mingw-compat.h from http://gauche.sourcearchive.com/documentation/0.8.3/mingw-compat_8h-source.html.
sigemptyset and sigaddset are defined in mingw-compat.h.
get sigprocmask.c from http://git.savannah.gnu.org/cgit/gnulib.git/tree/lib/sigprocmask.c, and add declaration of sigprocmask in mingw-compat.h:
int sigprocmask (int operation, const sigset_t *set, sigset_t *old_set);
add header in AndroidRuntime.cpp:
#include "mingw-compat.h"
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:99:5: error: '__p_sig_fn_t' does not name a type
add header file:
#include
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:18:20: fatal error: config.h: No such file or directory
simply comment that line.
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:114:1: error: unknown type name 'sigset_t'
sigset_t is declared in "mingw-compat.h", so add header file:
#include "mingw-compat.h"
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:69:1: error: unknown type name 'jmp_buf'
https://ccrma.stanford.edu/courses/250a-fall-2002/docs/avrgcc/setjmp_8h-source.html
/*
jmp_buf:
offset size description
0 16 call-saved registers (r2-r17)
16 2 frame pointer (r29:r28)
18 2 stack pointer (SPH:SPL)
20 1 status register (SREG)
21 3 return address (PC) (2 bytes used for <=128K flash)
24 = total size
*/
typedef struct {
/* call-saved registers */
unsigned char __j_r2;
unsigned char __j_r3;
unsigned char __j_r4;
unsigned char __j_r5;
unsigned char __j_r6;
unsigned char __j_r7;
unsigned char __j_r8;
unsigned char __j_r9;
unsigned char __j_r10;
unsigned char __j_r11;
unsigned char __j_r12;
unsigned char __j_r13;
unsigned char __j_r14;
unsigned char __j_r15;
unsigned char __j_r16;
unsigned char __j_r17;
/* frame pointer, stack pointer, status register, program counter */
unsigned int __j_fp; /* Y */
unsigned int __j_sp;
unsigned char __j_sreg;
unsigned int __j_pc;
unsigned char __j_pch; /* only devices with >128K bytes of flash */
} jmp_buf[1];
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:103:12: error: conflicting declaration 'typedef struct
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/setjmp.h:33:17: error: 'jmp_buf' has a previous declaration as 'typedef int jmp_buf [16]'
use the following instead:
#include
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:152:1: error: unknown type name 'pid_t'
in c:\mingw-4.6.1\include\sys\types.h:
#ifndef _PID_T_
#define _PID_T_
typedef int _pid_t;
#ifndef _NO_OLDNAMES
typedef _pid_t pid_t;
#endif
#endif /* Not _PID_T_ */
so in mingw-compat.h:
typedef int pid_t;
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:123:32: error: unknown type name 'off_t'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/stdio.h:78:9: error: 'off_t' does not name a type
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:124:35: error: unknown type name 'off_t'
http://blog.csdn.net/ccccdddxxx/article/details/6342540
http://www.linuxsir.org/bbs/thread180136.html
typedef long int off_t;
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:116:1: error: expected identifier or '(' before 'const'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:116:1: error: expected ')' before '&' token
sigismember is defined in mingw-compat.h:
#define sigismember(pset, num) (*(pset) & (1L<<(num)))
and this leads to the error.
So I comment the definition in mingw-compat.h and add declaration in mingw-compat.h:
//#define sigismember(pset, num) (*(pset) & (1L<<(num)))
int sigismember (const sigset_t *set, int sig);
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:132:1: error: expected ')' before '*' token
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:132:1: error: expected ')' before '=' token
//#define sigemptyset(pset) (*(pset) = 0)
int sigemptyset (sigset_t *set);
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:139:1: error: expected ')' before '*' token
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:139:1: error: expected ')' before '|=' token
//#define sigaddset(pset, num) (*(pset) |= (1L<<(num)))
int sigaddset (sigset_t *set, int sig);
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:159:1: error: expected ')' before '*' token
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:159:1: error: expected ')' before '&=' token
//#define sigdelset(pset, num) (*(pset) &= ~(1L<<(num)))
int sigdelset (sigset_t *set, int sig);
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:180:1: error: expected ')' before '*' token
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:180:1: error: expected ')' before '=' token
//#define sigfillset(pset) (*(pset) = (unsigned int)-1)
int sigfillset (sigset_t *set);
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp:508:22: error: 'SIGPIPE' was not declared in this scope
http://www.oschina.net/code/explore/git-1.7.3/compat/mingw.h
#define SIGPIPE 13
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp:919:42: error: 'setenv' was not declared in this scope
http://blog.csdn.net/llrraa2010/article/details/7961715
setenv() is not implemented on MinGW, so we have to use putenv().
http://zhidao.baidu.com/question/117087055.html
http://blog.csdn.net/shexinwei/article/details/7008862
if (rootDir == NULL) {
rootDir = "/system";
if (!hasDir("/system")) {
LOG_FATAL("No root directory specified, and /android does not exist.");
goto bail;
}
char *t = new char[256];
strcpy(t,"ANDROID_ROOT=");
strcat(t, rootDir);
putenv(t);
delete [] t;
// setenv("ANDROID_ROOT", rootDir, 1);
}
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp:115: undefined reference to `strlcpy'
ctrl+left click, I know that strlcpy is defined in cutils\memory.h, then I search memory in android source. Memory.c shows up. that's it: system\core\libcutils\memory.c.
/app_main.cpp:121: undefined reference to `android::mArgC'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp:122: undefined reference to `android::mArgV'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp:124: undefined reference to `android::mArgLen'
// These are global variables in ProcessState.cpp
frameworks\base\libs\binder\ProcessState.cpp
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\include\private\binder\binder_module.h
C:\wxWidgets-2.9.2\include/binder/IMemory.h:22:22: fatal error: sys/mman.h: No such file or directory
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111101-froyo\bionic\libc\include\sys\mman.h
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/_types.h:40:28: fatal error: machine/_types.h: No such file or directory
bionic\libc\arch-x86\include\machine\_types.h
actually there's also arch-arm, but I think x86 is the right choice, since I'm working on x86.
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/arch-x86/include/machine/_types.h:60:25: fatal error: linux/types.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\kernel\common\linux\types.h
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/linux/posix_types.h:41:29: fatal error: asm/posix_types.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\kernel\arch-x86\asm\posix_types.h
C:\wxWidgets-2.9.2\include/binder/IPCThreadState.h:27:15: error: conflicting declaration 'typedef int uid_t'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/types.h:101:33: error: 'uid_t' has a previous declaration as 'typedef __kernel_uid32_t uid_t'
comment the definition of uid_t in IPCThreadState.h:
//typedef int uid_t;
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp:157: undefined reference to `set_process_name'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp:161: undefined reference to `set_process_name'
c:\wxwidgets-2.9.2\include\cutils\process_name.h
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\libcutils\process_name.c
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp:74: undefined reference to `android::IPCThreadState::self()'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\libs\binder\IPCThreadState.cpp
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/IPCThreadState.cpp:291:8: error: 'pthread_mutex_t' does not name a type
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/IPCThreadState.cpp:293:8: error: 'pthread_key_t' does not name a type
I get the following from c:\mingw-4.6.1\include\pthread.h:
typedef struct pthread_mutex_t_ * pthread_mutex_t;
I try to search in c:\mingw-4.6.1, but still get no definition for pthread_mutex_t_. I don't know why.
But there's some complete definition of pthread_mutex_t in E:\android-ndk-r7-windows\mytoolchain\sysroot\usr\include\pthread.h, I will try that.
/*
* Types
*/
typedef struct
{
int volatile value;
} pthread_mutex_t;
But I'm wrong.
http://hi.baidu.com/gjviootibjbgtyd/item/a21895b861962c462bebe3a2
It's because the pthread.h is not actually included in IPCThreadState.cpp. So:
#define HAVE_PTHREADS
#ifdef HAVE_PTHREADS
#include
#include
#include
#endif
C:/wxWidgets-2.9.2/include/utils/RefBase.h:365: undefined reference to `android::RefBase::decStrong(void const*) const'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\libs\utils\RefBase.cpp
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/utils/RefBase.cpp:51:1: error: 'Destroyer' in 'class android::RefBase' does not name a type
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/utils/RefBase.cpp:63:5: error: 'Destroyer' does not name a type
http://code.metager.de/source/history/CyanogenMod/AndroidFrameworksBase/include/utils/RefBase.h
fix a memory leak and memory corruption in RefBase
we would leak a weakref_impl if a RefBase was never incWeak()'ed.
there was also a dangling pointer that would cause memory corruption
and double-delete when a custom destroyer was used to delay the
execution of ~RefBase.
it turns out that the custom destroyer feature caused most of the
problems, so it's now gone. The only client was SurfaceFlinger
who now handles things on its own.
RefBase is essentially back its "gingerbread" state, but the
code was slightly cleaned-up.
It seems that the destroyer was deleted.
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/utils/RefBase.cpp:483:67: error: passing 'const android::RefBase::weakref_impl' as 'this' argument of 'void android::RefBase::weakref_impl::trackMe(bool, bool)' discards qualifiers [-fpermissive]
http://buildall.wordpress.com/2011/05/27/how-to-fix-problem-of-incompatibility-between-gcc-4-6-and-android-2-3-gingerbread/
add -fpermissive to the c++ compiler options.
strtok
Split string into tokens
http://baike.baidu.com/view/1028553.htm
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/liblog/logd_write.c:90: undefined reference to `writev'
http://lists.fedoraproject.org/pipermail/mingw/2008-November/000032.html
http://svn.dojotoolkit.org/src/trunk/src/dot/proxy/mingw.h
http://svn.dojotoolkit.org/src/trunk/src/dot/proxy/mingw.c
in c:\wxwidgets-2.9.2\include\cutils\uio.h, comment:
extern int writev( int fd, const struct iovec* vecs, int count );
add:
#include
static inline int writev(int sock, struct iovec *iov, int nvecs)
{
DWORD ret;
if (WSASend(sock, (LPWSABUF)iov, nvecs, &ret, 0, NULL, NULL) == 0) {
return ret;
}
return -1;
}
from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/liblog/logd_write.c:29:
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:64:3: error: conflicting types for 'fd_set'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/select.h:38:27: note: previous declaration of 'fd_set' was here
in d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\include\sys\select.h:
//typedef __kernel_fd_set fd_set;
#include
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:109:8: error: redefinition of 'struct timeval'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/linux/time.h:25:8: note: originally defined here
in d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/linux/time.h:
//struct timeval {
// time_t tv_sec;
// suseconds_t tv_usec;
//};
#include
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/select.h:41:12: error: conflicting types for 'select'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:632:32: note: previous declaration of 'select' was here
in d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/select.h:
//extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:153:12: error: conflicting types for 'gethostname'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:635:12: note: previous declaration of 'gethostname' was here
in d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:
//extern int gethostname(char *, size_t);
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:38:13: error: conflicting declaration 'typedef int gid_t'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/types.h:59:30: error: 'gid_t' has a previous declaration as 'typedef __kernel_gid32_t gid_t'
in d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/types.h:
//typedef __kernel_gid32_t gid_t;
typedef int gid_t;
In file included from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp:38:0:
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:41:13: error: conflicting declaration 'typedef int uid_t'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/types.h:103:33: error: 'uid_t' has a previous declaration as 'typedef __kernel_uid32_t uid_t'
in d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/types.h:
//typedef __kernel_uid32_t uid_t;
typedef int uid_t;
In file included from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp:38:0:
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:70:18: error: conflicting declaration 'typedef long int sigjmp_buf [10]'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/setjmp.h:46:14: error: 'sigjmp_buf' has a previous declaration as 'typedef long int sigjmp_buf [11]'
in d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:
//typedef jmp_buf sigjmp_buf;
typedef long sigjmp_buf[_JBLEN + 1];
D:\linux\linuxkernel\android\src\androix-xserver\androix-xserver\android\jni\androix.c
D:\linux\linuxkernel\android\src\androix-xserver\androix-xserver\dix\main.c
learn log and argv initialization
char *argv[] = {":1"};
char *envp[] = {};
LOG("fixing up /data/data/net.homeip.ofn.androix/usr/bin/xkbcomp");
dix_main(1, argv, envp);
wxLog Class
In file included from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:31:0:
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:95:5: error: conflicting types for 'sigismember'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/signal.h:56:23: note: previous definition of 'sigismember' was here
In file included from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:21:0:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/signal.h:65:23: error: static declaration of 'sigaddset' follows non-static declaration
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:91:5: note: previous declaration of 'sigaddset' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/signal.h:74:23: error: static declaration of 'sigdelset' follows non-static declaration
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:93:5: note: previous declaration of 'sigdelset' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/signal.h:83:23: error: static declaration of 'sigemptyset' follows non-static declaration
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:87:5: note: previous declaration of 'sigemptyset' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/signal.h:89:23: error: static declaration of 'sigfillset' follows non-static declaration
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:89:5: note: previous declaration of 'sigfillset' was here
in d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h
//int sigismember (const sigset_t *set, int sig);
static __inline__ int sigismember(sigset_t *set, int signum)
{
unsigned long *local_set = (unsigned long *)set;
signum--;
return (int)((local_set[signum/LONG_BIT] >> (signum%LONG_BIT)) & 1);
}
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/signal.h
#include
//static __inline__ int sigismember(sigset_t *set, int signum)
//{
// unsigned long *local_set = (unsigned long *)set;
// signum--;
// return (int)((local_set[signum/LONG_BIT] >> (signum%LONG_BIT)) & 1);
//}
from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:21:
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:113:8: error: redefinition of 'struct sigaction'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/arch-x86/asm/signal.h:91:8: note: originally defined here
in d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:
//struct sigaction {
// int sa_flags;
// sigset_t sa_mask;
// __p_sig_fn_t sa_handler; /* see mingw/include/signal.h about the type */
//};
struct sigaction {
union {
__sighandler_t _sa_handler;
void (*_sa_sigaction)(int, struct siginfo *, void *);
} _u;
sigset_t sa_mask;
unsigned long sa_flags;
void (*sa_restorer)(void);
};
in d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/arch-x86/asm/signal.h:
#include
//struct sigaction {
// union {
// __sighandler_t _sa_handler;
// void (*_sa_sigaction)(int, struct siginfo *, void *);
// } _u;
// sigset_t sa_mask;
// unsigned long sa_flags;
// void (*sa_restorer)(void);
//};
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:116:1: error: conflicting types for 'sigismember'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:128:23: note: previous definition of 'sigismember' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:132:1: error: redefinition of 'sigemptyset'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:115:23: note: previous definition of 'sigemptyset' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:139:1: error: redefinition of 'sigaddset'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:97:23: note: previous definition of 'sigaddset' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:159:1: error: redefinition of 'sigdelset'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:106:23: note: previous definition of 'sigdelset' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:180:1: error: redefinition of 'sigfillset'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:121:23: note: previous definition of 'sigfillset' was here
since code in mingw-compat.h is from android, I would comment all the conflicting types in sigprocmask.c
In file included from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/libcutils/process_name.c:20:0:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:95:14: error: conflicting types for 'getlogin'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:185:13: note: previous declaration of 'getlogin' was here
In file included from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/libcutils/process_name.c:20:0:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:95:14: error: conflicting types for 'getlogin'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:185:13: note: previous declaration of 'getlogin' was here
from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/libcutils/process_name.c:23:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/asm-generic/fcntl.h:117:8: error: redefinition of 'struct flock'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:201:8: note: originally defined here
from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp:21:
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:136:5: error: previous declaration of 'int sigprocmask(int, const sigset_t*, sigset_t*)' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/signal.h:113:57: error: conflicts with new declaration with 'C' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:161:5: error: previous declaration of 'int sigaction(int, const sigaction*, sigaction*)' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/signal.h:114:71: error: conflicts with new declaration with 'C' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:176:5: error: previous declaration of 'int kill(int, int)' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/signal.h:122:27: error: conflicts with new declaration with 'C' linkage
from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/utils/RefBase.cpp:23:
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:175:5: error: previous declaration of 'int fork()' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:54:24: error: conflicts with new declaration with 'C' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:172:7: error: previous declaration of 'int getppid()' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:60:27: error: conflicts with new declaration with 'C' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:167:7: error: previous declaration of 'uid_t getuid()' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:79:25: error: conflicts with new declaration with 'C' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:168:7: error: previous declaration of 'uid_t geteuid()' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:81:26: error: conflicts with new declaration with 'C' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:169:7: error: previous declaration of 'gid_t getgid()' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:83:25: error: conflicts with new declaration with 'C' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:170:7: error: previous declaration of 'gid_t getegid()' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:85:26: error: conflicts with new declaration with 'C' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:174:5: error: previous declaration of 'int link(const char*, const char*)' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:109:43: error: conflicts with new declaration with 'C' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:177:5: error: previous declaration of 'int pipe(int*)' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:114:22: error: conflicts with new declaration with 'C' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:180:5: error: previous declaration of 'int truncate(const char*, off_t)' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:125:40: error: conflicts with new declaration with 'C' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:181:5: error: previous declaration of 'int ftruncate(int, off_t)' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:146:32: error: conflicts with new declaration with 'C' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:182:14: error: previous declaration of 'unsigned int alarm(unsigned int)' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:149:39: error: conflicts with new declaration with 'C' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:178:7: error: previous declaration of 'char* ttyname(int)' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:166:25: error: conflicts with new declaration with 'C' linkage
comment mingw-compat.h
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/IPCThreadState.cpp: In member function 'void android::IPCThreadState::joinThreadPool(bool)':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/IPCThreadState.cpp:449:23: error: expected unqualified-id before '=' token
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/IPCThreadState.cpp:450:20: error: expected primary-expression before '<' token
IN is defined in c:\mingw-4.6.1\include\windef.h:
in d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/IPCThreadState.cpp:
size_t myIN = mIn.dataAvail();
if (myIN < sizeof(int32_t)) continue;
undefined reference to `WSASend@28\\\'
http://www.allegro.cc/forums/thread/604734
Ask suggests that those functions are defined in Ws2_32.lib. Try linking with it.
so add -lws2_32 to the linker option.
./Debug/liblog_logd_write.o: In function `_write_to_log_kernel':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/liblog/logd_write.c:91: undefined reference to `__errno'
c:\mingw-4.6.1\include\pthread.h
try -lpthread
c:\mingw-4.6.1\include\pthread.h
origin
/*
* Thread-Safe C Runtime Library Mappings.
*/
#ifndef _UWIN
# if defined(NEED_ERRNO)
PTW32_DLLPORT int * PTW32_CDECL _errno( void );
# else
# ifndef errno
# if (defined(_MT) || defined(_DLL))
__declspec(dllimport) extern int * __cdecl _errno(void);
# define errno (*_errno())
# endif
# endif
# endif
#endif
is changed to.
/*
* #ifndef _UWIN
# if defined(NEED_ERRNO)
PTW32_DLLPORT int * PTW32_CDECL _errno( void );
# else
# ifndef errno
# if (defined(_MT) || defined(_DLL))
__declspec(dllimport) extern int * __cdecl _errno(void);
# define errno (*_errno())
# endif
# endif
# endif
#endif
*/
PTW32_DLLPORT int * PTW32_CDECL _errno( void );
the _errno source
e:\tools\webzip\wget\gcc for Win32\mingw\pthreads-w32-2.9.0-mingw32-pre-20110507-2-src.tar\pthreads-w32-2.9.0-mingw32-pre-20110507-2-src\sources\pthreads-20110507\pthreads\errno.c
from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/dialogs.cpp:18:
C:\wxWidgets-2.9.2\include/wx/defs.h:1137:25: error: conflicting declaration 'typedef wxInt32 ssize_t'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/arch-x86/include/machine/_types.h:50:24: error: 'ssize_t' has a previous declaration as 'typedef long int ssize_t'
in C:\wxWidgets-2.9.4\include\wx\defs.h:
#if !defined(_SSIZE_T) && !defined(_SSIZE_T_DEFINED_)
typedef wxInt32 ssize_t;
#endif
in d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/arch-x86/include/machine/_types.h
#if !defined(_SSIZE_T) && !defined(_SSIZE_T_DEFINED_)
#define _SSIZE_T
#define _SSIZE_T_DEFINED_
/* If we really don't have ssize_t, provide our own version. */
#ifndef HAVE_SSIZE_T
typedef long int ssize_t;
#endif
//C:\wxWidgets-2.9.2\include/wx/defs.h:1139:25: error: conflicting declaration 'typedef wxInt32 ssize_t'
//typedef long int ssize_t;
#endif
C:\wxWidgets-2.9.2\include/wx/wxcrtbase.h: In function 'char* wxStrdup(const char*)':
C:\wxWidgets-2.9.2\include/wx/wxcrtbase.h:757:62: error: '_strdup' was not declared in this scope
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\AndroidRuntime\mingw-compat.c
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\AndroidRuntime\mingw-compat.h
http://stackoverflow.com/questions/5573775/strdup-error-on-g-with-c0x
http://forums.wxwidgets.org/viewtopic.php?t=12974&p=58916
c:\Program Files\Microsoft Platform SDK\src\crt\strdup.c
in d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\AndroidRuntime\mingw-compat.h
#ifndef _STRDUP_DEFINED
char *_strdup(const char *str);
#define _STRDUP_DEFINED
#endif
in C:\wxWidgets-2.9.2\include/wx/wxcrtbase.h
#include
inline char* wxStrdup(const char *s) { return wxCRT_StrdupA(s); }
C:\wxWidgets-2.9.2\include/wx/wxcrtbase.h: In function 'wchar_t* wxStrdup(const wchar_t*)':
C:\wxWidgets-2.9.2\include/wx/wxcrtbase.h:758:68: error: '_wcsdup' was not declared in this scope
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\apple\wcsdup.c
in d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\AndroidRuntime\mingw-compat.h
#ifndef _WCSDUP_DEFINED
wchar_t *
_wcsdup(const wchar_t *str);
#define _WCSDUP_DEFINED
#endif
from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/dialogs.cpp:25:
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/include/c++/cwchar:164:11: error: '::vfwscanf' has not been declared
in fact it's defined in
#if _GLIBCXX_HAVE_WCHAR_H
#include
#endif
and _GLIBCXX_HAVE_WCHAR_H has been defined in
/* Define to 1 if you have the
#define _GLIBCXX_HAVE_WCHAR_H 1
C:\MinGW-4.6.1\lib\gcc\mingw32\4.6.1\include\c++\tr1\wchar.h fro
http://lists.freebsd.org/pipermail/freebsd-standards/2005-January/000786.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012
from the above links, I think the definitions are not useful. maybe I just comment them all.
C:\wxWidgets-2.9.2\include/wx/wxcrt.h: In function 'FILE* wxFopen(const wxString&, const wxString&)':
C:\wxWidgets-2.9.2\include/wx/wxcrt.h:755:54: error: '_wfopen' was not declared in this scope
C:\wxWidgets-2.9.2\include/wx/wxcrt.h: In function 'FILE* wxFopen(const wxString&, const wxString&)':
C:\wxWidgets-2.9.2\include/wx/wxcrt.h:755:54: error: '_wfopen' was not declared in this scope
C:\wxWidgets-2.9.2\include/wx/wxcrt.h: In function 'FILE* wxFreopen(const wxString&, const wxString&, FILE*)':
C:\wxWidgets-2.9.2\include/wx/wxcrt.h:757:64: error: '_wfreopen' was not declared in this scope
C:\wxWidgets-2.9.2\include/wx/wxcrt.h: In function 'int wxRemove(const wxString&)':
C:\wxWidgets-2.9.2\include/wx/wxcrt.h:759:40: error: '_wremove' was not declared in this scope
C:\wxWidgets-2.9.2\include/wx/wxcrt.h: In function 'int wxRename(const wxString&, const wxString&)':
C:\wxWidgets-2.9.2\include/wx/wxcrt.h:761:61: error: '_wrename' was not declared in this scope
C:\wxWidgets-2.9.2\include/wx/wxcrt.h: In function 'int wxAtoi(const wxString&)':
C:\wxWidgets-2.9.2\include/wx/wxcrt.h:796:73: error: '_wtoi' was not declared in this scope
C:\wxWidgets-2.9.2\include/wx/wxcrt.h: In function 'long int wxAtol(const wxString&)':
C:\wxWidgets-2.9.2\include/wx/wxcrt.h:802:74: error: '_wtol' was not declared in this scope
C:\wxWidgets-2.9.2\include/wx/wxcrt.h: In function 'int wxSystem(const wxString&)':
C:\wxWidgets-2.9.2\include/wx/wxcrt.h:917:77: error: '_wsystem' was not declared in this scope
C:\wxWidgets-2.9.2\include/wx/wxcrt.h: In function 'wchar_t* wxGetenv(const wchar_t*)':
C:\wxWidgets-2.9.2\include/wx/wxcrt.h:925:74: error: '_wgetenv' was not declared in this scope
C:\wxWidgets-2.9.2\include/wx/wxcrt.h: In function 'wchar_t* wxGetenv(const wxScopedWCharBuffer&)':
C:\wxWidgets-2.9.2\include/wx/wxcrt.h:929:93: error: '_wgetenv' was not declared in this scope
in d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\AndroidRuntime\mingw-compat.h, copy the definition from C:\Program Files\Microsoft Platform SDK\src\crt\wchar.h:
_CRTIMP FILE * __cdecl _wfopen(const wchar_t *, const wchar_t *);
_CRTIMP FILE * __cdecl _wfreopen(const wchar_t *, const wchar_t *, FILE *);
_CRTIMP int __cdecl _wremove(const wchar_t *);
_CRTIMP int __cdecl _wrename(const wchar_t *, const wchar_t *);
_CRTIMP int __cdecl _wtoi(const wchar_t *);
_CRTIMP long __cdecl _wtol(const wchar_t *);
_CRTIMP int __cdecl _wsystem(const wchar_t *);
_CRTIMP wchar_t * __cdecl _wgetenv(const wchar_t *);
from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/liblog/logd_write.c:21:
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:38:1: error: unknown type name '_CRTIMP'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:38:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
http://topic.csdn.net/u/20070308/20/1e7cc3da-d26c-4b0f-adaf-92abe292a110.html
http://blog.csdn.net/p569354158/article/details/6508114
/* Define _CRTIMP */
#ifndef _CRTIMP
#ifdef _DLL
#define _CRTIMP __declspec(dllimport)
#else /* ndef _DLL */
#define _CRTIMP
#endif /* _DLL */
#endif /* _CRTIMP */
from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:21:
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:47:9: error: unknown type name 'FILE'
C:\Program Files\Microsoft Platform SDK\src\crt\wchar.h
#ifndef _FILE_DEFINED
struct _iobuf {
char *_ptr;
int _cnt;
char *_base;
int _flag;
int _file;
int _charbuf;
int _bufsiz;
char *_tmpfname;
};
typedef struct _iobuf FILE;
#define _FILE_DEFINED
#endif /* _FILE_DEFINED */
from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/liblog/logd_write.c:21:
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:59:23: error: conflicting types for 'FILE'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/stdio.h:153:3: note: previous declaration of 'FILE' was here
in d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h, comment the FILE definition and include stdio.h
#include
from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/dialogs.cpp:25:
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/include/c++/cwctype:91:11: error: '::iswblank' has not been declared
http://www.gamedev.net/topic/442363-compiling-with-gcc-412/
http://forums.codeblocks.org/index.php?topic=5937.15
comment it.
from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/dialogs.cpp:25:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/stat.h:81:41: error: declaration of C function 'int chmod(const char*, mode_t)' conflicts with
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/io.h:305:37: error: previous declaration 'int chmod(const char*, int)' here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/stat.h:83:41: error: declaration of C function 'int mkdir(const char*, mode_t)' conflicts with
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/io.h:302:37: error: previous declaration 'int mkdir(const char*)' here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/stat.h:89:27: error: declaration of C function 'mode_t umask(mode_t)' conflicts with
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/io.h:456:37: error: previous declaration 'int umask(int)' here
in d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/stat.h:
//extern int chmod(const char *, mode_t);
//extern int mkdir(const char *, mode_t);
//extern mode_t umask(mode_t);
from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/dialogs.cpp:25:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:126:35: error: declaration of C function 'char* getcwd(char*, size_t)' conflicts with
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/io.h:301:39: error: previous declaration 'char* getcwd(char*, int)' here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:134:40: error: declaration of C function 'ssize_t read(int, void*, size_t)' conflicts with
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/io.h:452:37: error: previous declaration 'int read(int, void*, unsigned int)' here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:135:47: error: declaration of C function 'ssize_t write(int, const void*, size_t)' conflicts with
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/io.h:458:37: error: previous declaration 'int write(int, const void*, unsigned int)' here
comment definition in d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h
from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/dialogs.cpp:25:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/fcntl.h:50:50: error: declaration of C function 'int creat(const char*, mode_t)' conflicts with
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/io.h:444:37: error: previous declaration 'int creat(const char*, int)' here
comment definition in fcntl.h
C:\wxWidgets-2.9.2\include/wx/filefn.h: In function 'int wxStat(const wxString&, _stati64*)':
C:\wxWidgets-2.9.2\include/wx/filefn.h:576:43: error: '_wstati64' was not declared in this scope
C:\wxWidgets-2.9.2\include/wx/filefn.h: In function 'int wxLstat(const wxString&, _stati64*)':
C:\wxWidgets-2.9.2\include/wx/filefn.h:578:44: error: '_wstati64' was not declared in this scope
C:\wxWidgets-2.9.2\include/wx/filefn.h: In function 'int wxRmDir(const wxString&)':
C:\wxWidgets-2.9.2\include/wx/filefn.h:580:39: error: '_wrmdir' was not declared in this scope
C:\wxWidgets-2.9.2\include/wx/filefn.h: In function 'int wxMkDir(const wxString&, mode_t)':
C:\wxWidgets-2.9.2\include/wx/filefn.h:584:39: error: '_wmkdir' was not declared in this scope
include mingw-compat.h in filefn.h, in mingw-compat.h:
_CRTIMP int __cdecl _wstati64(const wchar_t *, struct _stati64 *);
_CRTIMP int __cdecl _wmkdir(const wchar_t *);
_CRTIMP int __cdecl _wrmdir(const wchar_t *);
./Debug/dialogs.o: In function `rand':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/stdlib.h:118: undefined reference to `lrand48'
./Debug/dialogs.o: In function `srand':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/stdlib.h:121: undefined reference to `srand48'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\stdlib\_rand48.c
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\stdlib\lrand48.c
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\stdlib\srand48.c
./Debug/AndroidRuntime_sigprocmask.o: In function `signal':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/signal.h:107: undefined reference to `bsd_signal'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\unistd\signal.c
./Debug/AndroidRuntime_sigprocmask.o: In function `sigprocmask':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:249: undefined reference to `__errno'
c:\mingw-4.6.1\include\errno.h
In file included from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/mingw/errno.c:40:0:
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/mingw/pthread.h:320:8: error: redefinition of 'struct timespec'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/linux/time.h:19:8: note: originally defined here
comment pthread.h
from d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/mingw/errno.c:41:
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/process.h:60:51: error: unknown type name '_pid_t'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/process.h:62:40: error: expected ',' or ';' before '_getpid'
#include
c:\mingw-4.6.1\include\sys\types.h
in process.h:
#ifndef _PID_T_
#define _PID_T_
typedef int _pid_t;
#ifndef _NO_OLDNAMES
typedef _pid_t pid_t;
#endif
#endif /* Not _PID_T_ */
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/mingw/errno.c: In function '_errno':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/mingw/errno.c:87:31: warning: dereferencing 'void *' pointer [enabled by default]
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/mingw/errno.c:87:31: error: request for member 'exitStatus' in something not a structure or union
exitStatus is defined in d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\mingw\implement.h as a member of struct ptw32_thread_t_. in errno.c:
struct ptw32_thread_t_ * ptt= (struct ptw32_thread_t_ *)(&self.p);
result = (int *)(ptt->exitStatus);
./Debug/AndroidRuntime_sigprocmask.o: In function `sigprocmask':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:250: undefined reference to `__errno'
./Debug/AndroidRuntime_sigprocmask.o: In function `rpl_signal':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:332: undefined reference to `__errno'
comment them all.
undefined reference to `__assert2'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\stdlib\assert.c
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\src\core\SkGraphics.cpp
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\src\images\SkImageDecoder.cpp
from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/images/SkImageRef_GlobalPool.cpp:1:
C:\wxWidgets-2.9.2\include/crtdbg.h:600:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/images/SkImageRef_GlobalPool.cpp:53:8: error: 'SkPixelRef::Registrar::Registrar' names the constructor, not the type
http://gitorious.org/0xdroid/external_skia/commit/c60df2010e1dbffe3cddb3841e310a7da1b4094a/diffs
static SkPixelRef::Registrar::Registrar reg("SkFlipPixelRef",
78 SkFlipPixelRef::Create);
is changed to:
77 static SkPixelRef::Registrar reg("SkFlipPixelRef",
78 SkFlipPixelRef::Create);
79 79
./Debug/AndroidRuntime_AndroidRuntime.o: In function `readLocale':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp:521: undefined reference to `property_get'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\system\core\libcutils\properties.c
C:\wxWidgets-2.9.2\include/cutils/threads.h:60:4: error: #error "no thread_store_t implementation for your platform !!"
in threads.h, add:
#define HAVE_PTHREADS
C:\wxWidgets-2.9.2\include/cutils/atomic-inline.h:39:3: error: #error "Must define ANDROID_SMP before including atomic-inline.h"
#define ANDROID_SMP 1
In file included from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:20:0:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Dalvik.h:29:28: fatal error: libdex/SysUtil.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\libdex\SysUtil.h
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Object.h:24:20: fatal error: Atomic.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\Atomic.h
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:1854:13: error: conflicting types for 'GetVersion'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winbase.h:1763:25: note: previous declaration of 'GetVersion' was here
comment that in winbase.h
./Debug/AndroidRuntime_AndroidRuntime.o: In function `ZN7android14AndroidRuntime5startEPKcb':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp:908: undefined reference to `systemTime'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\libs\utils\Timers.cpp
./Debug/AndroidRuntime_AndroidRuntime.o: In function `ZN7android14AndroidRuntime19javaCreateThreadEtcEPFiPvES1_PKcijPS1_':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp:1129: undefined reference to `androidCreateRawThreadEtc'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\libs\utils\Threads.cpp
from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:20:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/utils/Threads.cpp:264:2: error: #error "Threads not supported"
in Threads.cpp:
#define HAVE_PTHREADS
./Debug/AndroidRuntime_AndroidRuntime.o: In function `Z24jniRegisterNativeMethodsP7_JNIEnvPKcPK15JNINativeMethodi':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/JNIHelp.h:114: undefined reference to `jniRegisterNativeMethods'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\libnativehelper\JNIHelp.c
./Debug/AndroidRuntime_AndroidRuntime.o:AndroidRuntime.cpp:(.rdata+0x1a40): undefined reference to `android::register_android_debug_JNITest(_JNIEnv*)'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\core\jni\android_debug_JNITest.cpp
./Debug/app_process_app_main.o: In function `ZN7android9app_usageEv':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp:25: undefined reference to `__sF'
http://www.crystax.net/trac/ndk/ticket/1
__sF is global array variable defined in Bionic (libc.so).
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\stdio\findfp.c
./Debug/liblog_logd_write.o: In function `_write_to_log_kernel':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/liblog/logd_write.c:91: undefined reference to `__errno'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\bionic\__errno.c
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/unistd/signal.c:42: undefined reference to `sigaction'
http://nv-tegra.nvidia.com/gitweb/?p=android/platform/bionic.git;a=commitdiff_plain;h=e4fa46e75cd0d433b5c6c064720ed7e195cba7c8
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\syscalls\sigaction.S
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\syscal
ls>gcc -c sigaction.S -o syscalls_sigaction.o -IC:\wxWidgets-2.9.2\lib\gcc_dll\mswud -IC:\wxWidgets-
2.9.2\include -I. -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/extern
al/skia/include/core/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/ext
ernal/skia/include/images/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbrea
d/frameworks/base/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbrea
d/bionic/libc/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bi
onic/libc/arch-x86/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbre
ad/bionic/libc/kernel/common/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerb
read/bionic/libc/kernel/arch-x86/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/Andro
idRuntime/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bi
onic/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/ -Id:/linux/
linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/ -Id:/linux/linuxkernel/WO
RKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/private/
sigaction.S: Assembler messages:
sigaction.S:5: Warning: .type pseudo-op used outside of .def/.endef ignored.
sigaction.S:5: Error: junk at end of line, first unrecognized character is `s'
comment .type line. But still, undefined reference to `sigaction'. Then borrow this:
http://www.oschina.net/code/explore/glibc-2.9/sysdeps/unix/bsd/sigaction.c
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\sigaction\sigaction1.c
sigaction1.c:33:17: error: storage size of 'vec' isn't known
http://www.kernel.org/doc/man-pages/online/pages/man3/sigvec.3.html
struct sigvec {
void (*sv_handler)(); /* Signal disposition */
int sv_mask; /* Signals to be blocked in handler */
int sv_flags; /* Flags */
};
sigaction1.c: In function 'sigaction':
sigaction1.c:50:55: error: 'SV_ONSTACK' undeclared (first use in this function)
sigaction1.c:50:55: note: each undeclared identifier is reported only once for each function it appears in
sigaction1.c:51:42: error: 'SV_INTERRUPT' undeclared (first use in this function)
//http://www.retro11.de/ouxr/211bsd/usr/src/sys/h/signal.h.html#m:SA_ONSTACK
#define SA_ONSTACK 0x0001 /* take signal on signal stack */
#define SA_RESTART 0x0002 /* restart system on signal return */
#define SV_ONSTACK SA_ONSTACK /* take signal on signal stack */
#define SV_INTERRUPT SA_RESTART /* same bit, opposite sense */
./Debug/bionic___errno.o: In function `_errno':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/__errno.c:33: undefined reference to `__get_tls'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\bionic\__get_tls.c
./Debug/stdio_findfp.o: In function `cleanup':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/stdio/findfp.c:164: undefined reference to `_fwalk'
./Debug/stdio_findfp.o: In function `_sinit':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/stdio/findfp.c:179: undefined reference to `__atexit_register_cleanup'
./Debug/stdio_findfp.o:findfp.c:(.data+0x40): undefined reference to `__sclose'
./Debug/stdio_findfp.o:findfp.c:(.data+0x44): undefined reference to `__sread'
./Debug/stdio_findfp.o:findfp.c:(.data+0x48): undefined reference to `__sseek'
./Debug/stdio_findfp.o:findfp.c:(.data+0x4c): undefined reference to `__swrite'
./Debug/stdio_findfp.o:findfp.c:(.data+0x94): undefined reference to `__sclose'
./Debug/stdio_findfp.o:findfp.c:(.data+0x98): undefined reference to `__sread'
./Debug/stdio_findfp.o:findfp.c:(.data+0x9c): undefined reference to `__sseek'
./Debug/stdio_findfp.o:findfp.c:(.data+0xa0): undefined reference to `__swrite'
./Debug/stdio_findfp.o:findfp.c:(.data+0xe8): undefined reference to `__sclose'
./Debug/stdio_findfp.o:findfp.c:(.data+0xec): undefined reference to `__sread'
./Debug/stdio_findfp.o:findfp.c:(.data+0xf0): undefined reference to `__sseek'
./Debug/stdio_findfp.o:findfp.c:(.data+0xf4): undefined reference to `__swrite'
./Debug/stdio_fflush.o: In function `fflush':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/stdio/fflush.c:44: undefined reference to `_fwalk'
./Debug/binder_ProcessState.o: In function `ZN7android12ProcessState4selfEv':
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\stdio\fwalk.c
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\stdlib\atexit.c
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\stdio\stdio.c
In file included from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/stdlib/atexit.c:33:0:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/mman.h:47:51: error: unknown type name 'off_t'
from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/stdio/stdio.c:34:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/asm-generic/fcntl.h:120:2: error: unknown type name 'off_t'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/asm-generic/fcntl.h:121:2: error: unknown type name 'off_t'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\include\sys\types.h
typedef __kernel_off_t off_t;
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\kernel\arch-x86\asm\posix_types_32.h
typedef long __kernel_off_t;
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\AndroidRuntime\mingw-compat.h
typedef long int off_t;
in mman.h, add:
typedef long int off_t;
in fcntl.h, add:
typedef long int off_t;
./Debug/stdlib_atexit.o: In function `atexit':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/stdlib/atexit.c:112: multiple definition of `atexit'
c:/mingw-4.6.1/bin/../lib/gcc/mingw32/4.6.1/../../../crt2.o:C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:287: first defined here
comment that in atexit.c.
from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/stdio/stdio.c:34:
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/objidl.h:206:2: error: expected identifier before numeric constant
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\kernel\common\asm-generic\fcntl.h
#define LOCK_WRITE 128
in c:\mingw-4.6.1\include\objidl.h
LOCK_WRITE=1,
is changed to:
tLOCK_WRITE=1,
./Debug/stdlib_atexit.o: In function `getpagesize':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/unistd.h:173: undefined reference to `__page_size'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\bionic\libc_init_common.c
unsigned int __page_size = PAGE_SIZE;
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/libc_init_common.c:36:20: fatal error: atexit.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\stdlib\atexit.h
copy it to the same folder with libc_init_common.c
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/stdlib/atexit.c:70: undefined reference to `__isthreaded'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\private\thread_private.h
/*
* This variable is 0 until a second thread is created.
*/
extern int __isthreaded;
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\stdlib\exit.c
/*
* This variable is zero until a process has created a thread.
* It is used to avoid calling locking functions in libc when they
* are not required. By default, libc is intended to be(come)
* thread-safe, but without a (significant) penalty to non-threaded
* processes.
*/
int __isthreaded = 0;
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/stdlib/atexit.c:70: undefined reference to `_thread_atexit_lock'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\private\thread_private.h
void _thread_atexit_lock(void);
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\bionic\thread_atexit.c
void _thread_atexit_lock( void )
./Debug/stdlib_atexit.o: In function `_cxa_atexit':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/stdlib/atexit.c:79: undefined reference to `mmap'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\unistd\mmap.c
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\syscalls\__mmap2.S
./Debug/stdlib_atexit.o: In function `_cxa_finalize':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/stdlib/atexit.c:175: undefined reference to `munmap'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\syscalls\munmap.S
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\include\sys\mman.h
extern void* mmap(void *, size_t, int, int, int, off_t);
extern int munmap(void *, size_t);
since mmap of android is for linux, I find some mmap.c by google:
https://github.com/texane/stlink/pull/79/files
https://github.com/WinterMute/stlink/blob/299c5d272f58c7cb803d6a61ca16d9551c7697e5/src/mmap.c
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\mmap\mmap.c
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\bionic\dlmalloc.c
/* Win32 MMAP via VirtualAlloc */
static void* win32mmap(size_t size) {
./Debug/bionic_libc_init_common.o: In function `_libc_init_common':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/libc_init_common.c:66: undefined reference to `__get_sp'
http://gitorious.org/ppcdroid/bionic/trees/master/libc/arch-mips/bionic
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\asm\__get_sp\master.tar\ppcdroid-bionic\libc\arch-x86\bionic\__get_tls.c
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\asm\__get_sp\master.tar\ppcdroid-bionic\libc\arch-mips\bionic\__get_sp.c
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\bionic\__get_tls.c
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\bionic\__get_sp.S
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\asm\__get_sp\__get_sp.c
./Debug/bionic_libc_init_common.o: In function `_libc_init_common':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/libc_init_common.c:71: undefined reference to `pthread_attr_setstack'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\bionic\pthread.c
cc1.exe: warning: command line option '-Wno-ctor-dtor-privacy' is valid for C++/ObjC++ but not for C [enabled by default]
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/private/bionic_atomic_inline.h:39:3: error: #error "Must define ANDROID_SMP before including atomic-inline.h"
add #define ANDROID_SMP to bionic_atomic_inline.h
cc1.exe: warning: command line option '-Wno-ctor-dtor-privacy' is valid for C++/ObjC++ but not for C [enabled by default]
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/private/bionic_atomic_inline.h:96:17: error: operator '!=' has no left operand
#define ANDROID_SMP 0
c:/mingw-4.6.1/bin/../lib/gcc/mingw32/4.6.1/../../../libpthread.dll.a(dquns00083.o):(.text+0x0): multiple definition of `pthread_self'
./Debug/bionic_pthread.o:d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/pthread.c:689: first defined here
delete that in pthread.c
./Debug/bionic_libc_init_common.o: In function `_libc_init_common':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/libc_init_common.c:72: undefined reference to `gettid'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\syscalls\gettid.S
__NR_gettid: D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\kernel\arch-x86\asm\unistd_32.h
http://www.koders.com/c/fid9942B889F94466EFED54CD06DD92F1E6A2F6FD96.aspx
http://www.koders.com/c/fid8A1B65A44FC15ACD515BC07DC03EFE29F9D17FB3.aspx
cc1.exe: warning: command line option '-Wno-ctor-dtor-privacy' is valid for C++/ObjC++ but not for C [enabled by default]
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/asm/gettid/gettid.c:4:20: fatal error: gettid.h: No such file or directory
comment that line.
./Debug/bionic_libc_init_common.o: In function `_libc_init_common':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/libc_init_common.c:85: undefined reference to `__system_properties_init'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\bionic\system_properties.c
from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/system_properties.c:36:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/linux/socket.h:35:8: error: redefinition of 'struct sockaddr'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:336:8: note: originally defined here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/linux/socket.h:40:8: error: redefinition of 'struct linger'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:128:8: note: originally defined here
comment that in socket.h
In file included from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/system_properties.c:36:0:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/socket.h:63:18: error: conflicting types for 'socket'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:553:35: note: previous declaration of 'socket' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/socket.h:64:18: error: conflicting types for 'bind'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:537:32: note: previous declaration of 'bind' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/socket.h:65:18: error: conflicting types for 'connect'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:539:32: note: previous declaration of 'connect' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/socket.h:66:18: error: conflicting types for 'listen'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:546:32: note: previous declaration of 'listen' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/socket.h:67:18: error: conflicting types for 'accept'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:536:35: note: previous declaration of 'accept' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/socket.h:68:18: error: conflicting types for 'getsockname'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:542:32: note: previous declaration of 'getsockname' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/socket.h:69:18: error: conflicting types for 'getpeername'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:541:32: note: previous declaration of 'getpeername' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/socket.h:71:18: error: conflicting types for 'shutdown'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:552:32: note: previous declaration of 'shutdown' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/socket.h:72:18: error: conflicting types for 'setsockopt'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:551:32: note: previous declaration of 'setsockopt' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/socket.h:73:18: error: conflicting types for 'getsockopt'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:543:32: note: previous declaration of 'getsockopt' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/socket.h:77:18: error: conflicting types for 'send'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:549:32: note: previous declaration of 'send' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/socket.h:78:18: error: conflicting types for 'recv'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:547:32: note: previous declaration of 'recv' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/socket.h:80:22: error: conflicting types for 'sendto'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:550:32: note: previous declaration of 'sendto' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/socket.h:81:22: error: conflicting types for 'recvfrom'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:548:32: note: previous declaration of 'recvfrom' was here
comment that in socket.h
from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/system_properties.c:37:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/linux/un.h:17:8: error: redefinition of 'struct sockaddr_un'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:253:8: note: originally defined here
comment that in mingw-compat.h
from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/system_properties.c:40:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/linux/in.h:19:2: error: expected identifier before numeric constant
c:\mingw-4.6.1\include\winsock2.h
#define IPPROTO_IP 0
add ango prefix to in.h
enum {
angoIPPROTO_IP = 0,
angoIPPROTO_ICMP = 1,
angoIPPROTO_IGMP = 2,
angoIPPROTO_IPIP = 4,
angoIPPROTO_TCP = 6,
angoIPPROTO_EGP = 8,
angoIPPROTO_PUP = 12,
angoIPPROTO_UDP = 17,
angoIPPROTO_IDP = 22,
angoIPPROTO_DCCP = 33,
angoIPPROTO_RSVP = 46,
angoIPPROTO_GRE = 47,
angoIPPROTO_IPV6 = 41,
angoIPPROTO_ESP = 50,
angoIPPROTO_AH = 51,
angoIPPROTO_PIM = 103,
angoIPPROTO_COMP = 108,
angoIPPROTO_SCTP = 132,
angoIPPROTO_RAW = 255,
angoIPPROTO_MAX
};
from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/system_properties.c:40:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/linux/in.h:45:8: error: redefinition of 'struct in_addr'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:223:8: note: originally defined here
comment in.h
from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/Movie.cpp:9:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/linux/in.h:100:17: error: field 'imr_multiaddr' has incomplete type
#include
from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/system_properties.c:40:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/linux/in.h:159:8: error: redefinition of 'struct sockaddr_in'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:254:8: note: originally defined here
comment in.h
./Debug/bionic_pthread.o: In function `_futex_wake_ex':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/pthread.c:60: undefined reference to `__futex_syscall3'
./Debug/bionic_pthread.o: In function `_futex_wait_ex':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/pthread.c:65: undefined reference to `__futex_syscall4'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\bionic\atomics_x86.S
http://en.wikipedia.org/wiki/Futex
A futex (short for "fast userspace mutex") is a Linux construct that can be used to implement basic locking, or as a building block for higher-level locking abstractions such as semaphores and POSIX mutexes or condition variables.
Since futex is some low level api, I think it may be not useful in windows. So I replace it with dumb function.
D:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\asm\futex\futex.c
./Debug/bionic_pthread.o: In function `_init_tls':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/pthread.c:185: undefined reference to `__set_tls'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\bionic\__set_tls.c
./Debug/bionic_pthread.o: In function `pthread_create':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/pthread.c:343: undefined reference to `__pthread_clone'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\bionic\clone.S
We're going to use MingW pthread, so this is set to dumb function.
./Debug/bionic_pthread.o: In function `pthread_create':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/pthread.c:365: undefined reference to `_thread_created_hook'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\bionic\ptrace.c
./Debug/bionic_pthread.o: In function `pthread_exit':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/pthread.c:604: undefined reference to `_exit_thread'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\syscalls\_exit_thread.S
We're going to use MingW pthread, so this is set to dumb function.
reference:
https://bitbucket.org/Vanders/libs/src/25c2b7cb0ac5/src/threads/exit_thread.c
http://www.koders.com/c/fid103331491599136770213BBFDD4B2CF1D235B2FE.aspx
./Debug/bionic_pthread.o: In function `pthread_exit':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/pthread.c:606: undefined reference to `_exit_with_stack_teardown'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\bionic\_exit_with_stack_teardown.S
We're going to use MingW pthread, so this is set to dumb function.
D:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\asm\_exit_with_stack_teardown\_exit_with_stack_teardown.c
./Debug/bionic_pthread.o: In function `normal_lock':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/pthread.c:919: undefined reference to `__atomic_cmpxchg'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/pthread.c:936: undefined reference to `__atomic_swap'
./Debug/bionic_pthread.o: In function `normal_unlock':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/pthread.c:959: undefined reference to `__atomic_dec'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\bionic\atomics_x86.S
We're going to use MingW pthread, so this is set to dumb function. in file:
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\asm\futex\futex.c
./Debug/bionic_pthread.o: In function `pthread_getschedparam':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/pthread.c:704: undefined reference to `sched_getparam'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\syscalls\sched_getparam.S
http://www.scs.stanford.edu/histar/src/pkg/uclibc/libc/sysdeps/linux/common/sched_getparam.c
http://www.koders.com/c/fidF3DE28A1A1C1C128E9B78F171C332F0828766844.aspx?s=lseek
We're going to use MingW pthread, so this is set to dumb function. in file:
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\asm\futex\futex.c
./Debug/bionic_pthread.o: In function `_timespec_to_absolute':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/pthread.c:1197: undefined reference to `clock_gettime'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\syscalls\clock_gettime.S
http://code.metager.de/source/xref/glibc/rt/clock_gettime.c
http://cristi.indefero.net/p/uClibc-cristi/source/tree/eb056465c49d9ea8ff18e6ea86853f4bd556a1da/librt/clock_gettime.c
We're going to use MingW pthread, so this is set to dumb function. in file:
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\asm\futex\futex.c
./Debug/bionic_pthread.o: In function `pthread_kill':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/pthread.c:1824: undefined reference to `tkill'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\syscalls\tkill.S
int tkill(int tid, int sig)
We're going to use MingW pthread, so this is set to dumb function. in file:
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\asm\futex\futex.c
./Debug/bionic_pthread.o: In function `pthread_sigmask':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/pthread.c:1842: undefined reference to `__rt_sigprocmask'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\syscalls\__rt_sigprocmask.S
We're going to use MingW pthread, so this is set to dumb function. in file:
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\asm\futex\futex.c
./Debug/bionic_pthread.o: In function `pthread_setname_np':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/pthread.c:1901: undefined reference to `prctl'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\syscalls\prctl.S
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\include\sys\prctl.h
./Debug/gettid_gettid.o: In function `gettid':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/asm/gettid/gettid.c:13: undefined reference to `syscall'
comment it
c_system_properties.o: In function `_system_property_read':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/system_properties.c:129: undefined reference to `__futex_wait'
./Debug/bioni
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\bionic\atomics_x86.c
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/atomics_x86.c:34:5: error: conflicting types for '__futex_wait'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/atomics.h:41:5: note: previous declaration of '__futex_wait' was here
change the atomics_x86.c to the same as atomics.h
./Debug/bionic_atomics_x86.o: In function `_atomic_cmpxchg':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/atomics_x86.c:63: multiple definition of `__atomic_cmpxchg'
./Debug/futex_futex.o:d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/asm/futex/futex.c:36: first defined here
./Debug/bionic_atomics_x86.o: In function `_atomic_swap':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/atomics_x86.c:77: multiple definition of `__atomic_swap'
./Debug/futex_futex.o:d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/asm/futex/futex.c:40: first defined here
./Debug/bionic_atomics_x86.o: In function `_atomic_dec':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/atomics_x86.c:89: multiple definition of `__atomic_dec'
./Debug/futex_futex.o:d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/asm/futex/futex.c:44: first defined here
comment futex.c
./Debug/bionic___set_tls.o: In function `_set_tls':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/arch-x86/bionic/__set_tls.c:79: undefined reference to `__set_thread_area'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\syscalls\__set_thread_area.S
comment it
./Debug/bionic_ptrace.o: In function `ptrace':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/ptrace.c:43: undefined reference to `__ptrace'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\syscalls\__ptrace.S
We're going to use MingW pthread, so this is set to dumb function. in file:
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\asm\futex\futex.c
./Debug/bionic_atomics_x86.o: In function `_atomic_dec':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/atomics_x86.c:93: undefined reference to `atomic_cmpxchg'
change atomic_cmpxchg to __atomic_cmpxchg
./Debug/binder_ProcessState.o: In function `ZN7android12ProcessState4selfEv':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/ProcessState.cpp:78: undefined reference to `android::gProcess'
gProcess is defined as a static object in /frameworks/base/libs/ binder/static.cpp.
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\libs\binder\Static.cpp
http://www.myexception.cn/android/723638.html
./Debug/binder_ProcessState.o: In function `ZN7android12ProcessState16setContextObjectERKNS_2spINS_7IBinderEEE':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/ProcessState.cpp:93: undefined reference to `android::String16::String16(char const*)'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/ProcessState.cpp:93: undefined reference to `android::String16::~String16()'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\libs\utils\String16.cpp
from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/utils/String16.cpp:45:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/linux/uio.h:18:8: error: redefinition of 'struct iovec'
C:\wxWidgets-2.9.2\include/cutils/uio.h:33:8: error: previous definition of 'struct iovec'
comment that of common/linux/uio.h
./Debug/binder_ProcessState.o: In function `ZN7android12ProcessState16getContextObjectERKNS_8String16ERKNS_2spINS_7IBinderEEE':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/ProcessState.cpp:113: undefined reference to `android::Mutex::lock()'
http://blog.csdn.net/keensword007/article/details/5720636
in D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\libs\utils\Threads.cpp:
#include
in c:\wxwidgets-2.9.2\include\binder\ProcessState.h
#define HAVE_PTHREADS
#include
./Debug/binder_ProcessState.o: In function `ZN7android12ProcessState16getContextObjectERKNS_8String16ERKNS_2spINS_7IBinderEEE':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/ProcessState.cpp:124: undefined reference to `android::String8::String8(android::String16 const&)'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/ProcessState.cpp:124: undefined reference to `android::String8::~String8()'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\libs\utils\String8.cpp
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/utils/String8.cpp: In member function 'void android::String8::setPathName(const char*, size_t)':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/utils/String8.cpp:542:34: error: 'OS_PATH_SEPARATOR' was not declared in this scope
// Separator used by resource paths. This is not platform dependent contrary
// to OS_PATH_SEPARATOR.
#define RES_PATH_SEPARATOR '/'
#define OS_PATH_SEPARATOR '\\'
./Debug/binder_ProcessState.o: In function `ZN7android12ProcessState16getContextObjectERKNS_8String16ERKNS_2spINS_7IBinderEEE':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/ProcessState.cpp:131: undefined reference to `android::Parcel::Parcel()'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\libs\binder\Parcel.cpp
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/binder/Parcel.cpp: In member function 'void* android::Parcel::writeInplace(size_t)':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/binder/Parcel.cpp:571:41: error: redeclaration of 'const uint32_t mask [4]'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/binder/Parcel.cpp:566:35: error: 'const uint32_t mask [4]' previously declared here
windows is using little endian
/*#if BYTE_ORDER == BIG_ENDIAN
static const uint32_t mask[4] = {
0x00000000, 0xffffff00, 0xffff0000, 0xff000000
};
#endif*/
./Debug/binder_ProcessState.o: In function `ZN7android12ProcessState23getStrongProxyForHandleEi':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/ProcessState.cpp:222: undefined reference to `android::BpBinder::BpBinder(int)'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\libs\binder\BpBinder.cpp
./Debug/binder_ProcessState.o: In function `ZN7android12ProcessState17spawnPooledThreadEb':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/ProcessState.cpp:314: undefined reference to `android_atomic_add'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\system\core\libcutils\atomic.c
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\system\core\include\cutils\atomic-inline.h
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\system\core\include\cutils\atomic-x86.h
./Debug/binder_ProcessState.o: In function `open_driver':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/ProcessState.cpp:331: undefined reference to `fcntl'
http://www.google.com.hk/search?hl=zh-CN&newwindow=1&safe=strict&client=aff-maxthon-newtab&hs=vmw&affdom=baidu.com&channel=t13&q=mingw+fcntl&oq=mingw+fcntl&gs_l=serp.12...1002888.1008002.0.1009968.7.7.0.0.0.0.0.0..0.0...0.0..0.1c.1j2j4.SGo16zgUIYg
http://lists.gnu.org/archive/html/bug-gnulib/2009-12/msg00169.html
http://www.google.com.hk/search?hl=zh-CN&newwindow=1&safe=strict&client=aff-maxthon-newtab&hs=4vK&affdom=baidu.com&channel=t13&q=test-fcntl.c+Get+declarations+of+the+Win32+API+functions&oq=test-fcntl.c+Get+declarations+of+the+Win32+API+functions&gs_l=serp.12...258297.259263.0.260558.2.2.0.0.0.0.0.0..0.0...0.0..0.1c.1j2.AyaEDWZf2fA
http://nesl.ee.ucla.edu/fw/han/old_machine_backup/overo-oe/tmp/work/i686-linux/coreutils-native-8.5-r0/coreutils-8.5/gnulib-tests/test-fcntl.c
http://www.gnu.org/software/shishi//coverage/shishi/gl/fcntl.c.gcov.html
fcntl seems to be not compatible with mingw, and it may not be useful for me, so i will resolve it later. just comment it right now.
./Debug/binder_ProcessState.o: In function `ZN7android6VectorINS_12ProcessState12handle_entryEE8insertAtERKS2_jj':
C:/wxWidgets-2.9.2/include/utils/Vector.h:279: undefined reference to `android::VectorImpl::insertAt(void const*, unsigned int, unsigned int)'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\libs\utils\VectorImpl.cpp
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/utils/VectorImpl.cpp:37:22: error: expected ')' before 'a'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/utils/VectorImpl.cpp:37:22: error: expected ')' before 'a'
I doubt that there's already some max out there, so I comment this.
./Debug/binder_IPCThreadState.o: In function `printBinderTransactionData':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/IPCThreadState.cpp:158: undefined reference to `android::operator<<(android::TextOutput&, void const*)'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\libs\utils\TextOutput.cpp
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\include\utils\TextOutput.h
./Debug/binder_IPCThreadState.o: In function `ZN7android14IPCThreadState11clearCallerEv':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/IPCThreadState.cpp:400: undefined reference to `getuid'
We're going to use MingW pthread, so this is set to dumb function. in file:
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\asm\futex\futex.c
./Debug/binder_IPCThreadState.o: In function `ZN7android14IPCThreadState14joinThreadPoolEb':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/IPCThreadState.cpp:453: undefined reference to `android::alog'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\libs\utils\Static.cpp
./Debug/binder_IPCThreadState.o: In function `ZN7android14IPCThreadState14executeCommandEi':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/IPCThreadState.cpp:976: undefined reference to `getpriority'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/binder/IPCThreadState.cpp:983: undefined reference to `setpriority'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\unistd\getpriority.c
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\syscalls\__getpriority.S
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\arch-x86\syscalls\setpriority.S
http://cs.uccs.edu/~cs591/bufferOverflow/glibc-2.2.4/sysdeps/unix/sysv/irix4/setpriority.c
We're going to use MingW pthread, so this is set to dumb function. in file:
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\asm\futex\futex.c
https://code.ohloh.net/file?fid=wrCJR5CzBk4vP3De-mjx1RV2qZY&cid=jkz2UhkSS5g&s=getpriority%20windows&browser=Default#L10
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\getpriority\win32.cpp
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\libdvm\mingw_libdvm.c
./Debug/core_SkGraphics.o: In function `ZN10SkGraphics4InitEv':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/core/SkGraphics.cpp:150: undefined reference to `SkGlobals::Init()'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\src\core\SkGlobals.cpp
./Debug/core_SkGraphics.o: In function `ZN10SkGraphics16GetFontCacheUsedEv':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/core/SkGraphics.cpp:370: undefined reference to `SkGlyphCache::GetCacheUsed()'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\src\core\SkGlyphCache.cpp
./Debug/images_SkImageDecoder.o: In function `ZNK14SkImageDecoder13allocPixelRefEP8SkBitmapP12SkColorTable':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/images/SkImageDecoder.cpp:110: undefined reference to `SkBitmap::allocPixels(SkBitmap::Allocator*, SkColorTable*)'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\src\core\SkBitmap.cpp
./Debug/images_SkImageDecoder.o: In function `ZN14SkImageDecoder10cropBitmapEP8SkBitmapS1_iiiiiii':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/images/SkImageDecoder.cpp:214: undefined reference to `SkCanvas::SkCanvas(SkBitmap const&)'
./Debug/images_SkImageDecoder.o: In function `ZN14SkImageDecoder10DecodeFileEPKcP8SkBitmapNS2_6ConfigENS_4ModeEPNS_6FormatE':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/images/SkImageDecoder.cpp:226: undefined reference to `SkFILEStream::SkFILEStream(char const*)'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\src\core\SkStream.cpp
./Debug/images_SkImageDecoder.o: In function `ZN14SkImageDecoder12DecodeStreamEP8SkStreamP8SkBitmapNS2_6ConfigENS_4ModeEPNS_6FormatE':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/images/SkImageDecoder.cpp:253: undefined reference to `SkImageDecoder::Factory(SkStream*)'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\src\images\SkImageDecoder_Factory.cpp
./Debug/images_SkImageDecoder.o: In function `ZNK8SkRefCnt3refEv':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/core/SkRefCnt.h:50: undefined reference to `sk_atomic_inc(int*)'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\src\ports\SkThread_pthread.cpp
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/core/SkString.cpp: In member function 'void SkString::printf(const char*, ...)':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/core/SkString.cpp:494:5: error: '_vsnprintf' was not declared in this scope
Under MinGW, vsnprintf is in fact:
extern __inline__ int vsnprintf (char* s, size_t n, const char* format,
__VALIST arg)
{ return _vsnprintf ( s, n, format, arg); }
(from mingw/runtime/include/stdio.h)
in SkString.cpp:
#include
_CRTIMP int __cdecl __MINGW_NOTHROW _vsnprintf (char*, size_t, const char*, __VALIST);
cc1.exe: warning: command line option '-Wno-ctor-dtor-privacy' is valid for C++/ObjC++ but not for C [enabled by default]
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/core/SkString.cpp:24:77: error: '__VALIST' has not been declared
c:\mingw-4.6.1\include\wchar.h
#define __VALIST char*
./Debug/core_SkString.o: In function `ZN8SkString6printfEPKcz':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/core/SkString.cpp:498: undefined reference to `_vsnprintf(char*, unsigned int, char const*, char*)'
c:\mingw-4.6.1\include\stdio.h
/*
* Microsoft does not provide implementations for the following,
* which are required by C99. Note in particular that the corresponding
* Microsoft implementations of _snprintf() and _vsnprintf() are *not*
* compatible with C99, but the following are; if you want the MSVCRT
* behaviour, you *must* use the Microsoft uglified names.
*/
in d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\src\core\SkString.cpp:
#define VSNPRINTF _vsnprintf
is changed to:
#define VSNPRINTF vsnprintf
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111101-froyo\external\freetype\include\ft2build.h
#include
#include FT_FREETYPE_H
#include FT_OUTLINE_H
#include FT_SIZES_H
#include FT_TRUETYPE_TABLES_H
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/ports/SkFontHost_FreeType.cpp: In member function 'virtual void SkScalerContext_FreeType::generateMetrics(SkGlyph*)':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/ports/SkFontHost_FreeType.cpp:577:14: error: expected identifier before numeric constant
change ERROR to angoERROR
./Debug/core_SkUtils.o: In function `sk_memset16_stub':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/core/SkUtils.cpp:130: undefined reference to `SkMemset16GetPlatformProc()'
./Debug/core_SkUtils.o: In function `sk_memset32_stub':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/core/SkUtils.cpp:139: undefined reference to `SkMemset32GetPlatformProc()'
#define ANDROID
./Debug/core_SkBitmap.o: In function `ZNK8SkBitmap9eraseARGBEjjjj':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/core/SkBitmap.cpp:589: undefined reference to `sk_memset16'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/core/SkBitmap.cpp:599: undefined reference to `sk_memset32'
static void sk_memset16_stub(uint16_t dst[], uint16_t value, int count)
{
SkMemset16Proc proc = SkMemset16GetPlatformProc();
sk_memset16 = proc ? proc : sk_memset16_portable;
sk_memset16(dst, value, count);
}
SkMemset16Proc sk_memset16 = sk_memset16_stub;
static void sk_memset32_stub(uint32_t dst[], uint32_t value, int count)
{
SkMemset32Proc proc = SkMemset32GetPlatformProc();
sk_memset32 = proc ? proc : sk_memset32_portable;
sk_memset32(dst, value, count);
}
change sk_memset32_portable,sk_memset16_portable to sk_memset16,sk_memset32
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/core/SkUtils.cpp: In function 'void sk_memset16(__uint16_t*, __uint16_t, int)':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/core/SkUtils.cpp:49:59: error: 'void sk_memset16(__uint16_t*, __uint16_t, int)' redeclared as different kind of symbol
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/core/SkUtils.h:50:23: error: previous declaration of 'void (* sk_memset16)(__uint16_t*, __uint16_t, int)'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/core/SkUtils.cpp: In function 'void sk_memset32(__uint32_t*, __uint32_t, int)':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/core/SkUtils.cpp:106:59: error: 'void sk_memset32(__uint32_t*, __uint32_t, int)' redeclared as different kind of symbol
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/core/SkUtils.h:54:23: error: previous declaration of 'void (* sk_memset32)(__uint32_t*, __uint32_t, int)'
comment SkUtils.h
#ifndef sk_memset16
//extern SkMemset16Proc sk_memset16;
void sk_memset16(uint16_t dst[], uint16_t value, int count);
#endif
#ifndef sk_memset32
//extern SkMemset32Proc sk_memset32;
void sk_memset32(uint32_t dst[], uint32_t value, int count);
#endif
./Debug/core_SkBitmapProcState.o: In function `ZN17SkBitmapProcState11chooseProcsERK8SkMatrixRK7SkPaint':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/core/SkBitmapProcState.cpp:530: undefined reference to `SkBitmapProcState::platformProcs()'
./Debug/core_SkBlitRow_D16.o: In function `ZN9SkBlitRow7FactoryEjN8SkBitmap6ConfigE':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/core/SkBlitRow_D16.cpp:234: undefined reference to `SkBlitRow::PlatformProcs565(unsigned int)'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/core/SkBlitRow_D16.cpp:240: undefined reference to `SkBlitRow::PlatformProcs4444(unsigned int)'
./Debug/core_SkBlitRow_D32.o: In function `ZN9SkBlitRow9Factory32Ej':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/core/SkBlitRow_D32.cpp:81: undefined reference to `SkBlitRow::PlatformProcs32(unsigned int)'
comment it
./Debug/libcutils_properties.o: In function `property_set':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/system/core/libcutils/properties.c:355: undefined reference to `setenv'
http://blog.csdn.net/llrraa2010/article/details/7961740
http://blog.csdn.net/llrraa2010/article/details/7961715
setenv() is not implemented on MinGW, so we have to use putenv().
comment it here.
./Debug/vm_Jni.o: In function `dvmJniStartup':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:306: undefined reference to `gDvm'
http://blog.csdn.net/yinlijun2004/article/details/7023052
http://www.eoeandroid.com/home.php?mod=space&uid=21517&do=blog&id=2971
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\Init.c
http://www.eoeandroid.com/blog-21517-3026.html
struct DvmGlobals gDvm;
./Debug/vm_Jni.o: In function `dvmJniStartup':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:311: undefined reference to `dvmInitMutex'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\Thread.h
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\Thread.c
save Thread.h as Thread1.h
in Jni.c:
#include "Thread1.h"
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread1.h: In function 'dvmJniStartup':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread1.h:25:13: error: nested function 'dvmInitMutex1' declared 'extern'
change:
INLINE void dvmInitMutex1(pthread_mutex_t* pMutex)
to:
void dvmInitMutex1(pthread_mutex_t* pMutex)
./Debug/vm_Jni.o: In function `dvmJniStartup':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:412: undefined reference to `dvmFindFieldOffset'
in d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\oo\Object.h:
//INLINE int dvmFindFieldOffset(const ClassObject* clazz,
// const char* fieldName, const char* signature)
int dvmFindFieldOffset(const ClassObject* clazz,
const char* fieldName, const char* signature)
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Object.h:672: multiple definition of `dvmFindFieldOffset'
./Debug/vm_Jni.o:d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Object.h:672: first defined here
./Debug/vm_Jni.o: In function `dvmGetJNIEnvForThread':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:462: undefined reference to `dvmGetThreadJNIEnv'
http://www.cppblog.com/baye/archive/2007/11/11/36398.html
move the function to Thread1.h
in Jni.c:
#include "Thread1.h"
./Debug/vm_Jni.o: In function `dvmCreateJNIEnv':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:486: undefined reference to `dvmSetJniEnvThreadId'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\JniInternal.h
move the function to Thread1.h and delete "INLINE"
./Debug/vm_Jni.o: In function `dvmCreateJNIEnv':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:495: undefined reference to `dvmUseCheckedJniEnv'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\CheckJni.c
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/core/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/images/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/arch-x86/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/arch-x86/;d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/private/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111101-froyo/external/freetype/include/;d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111101-froyo\external\zlib\
./Debug/vm_Jni.o: In function `addLocalReference':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:661: undefined reference to `dvmReferenceTableEntries'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\ReferenceTable.h
move the function to Thread1.h and delete "INLINE"
./Debug/vm_Jni.o: In function `createWeakGlobalRef':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:938: undefined reference to `dvmDecodeIndirectRef'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\JniInternal.h
move the function to Thread1.h and delete "INLINE"
./Debug/vm_Jni.o: In function `createWeakGlobalRef':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:950: undefined reference to `dvmIsClassInitialized'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\oo\Class.h
move the function to Thread1.h and delete "INLINE"
./Debug/vm_Jni.o: In function `createWeakGlobalRef':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:955: undefined reference to `dvmCheckException'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\Exception.h
move the function to Thread1.h and delete "INLINE"
./Debug/vm_Jni.o: In function `createWeakGlobalRef':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:976: undefined reference to `dvmObfuscateWeakGlobalRef'
./Debug/vm_Jni.o: In function `deleteWeakGlobalRef':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:988: undefined reference to `dvmNormalizeWeakGlobalRef'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\JniInternal.h
move the function to Thread1.h and delete "INLINE"
./Debug/vm_Jni.o: In function `getPhantomReferent':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:1009: undefined reference to `dvmGetFieldObject'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\oo\ObjectInlines.h
move the function to Thread1.h and delete "INLINE"
./Debug/vm_Jni.o: In function `dvmSetObjectArrayElement':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread1.h:213: undefined reference to `dvmWriteBarrierArray'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\alloc\WriteBarrier.h
move the function to Thread1.h and delete "INLINE"
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/alloc/Copying.c: At top level:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/alloc/Copying.c:2340:6: error: conflicting types for 'dvmHeapSweepUnmarkedObjects'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/alloc/MarkSweep.h:57:6: note: previous declaration of 'dvmHeapSweepUnmarkedObjects' was here
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\alloc\MarkSweep.c
change dvmHeapSweepUnmarkedObjects of Copying.c dvmHeapSweepUnmarkedObjects1
./Debug/vm_Jni.o: In function `findInArgList':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:1179: undefined reference to `dvmIsStaticMethod'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\oo\Object.h
move the function to Thread1.h and delete "INLINE"
./Debug/vm_Jni.o: In function `dvmGetJNIRefType':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:1255: undefined reference to `dvmIsWeakGlobalRef'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\oo\Object.h
move the function to Thread1.h and delete "INLINE"
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Native.c: In function 'dvmCreateSystemLibraryName':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Native.c:254:38: error: 'OS_SHARED_LIB_FORMAT_STR' undeclared (first use in this function)
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\system\core\include\arch\windows\AndroidConfig.h
in Native.c, add:
/*D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\system\core\include\arch\windows\AndroidConfig.h
* sprintf() format string for shared library naming.
*/
#define OS_SHARED_LIB_FORMAT_STR "lib%s.dll"
./Debug/vm_Jni.o: In function `canAllocClass':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:1531: undefined reference to `dvmThrowExceptionFmt'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\Exception.h
move the function to Thread1.h and delete "INLINE"
./Debug/vm_Jni.o: In function `canAllocClass':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:1534: undefined reference to `dvmIsArrayClass'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\oo\Array.h
move the function to Thread1.h and delete "INLINE"
./Debug/vm_Jni.o: In function `dvmCallJNIMethod_general':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c:1733: undefined reference to `dvmPlatformInvoke'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\arch\x86\Call386ABI.S
void dvmPlatformInvoke(void* pEnv, ClassObject* clazz, int argInfo, int argc,
const u4* argv, const char* signature, void* func, JValue* pReturn)
we need to look into this later. but right now, just put it to dumb in Thread1.h
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Misc.c:677: multiple definition of `strlcpy'
./Debug/libcutils_memory.o:d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/libcutils/memory.c:64: first defined here
comment Misc.c
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Debugger.c: In function 'dvmDbgDdmSendChunkV':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Debugger.c:3065:9: error: 'len' undeclared (first use in this function)
void dvmDbgDdmSendChunkV(int type, const struct iovec* iov, int iovcnt)
{
if (gDvm.jdwpState == NULL) {
LOGV("Debugger thread not active, ignoring DDM send (t=0x%08x l=%d)\n",
type, iovcnt);
// type, len);
return;
}
from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Inlines.c:28:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/uio.h:37:5: error: conflicting types for 'readv'
C:\wxWidgets-2.9.2\include/cutils/uio.h:38:13: note: previous declaration of 'readv' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/uio.h:38:5: error: conflicting types for 'writev'
C:\wxWidgets-2.9.2\include/cutils/uio.h:41:19: note: previous definition of 'writev' was here
comment sys/uio.h
I add all the *.c files to the project, and the error count drops to less than 1000, and all the inline function is working now. I don't know why, maybe I can figure it out later. And I delete all the inline function from Thread1.h. Just in case, I save it to Thread2 before the delete.
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_util_EventLog.cpp: In function 'void android::android_util_EventLog_readEvents(JNIEnv*, jobject, jintArray, jobject)':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_util_EventLog.cpp:187:44: error: 'read' was not declared in this
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_util_Process.cpp: In function 'jlong android_os_Process_getFreeMemory(JNIEnv*, jobject)':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_util_Process.cpp:416:54: error: 'read' was not declared in this scope
c:\mingw-4.6.1\include\io.h
in android_util_EventLog.cpp:
#include
from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_text_format_Time.cpp:26:
C:\wxWidgets-2.9.2\include/cutils/tztime.h:32:8: error: redefinition of 'struct strftime_locale'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/time.h:83:8: error: previous definition of 'struct strftime_locale'
comment time.h
In file included from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_util_AssetManager.cpp:34:0:
C:\wxWidgets-2.9.2\include/utils/ResourceTypes.h:34:35: fatal error: android/configuration.h: No such file or directory
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/core/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/images/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/arch-x86/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/arch-x86/;d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/private/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111101-froyo/external/freetype/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111101-froyo/external/zlib/;d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\native\include\
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_emoji_EmojiFactory.cpp:8:26: fatal error: EmojiFactory.h: No such file or directory
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/core/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/images/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/arch-x86/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/arch-x86/;d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/private/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/freetype/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/zlib/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/native/include/;d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\opt\emoji\
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_emoji_EmojiFactory.cpp:92:8: error: 'pthread_once_t' does not name a type
uncomment the following in android_emoji_EmojiFactory.cpp:
// #include
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:62:9: warning: "/*" within comment [-Wcomment]
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_text_AndroidCharacter.cpp:24:27: fatal error: unicode/uchar.h: No such file or directory
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/core/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/images/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/arch-x86/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/arch-x86/;d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/private/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/freetype/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/zlib/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/native/include/;d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\opt\emoji\;d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\icu4c\common\
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_security_Md5MessageDigest.cpp:22:25: fatal error: openssl/md5.h: No such file or directory
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/core/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/images/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/arch-x86/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/arch-x86/;d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/private/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/freetype/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/zlib/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/native/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/opt/emoji/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/icu4c/common/;d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\openssl\include\
In file included from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_util_Process.cpp:38:0:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/grp.h:50:8: error: redefinition of 'struct group'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:121:8: error: previous definition of 'struct group'
comment mingw-compat.h
In file included from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_util_Process.cpp:38:0:
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:128:15: error: previous declaration of 'group* getgrgid(gid_t)' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/grp.h:58:29: error: conflicts with new declaration with 'C' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:129:15: error: previous declaration of 'group* getgrnam(const char*)' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/grp.h:59:36: error: conflicts with new declaration with 'C' linkage
In file included from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_util_Process.cpp:39:0:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/pwd.h:101:8: error: redefinition of 'struct passwd'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:107:8: error: previous definition of 'struct passwd'
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:119:16: error: previous declaration of 'passwd* getpwnam(const char*)' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/pwd.h:113:36: error: conflicts with new declaration with 'C' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:118:16: error: previous declaration of 'passwd* getpwuid(uid_t)' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/pwd.h:114:30: error: conflicts with new declaration with 'C' linkage
In file included from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_graphics_PixelFormat.cpp:20:0:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/include/ui/PixelFormat.h:32:33: fatal error: pixelflinger/format.h: No such file or directory
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/core/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/images/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/arch-x86/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/arch-x86/;d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/private/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/freetype/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/zlib/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/native/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/opt/emoji/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/icu4c/common/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/openssl/include/;d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\system\core\include\
from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_view_Display.cpp:20:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/include/ui/PixelFormat.h:33:31: fatal error: hardware/hardware.h: No such file or directory
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/core/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/images/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/arch-x86/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/arch-x86/;d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/private/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/freetype/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/zlib/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/native/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/opt/emoji/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/icu4c/common/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/openssl/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/system/core/include/;d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111101-froyo\hardware\libhardware\include\
C:\wxWidgets-2.9.2\include/crtdbg.h:48:29: error: conflicting declaration 'typedef unsigned int size_t'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/arch-x86/include/machine/_types.h:44:29: error: 'size_t' has a previous declaration as 'typedef long unsigned int size_t'
comment _types.h
but then more "error: unknown type name 'size_t'" shows up, so I comment crtdbg.h instead.
from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_view_ViewRoot.cpp:28:
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:356:8: error: redefinition of 'struct __kernel_sockaddr_storage'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/linux/socket.h:18:8: error: previous definition of 'struct __kernel_sockaddr_storage'
As above error, comment winsock2.h
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/core/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/images/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/arch-x86/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/arch-x86/;d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/private/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/freetype/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/zlib/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/native/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/opt/emoji/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/icu4c/common/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/openssl/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/system/core/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111101-froyo/hardware/libhardware/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/opengl/include/
then there's some error:no executable specified,use`target exec'. At first, I think it's because there's too many files. So I try to delete all the newly added jni files. But the error is still there. So I try to clean up the project, and find out that there're only .d files now, no .o files. Maybe it's because the include part is too long. So I try to shorten the include part by only using a part of it, and it works, and .o files show up. But the error still exists with the following hints:
mingw32-make.exe[1]: *** No rule to make target `../../android-omap-20111101-froyo/external/freetype/src/base/ftobjs.c', needed by `Debug/base_ftobjs.o'. Stop.
God, that's because I delete these files. What a shame!
cc1.exe: warning: command line option '-Wno-ctor-dtor-privacy' is valid for C++/ObjC++ but not for C [enabled by default]
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/freetype/src/base/ftinit.c:42:10: error: #include expects "FILENAME" or
cc1.exe: warning: command line option '-Wno-ctor-dtor-privacy' is valid for C++/ObjC++ but not for C [enabled by default]
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/freetype/src/base/ftinit.c:42:10: error: #include expects "FILENAME" or
cc1.exe: warning: command line option '-Wno-ctor-dtor-privacy' is valid for C++/ObjC++ but not for C [enabled by default]
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/freetype/src/base/ftoutln.c:28:10: error: #include expects "FILENAME" or
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\freetype\include\freetype\internal\internal.h
in ftinit.c, add:
#include
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_opengl_GLES11Ext.cpp: In function 'void android_glBlendEquationSeparateOES__II(JNIEnv*, jobject, jint, jint)':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_opengl_GLES11Ext.cpp:156:5: error: 'glBlendEquationSeparateOES' was not declared in this scope
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\core\jni\android_opengl_GLES11Ext.cpp
glBlendEquationSeparateOES
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\opengl\libs\hooks.h
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\opengl\libs\entries.in
in android_opengl_GLES11Ext.cpp:
#include
not working
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\opengl\include\GLES\glext.h
#ifdef GL_GLEXT_PROTOTYPES
GL_API void GL_APIENTRY glBlendEquationSeparateOES (GLenum modeRGB, GLenum modeAlpha);
#endif
in glext.h, add:
#define GL_GLEXT_PROTOTYPES
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/com_google_android_gles_jni_EGLImpl.cpp: In function 'void android::jni_eglCreatePixmapSurface(JNIEnv*, jobject, jobject, jobject, jobject, jobject, jintArray)':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/com_google_android_gles_jni_EGLImpl.cpp:305:68: error: cannot convert 'egl_native_pixmap_t* {aka egl_native_pixmap_t*}' to 'EGLNativePixmapType {aka HBITMAP__*}' for argument '3' to 'void* eglCreatePixmapSurface(EGLDisplay, EGLConfig, EGLNativePixmapType, const EGLint*)'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\opengl\include\EGL\eglplatform.h
typedef HBITMAP EGLNativePixmapType;
It seems that it should be egl_native_pixmap_t under android, let's try it.
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/com_google_android_gles_jni_EGLImpl.cpp: In function 'jint android::jni_eglCreateWindowSurface(JNIEnv*, jobject, jobject, jobject, jobject, jintArray)':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/com_google_android_gles_jni_EGLImpl.cpp:339:73: error: cannot convert 'ANativeWindow*' to 'EGLNativeWindowType {aka HWND__*}' for argument '3' to 'void* eglCreateWindowSurface(EGLDisplay, EGLConfig, EGLNativeWindowType, const EGLint*)'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\opengl\include\EGL\eglplatform.h
similiar to the above
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/Canvas.cpp:23:24: fatal error: SkGLCanvas.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\include\utils\SkGLCanvas.h
#include "utils/SkGLCanvas.h"
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/Canvas.cpp:26:26: fatal error: SkPorterDuff.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\include\effects\SkPorterDuff.h
#include "effects/SkPorterDuff.h"
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/Canvas.cpp:30:29: fatal error: SkBoundaryPatch.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\include\utils\SkBoundaryPatch.h
#include "utils/SkBoundaryPatch.h"
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/DrawFilter.cpp:28:36: fatal error: SkPaintFlagsDrawFilter.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\include\effects\SkPaintFlagsDrawFilter.h
#include "effects/SkPaintFlagsDrawFilter.h"
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/Canvas.cpp:31:25: fatal error: SkMeshUtils.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\include\utils\SkMeshUtils.h
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/ColorFilter.cpp:23:33: fatal error: SkColorMatrixFilter.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\include\effects\SkColorMatrixFilter.h
#include "effects/SkColorMatrixFilter.h"
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/ColorFilter.cpp:24:26: fatal error: SkPorterDuff.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\include\effects\SkPorterDuff.h
#include "effects/SkPorterDuff.h"
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/Camera.cpp:4:22: fatal error: SkCamera.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\include\utils\SkCamera.h
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/LayerRasterizer.cpp:1:31: fatal error: SkLayerRasterizer.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\include\effects\SkLayerRasterizer.h
#include "effects/SkLayerRasterizer.h"
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/Interpolator.cpp:5:28: fatal error: SkInterpolator.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\include\utils\SkInterpolator.h
#include "utils/SkInterpolator.h"
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/MaskFilter.cpp:3:30: fatal error: SkBlurMaskFilter.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\include\effects\SkBlurMaskFilter.h
#include "effects/SkBlurMaskFilter.h"
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/MaskFilter.cpp:4:31: fatal error: SkTableMaskFilter.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\include\effects\SkTableMaskFilter.h
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/NinePatchImpl.cpp:26:25: fatal error: SkNinePatch.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\include\utils\SkNinePatch.h
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/Paint.cpp:27:30: fatal error: SkBlurDrawLooper.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\include\effects\SkBlurDrawLooper.h
#include "effects/SkBlurDrawLooper.h"
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/PathEffect.cpp:5:32: fatal error: SkCornerPathEffect.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\skia\include\effects\SkCornerPathEffect.h
#include "effects/SkCornerPathEffect.h"
In file included from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/YuvToJpegEncoder.cpp:2:0:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/images/SkJpegUtility.h:24:25: fatal error: jpeglib.h: No such file or directory
copy from froyo 2.2 in external/jpeg
from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/YuvToJpegEncoder.cpp:2:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/jpeg/jmorecfg.h:183:14: error: conflicting declaration 'typedef long int INT32'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/basetsd.h:54:13: error: 'INT32' has a previous declaration as 'typedef int INT32'
comment jmorecfg.h
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/rpcndr.h: At global scope:
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/rpcndr.h:52:23: error: conflicting declaration 'typedef unsigned char boolean'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/jpeg/jmorecfg.h:251:13: error: 'boolean' has a previous declaration as 'typedef int boolean'
comment jmorecfg.h
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_database_SQLiteStatement.cpp:25:21: fatal error: sqlite3.h: No such file or directory
copy sqlite from froyo 2.2
In file included from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_database_SQLiteDatabase.cpp:42:0:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/netdb.h:84:8: error: redefinition of 'struct hostent'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:120:9: error: previous definition of 'struct hostent'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/netdb.h:93:8: error: redefinition of 'struct netent'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:155:8: error: previous definition of 'struct netent'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/netdb.h:100:8: error: redefinition of 'struct servent'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:161:9: error: previous definition of 'struct servent'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/netdb.h:107:8: error: redefinition of 'struct protoent'
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:167:9: error: previous definition of 'struct protoent'
comment netdb.h
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_os_Power.cpp:22:35: fatal error: hardware_legacy/power.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\hardware\libhardware_legacy\include\hardware_legacy\power.h
copy hardware from froyo 2.2
g++ -c "d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_os_UEventObserver.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:\wxWidgets-2.9.2\lib\gcc_dll\mswud -IC:\wxWidgets-2.9.2\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -fpermissive -o ./Debug/jni_android_os_UEventObserver.o -I. -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/core/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/images/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/arch-x86/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/arch-x86/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/private/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/freetype/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/zlib/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/native/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/opt/emoji/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/icu4c/common/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/openssl/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/system/core/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111101-froyo/hardware/libhardware/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/opengl/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/opengl/libs/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/ports/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/jpeg/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/sqlite/dist/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/sqlite/android/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/hardware/libhardware_legacy/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/hardware/libhardware/include/
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_net_wifi_Wifi.cpp:25:18: fatal error: wifi.h: No such file or directory
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\hardware\libhardware_legacy\include\hardware_legacy\wifi.h
#include "hardware_legacy/wifi.h"
In file included from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_net_LocalSocketImpl.cpp:29:0:
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/arpa/inet.h:39:44: error: declaration of C function 'uint32_t inet_addr(const char*)' conflicts with
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winsock2.h:544:42: error: previous declaration 'long unsigned int inet_addr(const char*)' here
comment inet.h
In file included from d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_net_LocalSocketImpl.cpp:29:0:
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/mingw-compat.h:259:5: error: previous declaration of 'int inet_aton(const char*, in_addr*)' with 'C++' linkage
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/arpa/inet.h:41:62: error: conflicts with new declaration with 'C' linkage
comment inet.h
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_net_LocalSocketImpl.cpp: In function 'jint android::socket_getOption(JNIEnv*, jobject, jobject, int)':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_net_LocalSocketImpl.cpp:284:59: error: cannot convert 'linger*' to 'char*' for argument '4' to 'int getsockopt(SOCKET, int, int, char*, int*)'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_net_LocalSocketImpl.cpp:293:59: error: cannot convert 'int*' to 'char*' for argument '4' to 'int getsockopt(SOCKET, int, int, char*, int*)'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_net_LocalSocketImpl.cpp: In function 'void android::socket_setOption(JNIEnv*, jobject, jobject, int, jint, jint)':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_net_LocalSocketImpl.cpp:335:71: error: cannot convert 'linger*' to 'const char*' for argument '4' to 'int setsockopt(SOCKET, int, int, const char*, int)'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_net_LocalSocketImpl.cpp:364:77: error: cannot convert 'jint* {aka int*}' to 'const char*' for argument '4' to 'int setsockopt(SOCKET, int, int, const char*, int)'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android_net_LocalSocketImpl.cpp:815:67: error: cannot convert 'ucred*' to 'char*' for argument '4' to 'int getsockopt(SOCKET, int, int, char*, int*)'
It may not be useful, comment the error lines
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/core/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/images/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/arch-x86/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/arch-x86/;d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/private/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/freetype/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/zlib/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/native/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/opt/emoji/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/icu4c/common/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/openssl/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/system/core/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111101-froyo/hardware/libhardware/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/opengl/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/opengl/libs/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/ports/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/jpeg/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/sqlite/dist/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/sqlite/android/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/hardware/libhardware_legacy/include/;d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/hardware/libhardware/include/
g++ -o ./Debug/angowx @"d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\1.txt" -L. -mwindows -mthreads -LC:\wxWidgets-2.9.2\lib\gcc_dll -lwxmsw29ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lws2_32 -lpthread -lpthread.dll -lpthreadGC2.dll -lpthreadGC2-static -lpthreadGCE2 -lpthreadGCE2.dll
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\system\core\include\cutils\atomic-inline.h:39:3: error: #error "Must define ANDROID_SMP before including atomic-inline.h"
#define ANDROID_SMP 0
The system cannot find the file specified
After the project reachs 291 files, it's becoming kind of weird with the following error with some obvious miscoding chinese:
CreateProcess(C:\DOCUME~1\leon\LOCALS~1\Temp\make7136-1.bat,C:\DOCUME~1\leon\LOCALS~1\Temp\make7136-1.bat,...)
Live child 0x00aed750 (Debug/angowx) PID 11459448
ê?è?DDì?3¤?£
That's just before link.
I don't know why, but I try to delete some files to reture to the previous state, and it works.
So what happen? I try serveral times to add files and delete files, and make sure that the issue is related to the amount of files.
How about use link directly in cmd? I try with the following command:
g++ -o ./Debug/angowx @"d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\2.txt" -L. -mwindows -mthreads -LC:\wxWidgets-2.9.2\lib\gcc_dll -lwxmsw29ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lws2_32 -lpthread -lpthread.dll -lpthreadGC2.dll -lpthreadGC2-static -lpthreadGCE2 -lpthreadGCE2.dll 2>r.txt
And it works!
So I think maybe I shoud try the build in cmd directly with the following command:
"mingw32-make.exe" -d -j 1 -f "angowx.mk">8.txt 2>&1
And I get the correct chinese error message:
make (e=2): 系统找不到指定的文件。
After google, I get the english version:
make (e=2):The system cannot find the file specified
Google the english version, some say it's because of the mingw itself.
http://forums.wxwidgets.org/viewtopic.php?f=19&t=28317&start=0
http://www.digipedia.pl/usenet/thread/15083/3668/
note: avoid MinGW 4.5
So I try to download TDM-GCC of different versions to build on the following site:
http://ftp.jaist.ac.jp/pub/sourceforge/t/project/td/tdm-gcc/TDM-GCC%20Installer/
But it doesn't work out.
Since TDM-GCC is above 4.0, I think maybe I can try 3.X. That means I have to download the files of MinGW from MinGW website. There're quite many files, and this seems to be some make issue, so maybe I can just download the make. So I download all the make files on:
http://ftp.jaist.ac.jp/pub/sourceforge/m/project/mi/mingw/MinGW/Extension/make/
and extract the make2.82 file to MinGW/bin.
Yes, it does make differently, but still some wierd error exists, like:
File 'C:wxWidgets-2.9.2include/wx/wxprec.h' does not exist.
The file should be C:\wxWidgets-2.9.2\include/wx/wxprec.h, which works fine for make 2.81. I try several times, the error still the same. Maybe that's because I use make 2.81 to produce the .o files. So I clean the project, and use make 2.82 to remake all the files. But another weird error shows up:
gcc: CreateProcess: No such file or directory
Even I change back to 2.81, it's still the same. Everything seems to be wrong. But fortunately I get some advice from google:
http://www.cppblog.com/romangol/archive/2008/04/19/47595.aspx
http://mysparks.info/gcc-createprocess-no-such-file-or-directory-errors
And resolve it soon.
After that, make 2.82 works fine, and I see the following message:
Creating temporary batch file C:\DOCUME~1\leon\LOCALS~1\Temp\make6976-1.bat
Batch file contents:
@echo off
echo ./Debug/dialogs.o ./Debug/AndroidRuntime_sigprocmask.o ./Debug/AndroidRuntime_mingw-compat.o ./Debug/app_process_app_main.o ./Debug/liblog_logd_write.o ./Debug/libcutils_memory.o ./Debug/libcutils_process_name.o ./Debug/stdlib_lrand48.o ./Debug/stdlib_srand48.o ./Debug/stdlib__rand48.o ./Debug/unistd_signal.o ./Debug/stdlib_assert.o ./Debug/stdio_findfp.o ./Debug/bionic___errno.o ./Debug/bionic___get_tls.o ./Debug/stdio_fflush.o ./Debug/stdio_fwalk.o ./Debug/stdlib_atexit.o ./Debug/stdio_stdio.o ./Debug/bionic_libc_init_common.o ./Debug/stdlib_exit.o ./Debug/bionic_thread_atexit.o ./Debug/mmap_mmap.o ./Debug/__get_sp___get_sp.o ./Debug/bionic_pthread.o ./Debug/gettid_gettid.o ./Debug/bionic_system_properties.o ./Debug/futex_futex.o ./Debug/bionic___set_tls.o ./Debug/pthread_clone_pthread_clone.o ./Debug/bionic_ptrace.o ./Debug/_exit_thread__exit_thread.o ./Debug/_exit_with_stack_teardown__exit_with_stack_teardown.o ./Debug/bionic_atomics_x86.o ./Debug/unistd_getpriority.o ./Debug/string_strerror_r.o ./Debug/binder_ProcessState.o ./Debug/utils_RefBase.o ./Debug/binder_IPCThreadState.o ./Debug/core_SkGraphics.o ./Debug/images_SkImageDecoder.o ./Debug/images_SkImageRef_GlobalPool.o ./Debug/core_SkGlobals.o ./Debug/core_SkGlyphCache.o ./Debug/core_SkBitmap.o ./Debug/core_SkCanvas.o ./Debug/core_SkStream.o ./Debug/images_SkImageDecoder_Factory.o ./Debug/ports_SkThread_pthread.o ./Debug/core_SkString.o ./Debug/images_SkImageRefPool.o ./Debug/images_SkImageRef.o ./Debug/core_SkPixelRef.o ./Debug/ports_SkGlobals_global.o ./Debug/core_SkChunkAlloc.o ./Debug/core_SkScalerContext.o ./Debug/core_SkPath.o ./Debug/ports_SkFontHost_android.o ./Debug/ports_SkDebug_android.o ./Debug/core_SkMemory_stdlib.o ./Debug/core_SkDebug.o ./Debug/core_Sk64.o ./Debug/core_SkWriter32.o ./Debug/core_SkColorTable.o ./Debug/core_SkUtils.o ./Debug/core_SkPackBits.o ./Debug/core_SkPaint.o ./Debug/core_SkRefCnt.o ./Debug/core_SkXfermode.o ./Debug/core_SkAlphaRuns.o ./Debug/core_SkBitmap_scroll.o ./Debug/core_SkBitmapProcShader.o ./Debug/core_SkBitmapProcState.o ./Debug/core_SkBitmapProcState_matrixProcs.o ./Debug/core_SkBitmapSampler.o ./Debug/core_SkBlitRow_D16.o ./Debug/core_SkBlitRow_D32.o ./Debug/core_SkBlitRow_D4444.o ./Debug/core_SkBlitter.o ./Debug/core_SkBlitter_4444.o ./Debug/core_SkBlitter_A1.o ./Debug/core_SkBlitter_A8.o ./Debug/core_SkBlitter_ARGB32.o ./Debug/core_SkBlitter_RGB16.o ./Debug/core_SkBlitter_Sprite.o ./Debug/core_SkBuffer.o ./Debug/core_SkColor.o ./Debug/core_SkColorFilter.o ./Debug/core_SkComposeShader.o ./Debug/core_SkCordic.o ./Debug/core_SkDeque.o ./Debug/core_SkDevice.o ./Debug/core_SkDither.o ./Debug/core_SkDraw.o ./Debug/core_SkEdge.o ./Debug/core_SkEdgeBuilder.o ./Debug/core_SkEdgeClipper.o ./Debug/core_SkFilterProc.o ./Debug/core_SkFlattenable.o ./Debug/core_SkFloat.o ./Debug/core_SkFloatBits.o ./Debug/core_SkGeometry.o ./Debug/core_SkLineClipper.o ./Debug/core_SkMask.o ./Debug/core_SkMaskFilter.o ./Debug/core_SkMath.o ./Debug/core_SkMatrix.o ./Debug/core_SkMMapStream.o ./Debug/core_SkPathEffect.o ./Debug/core_SkPathHeap.o ./Debug/core_SkPathMeasure.o ./Debug/core_SkPicture.o ./Debug/core_SkPictureFlat.o ./Debug/core_SkPicturePlayback.o ./Debug/core_SkPictureRecord.o ./Debug/core_SkPoint.o ./Debug/core_SkProcSpriteBlitter.o ./Debug/core_SkPtrRecorder.o ./Debug/core_SkQuadClipper.o ./Debug/core_SkRasterizer.o ./Debug/core_SkRect.o ./Debug/core_SkRegion.o ./Debug/core_SkRegion_path.o ./Debug/core_SkScan.o ./Debug/core_SkScan_Antihair.o ./Debug/core_SkScan_AntiPath.o ./Debug/core_SkScan_Hairline.o ./Debug/core_SkScan_Path.o ./Debug/core_SkShader.o ./Debug/core_SkShape.o ./Debug/core_SkSpriteBlitter_ARGB32.o ./Debug/core_SkSpriteBlitter_RGB16.o ./Debug/core_SkStroke.o ./Debug/core_SkStrokerPriv.o ./Debug/core_SkTSearch.o ./Debug/core_SkTypeface.o ./Debug/core_SkUnPreMultiply.o ./Debug/ports_SkOSFile_stdio.o ./Debug/ports_SkFontHost_gamma.o ./Debug/ports_SkFontHost_FreeType.o ./Debug/libcutils_properties.o ./Debug/vm_Jni.o ./Debug/libnativehelper_JNIHelp.o ./Debug/AndroidRuntime_AndroidRuntime.o ./Debug/vm_Init.o ./Debug/vm_ReferenceTable.o ./Debug/vm_Thread.o ./Debug/oo_Object.o ./Debug/alloc_Heap.o ./Debug/alloc_Alloc.o ./Debug/interp_Stack.o ./Debug/vm_Atomic.o ./Debug/vm_Native.o ./Debug/vm_Sync.o ./Debug/vm_Exception.o ./Debug/vm_Misc.o ./Debug/vm_UtfString.o ./Debug/vm_AllocTracker.o ./Debug/vm_Ddm.o ./Debug/vm_Debugger.o ./Debug/vm_DvmDex.o ./Debug/vm_Hash.o ./Debug/vm_IndirectRefTable.o ./Debug/vm_InlineNative.o ./Debug/vm_Inlines.o ./Debug/vm_Intern.o ./Debug/vm_JarFile.o ./Debug/vm_LinearAlloc.o ./Debug/vm_PointerSet.o ./Debug/vm_Profile.o ./Debug/vm_Properties.o ./Debug/vm_RawDexFile.o ./Debug/vm_SignalCatcher.o ./Debug/vm_StdioConverter.o ./Debug/vm_TestCompability.o ./Debug/reflect_Reflect.o ./Debug/oo_AccessCheck.o ./Debug/oo_Array.o ./Debug/oo_Resolve.o ./Debug/oo_TypeCheck.o ./Debug/vm_AtomicCache.o ./Debug/alloc_CardTable.o ./Debug/vm_CheckJni.o ./Debug/oo_Class.o ./Debug/alloc_Copying.o ./Debug/alloc_HeapWorker.o ./Debug/libdex_DexProto.o ./Debug/utils_Timers.o ./Debug/utils_Threads.o ./Debug/jni_android_debug_JNITest.o ./Debug/binder_Static.o ./Debug/utils_String16.o ./Debug/utils_String8.o ./Debug/binder_Parcel.o ./Debug/binder_BpBinder.o ./Debug/utils_VectorImpl.o ./Debug/utils_TextOutput.o ./Debug/utils_Static.o ./Debug/jni_android_util_FloatMath.o ./Debug/jni_android_util_Log.o ./Debug/jni_android_util_StringBlock.o ./Debug/jni_android_util_XmlBlock.o ./Debug/jni_android_os_SystemClock.o ./Debug/jni_android_text_AndroidBidi.o ./Debug/jni_android_text_AndroidCharacter.o ./Debug/jni_android_text_format_Time.o ./Debug/jni_android_util_AssetManager.o ./Debug/jni_android_util_Binder.o ./Debug/jni_android_util_EventLog.o ./Debug/graphics_Graphics.o ./Debug/jni_android_pim_EventRecurrence.o ./Debug/jni_android_security_Md5MessageDigest.o ./Debug/jni_android_text_KeyCharacterMap.o ./Debug/jni_android_util_Process.o ./Debug/jni_android_view_Display.o ./Debug/jni_android_opengl_GLES11Ext.o ./Debug/jni_android_view_Surface.o ./Debug/jni_android_view_ViewRoot.o ./Debug/jni_com_google_android_gles_jni_EGLImpl.o ./Debug/jni_com_google_android_gles_jni_GLImpl.o ./Debug/jni_android_graphics_PixelFormat.o ./Debug/jni_android_opengl_GLES10.o ./Debug/jni_android_opengl_GLES10Ext.o ./Debug/jni_android_opengl_GLES11.o ./Debug/jni_android_opengl_GLES20.o ./Debug/graphics_BitmapRegionDecoder.o ./Debug/graphics_Bitmap.o ./Debug/graphics_BitmapFactory.o ./Debug/graphics_Canvas.o ./Debug/graphics_DrawFilter.o ./Debug/graphics_ColorFilter.o ./Debug/graphics_AutoDecodeCancel.o ./Debug/graphics_Camera.o ./Debug/graphics_CreateJavaOutputStreamAdaptor.o ./Debug/graphics_Interpolator.o ./Debug/graphics_LayerRasterizer.o ./Debug/graphics_MaskFilter.o ./Debug/graphics_Matrix.o ./Debug/graphics_Movie.o ./Debug/graphics_NinePatch.o ./Debug/graphics_NinePatchImpl.o ./Debug/graphics_Paint.o ./Debug/graphics_Path.o ./Debug/graphics_PathEffect.o ./Debug/graphics_PathMeasure.o ./Debug/graphics_Picture.o ./Debug/graphics_PorterDuff.o ./Debug/graphics_Rasterizer.o ./Debug/graphics_Region.o ./Debug/graphics_Shader.o ./Debug/graphics_Typeface.o ./Debug/graphics_Utils.o ./Debug/graphics_Xfermode.o ./Debug/graphics_YuvToJpegEncoder.o ./Debug/jni_com_android_internal_graphics_NativeUtils.o ./Debug/jni_android_os_SystemProperties.o ./Debug/jni_android_os_Debug.o ./Debug/jni_android_os_MessageQueue.o ./Debug/jni_android_os_ParcelFileDescriptor.o ./Debug/jni_android_os_Power.o ./Debug/jni_android_os_StatFs.o ./Debug/jni_android_os_FileUtils.o ./Debug/jni_android_os_UEventObserver.o ./Debug/jni_android_util_FileObserver.o ./Debug/jni_android_media_AudioSystem.o ./Debug/jni_android_os_MemoryFile.o ./Debug/jni_com_android_internal_os_ZygoteInit.o ./Debug/jni_android_hardware_Camera.o ./Debug/jni_android_hardware_SensorManager.o ./Debug/jni_android_media_AudioRecord.o ./Debug/jni_android_net_LocalSocketImpl.o ./Debug/jni_android_emoji_EmojiFactory.o ./Debug/libcutils_atomic.o ./Debug/base_ftadvanc.o ./Debug/base_ftinit.o ./Debug/base_ftobjs.o ./Debug/base_ftoutln.o ./Debug/mingw_errno.o ./Debug/sigaction_sigaction1.o > "d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\angowx.txt"
CreateProcess(C:\DOCUME~1\leon\LOCALS~1\Temp\make6976-1.bat,C:\DOCUME~1\leon\LOCALS~1\Temp\make6976-1.bat,...)
Live child 00c1a0a0 (Debug/angowx) PID 12699152
ê?è?DDì?3¤?£
mingw32-make.exe[1]: *** [Debug/angowx] Error 255
mingw32-make.exe: *** [All] Error 2
Reaping losing child 00c1a0a0 PID 12699152
Cleaning up temp batch file C:\DOCUME~1\leon\LOCALS~1\Temp\make6976-1.bat
angowx.mk:95: recipe for target 'Debug/angowx' failed
that's a long command in that bat. maybe it's too long. I copy it to cmd. Yes, it's too long, so angowx.txt doesn't exist.
So I will have to launch library project to reduce the amount of files.
I just feel if I follow this way down, I would have to rebuild android on windows. So I could narrow down the code, and only leave the useful part of each file. But those files are quite complicated, doing so would be more troublesome. So let it be, let's move on all the same.
C:\wxWidgets-2.9.4\include/wx/defs.h:1102:25: error: conflicting declaration 'typedef wxInt32 ssize_t'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/arch-x86/include/machine/_types.h:52:24: error: 'ssize_t' has a previous declaration as 'typedef long int ssize_t'
comment _types.h, but many more come out, so comment defs.h.
C:\wxWidgets-2.9.4\include/wx/wxcrtbase.h:697:62: error: '_strdup' was not declared in this scope
C:\wxWidgets-2.9.4\include/wx/wxcrtbase.h:698:68: error: '_wcsdup' was not declared in this scope
copy from c:\mingw-4.6.1\include\string.h
C:\wxWidgets-2.9.4\include/wx/wxcrt.h:796:73: error: '_wtoi' was not declared in this scope
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\android\AndroidRuntime\mingw-compat.h
C:\wxWidgets-2.9.4\include/wx/filename.h:445:46: error: ambiguous overload for 'operator[]' in 'wxFileName::GetPathSeparators(wxPathFormat)()[0u]'
C:\wxWidgets-2.9.4\include/wx/filename.h:445:46: note: candidates are:
C:\wxWidgets-2.9.4\include/wx/filename.h:445:46: note: operator[](const char*, int)
C:\wxWidgets-2.9.4\include/wx/filename.h:445:46: note: operator[](const wchar_t*, int)
C:\wxWidgets-2.9.4\include/wx/string.h:1592:15: note: wxUniChar wxString::operator[](int) const
C:\wxWidgets-2.9.4\include/wx/string.h:1594:15: note: wxUniChar wxString::operator[](long int) const
C:\wxWidgets-2.9.4\include/wx/string.h:1596:15: note: wxUniChar wxString::operator[](size_t) const
C:\wxWidgets-2.9.4\include/wx/string.h:1604:18: note: wxUniCharRef wxString::operator[](int)
C:\wxWidgets-2.9.4\include/wx/string.h:1606:18: note: wxUniCharRef wxString::operator[](long int)
C:\wxWidgets-2.9.4\include/wx/string.h:1608:18: note: wxUniCharRef wxString::operator[](size_t)
http://blog.debroglie.net/2008/12/03/olex2-has-made-it-to-fedora-10/
The easiest way to fix it is to edit your copy of /usr/include/wx-2.8/wx/filename.h at line 393 and change the [0u] to [0].
./Debug/dialogs.o: In function `ZN8wxString7ImplStrEPKcRK8wxMBConv':
C:/wxWidgets-2.9.4/include/wx/string.h:525: undefined reference to `_imp___ZN8wxString10ConvertStrEPKcmRK8wxMBConv'
in c:\wxWidgets-2.9.4\lib\gcc_dll\libwxbase29u.a:
`_imp___ZN8wxString10ConvertStrEPKcjRK8wxMBConv
// static wxScopedWCharBuffer ImplStr(const char* str,
// const wxMBConv& conv = wxConvLibc)
// { return ConvertStr(str, npos, conv).data; }
C:/wxWidgets-2.9.4/include/wx/hashmap.h:755: undefined reference to `_imp___ZN17_wxHashTableBase211DeleteNodesEmPP21_wxHashTable_NodeBasePFvS1_E'
C:/wxWidgets-2.9.4/include/wx/hashmap.h:758: undefined reference to `_imp___ZN17_wxHashTableBase211DeleteNodesEmPP21_wxHashTable_NodeBasePFvS1_E'
in c:\wxWidgets-2.9.4\lib\gcc_dll\libwxbase29u.a:
`_imp___ZN17_wxHashTableBase211DeleteNodesEjPP21_wxHashTable_NodeBasePFvS1_E
C:/wxWidgets-2.9.4/include/wx/hashmap.h:758: undefined reference to `_imp___ZN17_wxHashTableBase213CopyHashTableEPP21_wxHashTable_NodeBasemPS_S2_PFmS3_S1_EPFS1_S1_E'
in c:\wxWidgets-2.9.4\lib\gcc_dll\libwxbase29u.a:
`_imp___ZN17_wxHashTableBase213CopyHashTableEPP21_wxHashTable_NodeBasejPS_S2_PFmS3_S1_EPFS1_S1_E
http://wiki.osdev.org/C%2B%2B_to_ASM_linkage_in_GCC
One of the things which prevents generally absolute portability of C++ libraries is the fact that different compilers use different Name Mangling schemes.
***********Name Mangling schemes*****************
http://www.mingw.org/wiki/MixingCompilers
http://www.programmersheaven.com/2/Calling-conventions
there's some different between the .a(wxWidgets file) and .o(object file), maybe it's because I change the definition of some data type such as size_t.
Take the following example: A global function (i.e. with no namespace attached) getObjId() in C++ may be overloaded to these three instances: (These are not technically correct; your compiler will most likely emit something different. They are for demonstration, and are simply scratched out from the general mangling pattern GCC uses).
int getObjId(void); int getObjId(int); int getObjId(unsigned int);
From the source point of view, you believe that these three have the same name in the object file, and the compiler magically knows which one to choose for a call. However, three distinct symbols are generated respectively, in the general form:
_ZN8getObjIdEv, _ZN8getObjIdEi, _ZN8getObjIdEj.
The compiler uses the generated symbol name to encode information about the symbol. This generally says that 'this is a mangled symbol' (_Z). 'It has 8 characters of user-defined symbol relevance' (8), and those are [getObjId]. The 'E' is probably used to mean END, and after that GCC generally places several letters and namespace/object names as details on the arguments. (v=void, i=int, j=unsigned int...).
http://stackoverflow.com/questions/7064160/using-msvc-lib-in-mingw
http://blogs.msdn.com/b/vijay/archive/2009/10/02/what-is-name-decoration-or-name-mangling.aspx
http://stackoverflow.com/questions/2529770/how-to-use-libraries-compiled-with-mingw-in-msvc
typedef unsigned int uisize_t;
// static void DeleteNodes( size_t buckets, _wxHashTable_NodeBase** table,
static void DeleteNodes( uisize_t buckets, _wxHashTable_NodeBase** table,
// size_t srcBuckets, _wxHashTableBase2* dst,
uisize_t srcBuckets, _wxHashTableBase2* dst,
C:/wxWidgets-2.9.4/include/wx/string.h:528: undefined reference to `_imp___ZN8wxString10ConvertStrEPKcmRK8wxMBConv'
this is like the nightmare. I change the definition of wxString10ConvertStr:
//#if wxUSE_UNICODE_UTF8
// static SubstrBufFromMB ConvertStr(const char *psz, size_t nLength,
// const wxMBConv& conv);
// static SubstrBufFromWC ConvertStr(const wchar_t *pwz, size_t nLength,
// const wxMBConv& conv);
//#elif wxUSE_UNICODE_WCHAR
// static SubstrBufFromMB ConvertStr(const char *psz, size_t nLength,
// const wxMBConv& conv);
//#else
// static SubstrBufFromWC ConvertStr(const wchar_t *pwz, size_t nLength,
// const wxMBConv& conv);
//#endif
typedef unsigned int uisize_t;
#if wxUSE_UNICODE_UTF8
static SubstrBufFromMB ConvertStr(const char *psz, uisize_t nLength,
const wxMBConv& conv);
static SubstrBufFromWC ConvertStr(const wchar_t *pwz, uisize_t nLength,
const wxMBConv& conv);
#elif wxUSE_UNICODE_WCHAR
static SubstrBufFromMB ConvertStr(const char *psz, uisize_t nLength,
const wxMBConv& conv);
#else
static SubstrBufFromWC ConvertStr(const wchar_t *pwz, uisize_t nLength,
const wxMBConv& conv);
#endif
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/libbionic/Debug/;d:/linux/linuxkernel/WORKING_DIRECTORY/ango/libskia/Debug/;d:/linux/linuxkernel/WORKING_DIRECTORY/ango/libcorejni/Debug/;d:/linux/linuxkernel/WORKING_DIRECTORY/ango/libdvm/Debug/;d:/linux/linuxkernel/WORKING_DIRECTORY/ango/libcutils/Debug/
bionic;corejni;dvm;cutils
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/system/core/liblog/logd_write.c:91: undefined reference to `__errno'
int errno;
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/system/core/liblog/logd_write.c:52:5: error: conflicting types for '__errno'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/__set_errno.c:34: undefined reference to `__errno'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/errno.h:48:24: note: previous declaration of '__errno' was here
errno is also defined in:
c:\mingw-4.6.1\include\errno.h
C:\MinGW-4.6.1\include\stdlib.h
change C:\MinGW-4.6.1\include\errno.h to C:\MinGW-4.6.1\include\errno_m.h
in logd_write.c:
#include
;bionic;corejni;dvm;cutils;dvmtest
Program received signal SIGSEGV, Segmentation fault.
0x770f5519 in OLEAUT32!DllUnregisterServer () from C:\WINDOWS\system32\oleaut32.dll
microsoft visual c++ runtime library
this application has requested the runtime to terminate it in an unusual way.
in D:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\app_process\app_main_test.cpp,
strlcpy(const_cast
strlcpy is in
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\system\core\libcutils\memory.c, it should be a static library, so put this file into the main app.
also corejni;dvm is causing the same issue. Have to reconstruct it step by step.
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntimetest.cpp:266: undefined reference to `__assert2'
C:\MinGW-4.6.1\include\assert.h
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\include\assert.h
save C:\MinGW-4.6.1\include\assert.h as C:\MinGW-4.6.1\include\assertm.h
in AndroidRuntimetest.cpp:
#include
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntimetest.cpp:267:31: error: macro "_assert" passed 3 arguments, but takes just 1
#define assert(e) ((e) ? (void)0 : _assert(#e, __FILE__, __LINE__))
c:\mingw-4.6.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/assertm.h:38:76: error: macro "_assert" passed 3 arguments, but takes just 1
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntimetest.cpp:268:31: error: macro "_assert" passed 3 arguments, but takes just 1
replace D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\include\assert.h with C:\MinGW-4.6.1\include\assert.h
save D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\include\android_runtime\AndroidRuntime.h as
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\include\android_runtime\AndroidRuntimetest.h
comment:
//#include
// Vector
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\system\core\libcutils\process_name.c
comment the running_in_emulator part.
C:\wxWidgets-2.9.4\include/wx/msw/winundef.h: In function 'HWND__* android::CreateDialog(HINSTANCE, LPCTSTR, HWND, DLGPROC)':
C:\wxWidgets-2.9.4\include/wx/msw/winundef.h:39:20: error: cannot convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' for argument '2' to 'HWND__*
C:\wxWidgets-2.9.4\include/wx/msw/winundef.h:70:48: error: cannot convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' for argument '14' to 'HFONT__* CreateFontW(int, int, int, int, int, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, LPCWSTR)'
C:\wxWidgets-2.9.4\include/wx/msw/winundef.h:95:20: error: cannot convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' for argument '2' to 'HWND__* CreateWindowExW(DWORD, LPCWSTR, LPCWSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)'
C:\wxWidgets-2.9.4\include/wx/msw/winundef.h:112:44: error: cannot convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' for argument '2' to 'HMENU__* LoadMenuW(HINSTANCE, LPCWSTR)'
C:\wxWidgets-2.9.4\include/wx/msw/winundef.h:127:43: error: cannot convert 'LPFINDREPLACE {aka FINDREPLACEA*}' to 'LPFINDREPLACEW {aka FINDREPLACEW*}' for argument '1' to 'HWND__* FindTextW(LPFINDREPLACEW)'
C:\wxWidgets-2.9.4\include/wx/msw/winundef.h:312:51: error: cannot convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' for argument '2' to 'HICON__* LoadIconW(HINSTANCE, LPCWSTR)'
C:\wxWidgets-2.9.4\include/wx/msw/winundef.h:325:55: error: cannot convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' for argument '2' to 'HBITMAP__* LoadBitmapW(HINSTANCE, LPCWSTR)'
CreateDialogParamW(HINSTANCE, LPCWSTR, HWND, DLGPROC, LPARAM)'
return CreateDialogW(hInstance, (LPCWSTR)pTemplate, hwndParent, pDlgProc);
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/libdvm/mingw_libdvm.c:109: multiple definition of `sigpending'
./Debug/AndroidRuntime_sigprocmask.o:d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/sigprocmask.c:211: first defined here
comment sigprocmask.c
copy dvmInitMutex(pthread_mutex_t* pMutex) from D:\linux\linuxkernel\WORKING_DIRECTORY\ango\libdvm\Thread2.h(dalvik\vm\Thread.h) to D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\Jnitest.c
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/alloc/HeapSource.c:886: undefined reference to `mspace_max_allowed_footprint'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\bionic\dlmalloc.c
there's some connection between dlmalloc.c and D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\system\core\libcutils\mspace.c. without mspace.c, mspace_max_allowed_footprint seems to be missing in dlmalloc.c.
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/mman.h:50:15: error: conflicting types for 'NTSyncMemory'
D:/linux/linuxkernel/WORKING_DIRECTORY/ango/libdvm/nt-base.h:349:3: note: previous declaration of 'NTSyncMemory' was here
//extern int msync(const void *, size_t, int);
extern int msync( void *, size_t, int);
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/linker/linker.c:145: multiple definition of `malloc'
./Debug/bionic_dlmalloc.o:d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/dlmalloc.c:4197: first defined here
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/linker/linker.c:145: multiple definition of `malloc'
./Debug/bionic_dlmalloc.o:d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/dlmalloc.c:4197: first defined here
./Debug/linker_linker.o: In function `free':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/linker/linker.c:146: multiple definition of `free'
./Debug/bionic_dlmalloc.o:d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/dlmalloc.c:4329: first defined here
./Debug/linker_linker.o: In function `realloc':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/linker/linker.c:147: multiple definition of `realloc'
./Debug/bionic_dlmalloc.o:d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/dlmalloc.c:4443: first defined here
./Debug/linker_linker.o: In function `calloc':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/linker/linker.c:148: multiple definition of `calloc'
./Debug/bionic_dlmalloc.o:d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/dlmalloc.c:4429: first defined here
c:\wxwidgets-2.9.4\include\crtdbg.h
comment dlmalloc.c
//#define dlcalloc calloc
//#define dlfree free
//#define dlmalloc malloc
#define dlmemalign memalign
//#define dlrealloc realloc
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Init.c:1348: undefined reference to `jniRegisterSystemMethods'
comment for test
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\linker\linker.c
comment:
//int main(int argc, char **argv)
//{
// return 0;
//}
gcc -c "d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/alloc/HeapSourcetest.c" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:\wxWidgets-2.9.4\lib\gcc_dll\mswud -IC:\wxWidgets-2.9.4\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -D__WX__ -DWIN32 -o ./Debug/alloc_HeapSourcetest.o -I. -I. -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/core/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/images/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/arch-x86/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/arch-x86/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/private/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/freetype/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/zlib/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/native/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/opt/emoji/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/icu4c/common/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/openssl/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/system/core/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111101-froyo/hardware/libhardware/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/android/graphics/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/opengl/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/opengl/libs/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/skia/src/ports/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/jpeg/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/core/jni/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/sqlite/dist/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/sqlite/android/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/hardware/libhardware_legacy/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/hardware/libhardware/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/openssl/crypto/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/hardware/libhardware_legacy/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/libnativehelper/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/ango/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/system/core/libcutils/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/icu4c/i18n/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/libnfc-nxp/src/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/libnfc-nxp/inc/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/system/core/libpixelflinger/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/safe-iop/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/libcore/include/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/expat/lib/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/external/openssl/ -ID:/linux/linuxkernel/WORKING_DIRECTORY/ango/libdvm/ -Id:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/alloc/HeapBitmap.c:168: undefined reference to `dvmClzImpl'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:948: undefined reference to `mmap'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:965: undefined reference to `dvmInitInterpStack'
./Debug/vm_Threadtest.o: In function `prepareThread':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:995: undefined reference to `assignThreadId'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:997: undefined reference to `dvmGetSysThreadId'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:1005: undefined reference to `setThreadSelf'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:1031: undefined reference to `dvmInitReferenceTable'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:1035: undefined reference to `dvmInitReferenceTable'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:1209: undefined reference to `dvmAllocBit'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\Inlines.c
#define _DALVIK_GEN_INLINES
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\Inlines.h
#ifndef _DALVIK_GEN_INLINES /* only defined by Inlines.c */
# define INLINE extern __inline__
#else
# define INLINE
#endif
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/InlineNative.c:801: undefined reference to `dvmThreadSelf'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/InlineNative.c:819: undefined reference to `dvmFindClassNoInit'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/InlineNative.c:825: undefined reference to `dvmFindDirectMethodByDescriptor'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/InlineNative.c:849: undefined reference to `dvmMethodTraceAdd'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/InlineNative.c:849: undefined reference to `dvmEmitEmulatorTrace'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/InlineNative.c:825: undefined reference to `dvmFindDirectMethodByDescriptor'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/InlineNative.c:829: undefined reference to `dvmFindVirtualMethodByDescriptor'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Misc.h:75: undefined reference to `dvmPrintHexDumpEx'
./Debug/vm_Inlines.o: In function `dvmPrintHexDumpDbg':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Misc.h:85: undefined reference to `dvmPrintHexDumpEx'
./Debug/vm_Inlines.o: In function `dvmGetRelativeTimeUsec':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Misc.h:230: undefined reference to `dvmGetRelativeTimeNsec'
./Debug/vm_Inlines.o: In function `dvmGetThreadCpuTimeUsec':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Misc.h:261: undefined reference to `dvmGetThreadCpuTimeNsec'
./Debug/vm_Inlines.o: In function `dvmGetOtherThreadCpuTimeUsec':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Misc.h:269: undefined reference to `dvmGetOtherThreadCpuTimeNsec'
./Debug/vm_Inlines.o: In function `dvmFindFieldOffset':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Object.h:671: undefined reference to `dvmFindInstanceField'
./Debug/vm_Inlines.o: In function `expandBufAddFieldId':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/jdwp/Jdwp.h:62: undefined reference to `expandBufAdd4BE'
./Debug/vm_Inlines.o: In function `dvmPopIndirectRefTableSegment':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/IndirectRefTable.h:290: undefined reference to `dvmPopIndirectRefTableSegmentCheck'
./Debug/vm_Inlines.o: In function `dvmAppendToIndirectRefTable':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/IndirectRefTable.h:337: undefined reference to `dvmAddToIndirectRefTable'
./Debug/vm_Inlines.o: In function `dvmGetFromIndirectRefTable':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/IndirectRefTable.h:358: undefined reference to `dvmGetFromIndirectRefTableCheck'
./Debug/vm_Inlines.o: In function `dvmThrowException':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exception.h:35: undefined reference to `dvmThrowChainedException'
./Debug/vm_Inlines.o: In function `dvmThrowExceptionFmt':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exception.h:53: undefined reference to `dvmThrowExceptionFmtV'
./Debug/vm_Inlines.o: In function `dvmThrowExceptionByClass':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exception.h:65: undefined reference to `dvmThrowChainedExceptionByClass'
./Debug/vm_Inlines.o: In function `dvmThrowExceptionWithClassMessage':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exception.h:77: undefined reference to `dvmThrowChainedExceptionWithClassMessage'
./Debug/vm_Inlines.o: In function `dvmFillInStackTrace':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exception.h:189: undefined reference to `dvmFillInStackTraceInternal'
./Debug/vm_Inlines.o: In function `dvmFillInStackTraceRaw':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exception.h:194: undefined reference to `dvmFillInStackTraceInternal'
./Debug/vm_Inlines.o: In function `dvmWriteBarrierField':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/alloc/WriteBarrier.h:31: undefined reference to `dvmMarkCard'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/alloc/CardTabletest.c:118: undefined reference to `dvmIsValidCard'
./Debug/vm_Inlines.o: In function `dvmGetExpandedRegisterMap':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/RegisterMap.h:259: undefined reference to `dvmGetExpandedRegisterMap0'
./Debug/vm_Inlines.o: In function `dvmFindInterfaceMethodInCache':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/common/FindInterface.h:33: undefined reference to `dvmInterpFindInterfaceMethod'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/common/FindInterface.h:33: undefined reference to `dvmInterpFindInterfaceMethod'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/common/FindInterface.h:33: undefined reference to `dvmUpdateAtomicCache'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/Mterp.c:50: undefined reference to `dvmAsmInstructionEnd'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/Mterp.c:50: undefined reference to `dvmAsmInstructionStart'
./Debug/mterp_Mterp.o: In function `dvmMterpStd':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/Mterp.c:106: undefined reference to `dvmMterpStdRun'
./Debug/out_InterpC-x86.o: In function `dvmMterp_returnFromMethod':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/out/InterpC-x86.c:1796: undefined reference to `dvmMterpStdBail'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/out/InterpC-x86.c:1822: undefined reference to `dvmMterpStdBail'
./Debug/out_InterpC-x86.o: In function `dvmMterp_exceptionThrown':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/out/InterpC-x86.c:1864: undefined reference to `dvmMterpStdBail'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/out/InterpC-x86.c:1960: undefined reference to `dvmMterpStdBail'
avoid the effect of InterpAsm-x86.o
*******************************************************************************************
commit fd647245ee4b0cebaae9dcbbee5d0905276c3629
130203192301
*******************************************************************************************
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:3534: undefined reference to `dvmCreateCstrFromString'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:3560: undefined reference to `dvmCreateCstrFromString'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\UtfStringtest.c
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/UtfStringtest.c:406: undefined reference to `utf16_utf8ByteLen'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/UtfStringtest.c:410: undefined reference to `convertUtf16ToUtf8'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:3566: undefined reference to `dvmGetThreadStatusStr'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:3566: undefined reference to `dvmPrintDebugMessage'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:3576: undefined reference to `dvmPrintDebugMessage'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\Misctest.c
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:3580: undefined reference to `getpriority'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:3580: undefined reference to `dvmPrintDebugMessage'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:3594: undefined reference to `dvmPrintDebugMessage'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:3622: undefined reference to `dvmDumpRunningThreadStack'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/interp/Stacktest.c:1379: undefined reference to `dumpFrames'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/interp/Stacktest.c:1224: undefined reference to `dvmLineNumFromPC'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/interp/Stacktest.c:835:13: error: 'lineNumForPcCb' undeclared (first use in this function)
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/interp/Stacktest.c:1224: undefined reference to `dvmGetMethodSourceFile'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/interp/Stacktest.c:1243: undefined reference to `dvmGetMonitorObject'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/interp/Stacktest.c:1253: undefined reference to `extractMonitorEnterObject'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/interp/Stacktest.c:1119: undefined reference to `dvmLinearAllocContains'
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\LinearAlloctest.c
static inline LinearAllocHdr* getHeader(Object* classLoader)
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Synctest.c:278: undefined reference to `lockOwner'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Synctest.c:282: undefined reference to `dvmGetThreadByThreadId'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/interp/Stacktest.c:1168: undefined reference to `dvmGetObjectLockHolder'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/interp/Stacktest.c:1256: undefined reference to `dvmGetThreadName'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:3624: undefined reference to `dvmDumpThreadStack'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\interp\Stacktest.c
./Debug/interp_Stacktest.o: In function `dvmPushJNIFrame':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/interp/Stacktest.c:157: undefined reference to `dvmHandleStackOverflow'
./Debug/interp_Stacktest.o: In function `callPrep':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/interp/Stacktest.c:413: undefined reference to `dvmPushInterpFrame'
./Debug/interp_Stacktest.o: In function `dvmGetCaller2Class':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/interp/Stacktest.c:940: undefined reference to `dvmGetCallerFP'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/out/InterpC-portstdtest.c:1946: undefined reference to `dvmCheckSuspendPending'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Resolvetest.c:559: undefined reference to `dvmLookupImmortalInternedString'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Interntest.c:89: undefined reference to `dvmHashTableRemove'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Arraytest.c:92: undefined reference to `dvmAllocArray'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/out/InterpC-portstdtest.c:3847: undefined reference to `dvmCleanupStackOverflow'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/out/InterpC-portstdtest.c:3822: undefined reference to `dvmFindCatchBlock'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/out/InterpC-portstdtest.c:3300: undefined reference to `dvmResolveMethod'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/out/InterpC-portstdtest.c:2960: undefined reference to `dvmThrowVerificationError'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/out/InterpC-portstdtest.c:2197: undefined reference to `dvmCanPutArrayElement'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/out/InterpC-portstdtest.c:2037: undefined reference to `dvmInterpHandleSparseSwitch'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/out/InterpC-portstdtest.c:2006: undefined reference to `dvmInterpHandlePackedSwitch'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/out/InterpC-portstdtest.c:1904: undefined reference to `dvmInterpHandleFillArrayData'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/out/InterpC-portstdtest.c:2299: undefined reference to `dvmResolveStaticField'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/out/InterpC-portstdtest.c:2232: undefined reference to `dvmResolveInstField'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:3087: undefined reference to `fullSuspendCheck'
./Debug/interp_Interptest.o: In function `dvmInterpret':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/interp/Interptest.c:1338: undefined reference to `dvmInterpretStd'
http://blog.csdn.net/caimouse/article/details/6897685
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\mterp\out\InterpC-portstd.c
#define INTERP_FUNC_NAME dvmInterpretStd
bool INTERP_FUNC_NAME(Thread* self, InterpState* interpState)
./Debug/vm_Threadtest.o: In function `lockThreadSuspend':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:577: undefined reference to `getSuspendCauseStr'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:588: undefined reference to `dvmIterativeSleep'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:589: undefined reference to `getSuspendCauseStr'
./Debug/vm_Threadtest.o: In function `waitForThreadSuspend':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:2654: undefined reference to `dvmRaiseThreadPriorityIfNeeded'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:2677: undefined reference to `dvmIterativeSleep'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:2684: undefined reference to `dumpWedgedThread'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:2702: undefined reference to `dvmNukeThread'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:2716: undefined reference to `dvmResetThreadPriority'
./Debug/interp_Interptest.o: In function `dvmBreakpointSetRemove':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/interp/Interptest.c:320: undefined reference to `dvmDexChangeDex1'
./Debug/jdwp_JdwpMain.o: In function `dvmJdwpStartup':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/jdwp/JdwpMain.c:66: undefined reference to `dvmJdwpSocketTransport'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/jdwp/JdwpMain.c:70: undefined reference to `dvmJdwpAndroidAdbTransport'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/jdwp/JdwpMain.c:94: undefined reference to `dvmCreateInternalThread'
./Debug/vm_Threadtest.o: In function `dvmAttachCurrentThread':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:1981: undefined reference to `createFakeRunFrame'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:2067: undefined reference to `getThreadPriorityFromSystem'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:2120: undefined reference to `dvmDbgPostThreadStart'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:2126: undefined reference to `unlinkThread'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:2137: undefined reference to `dvmDestroyJNIEnv'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:2140: undefined reference to `freeThread'
./Debug/vm_Threadtest.o: In function `dvmDetachCurrentThread':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:2183: undefined reference to `dvmComputeExactFrameDepth'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:2211: undefined reference to `dvmReleaseJniMonitors'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:2217: undefined reference to `threadExitUncaughtException'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:2252: undefined reference to `dvmDbgPostThreadDeath'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:2302: undefined reference to `dvmDestroyJNIEnv'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:2310: undefined reference to `unlinkThread'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:2331: undefined reference to `releaseThreadId'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:2336: undefined reference to `freeThread'
{ 1, 2, handleVM_ClassesBySignature,
"VirtualMachine.ClassesBySignature" },
//1, 3, VirtualMachine.AllClasses
{ 1, 4, handleVM_AllThreads, "VirtualMachine.AllThreads" },
{ 1, 5, handleVM_TopLevelThreadGroups,
"VirtualMachine.TopLevelThreadGroups" },
{ 1, 6, handleVM_Dispose, "VirtualMachine.Dispose" },
{ 1, 7, handleVM_IDSizes, "VirtualMachine.IDSizes" },
{ 1, 8, handleVM_Suspend, "VirtualMachine.Suspend" },
{ 1, 9, handleVM_Resume, "VirtualMachine.Resume" },
{ 1, 10, handleVM_Exit, "VirtualMachine.Exit" },
{ 1, 11, handleVM_CreateString, "VirtualMachine.CreateString" },
{ 1, 12, handleVM_Capabilities, "VirtualMachine.Capabilities" },
{ 1, 13, handleVM_ClassPaths, "VirtualMachine.ClassPaths" },
{ 1, 14, HandleVM_DisposeObjects, "VirtualMachine.DisposeObjects" },
//1, 15, HoldEvents
//1, 16, ReleaseEvents
{ 1, 17, handleVM_CapabilitiesNew,
"VirtualMachine.CapabilitiesNew" },
//1, 18, RedefineClasses
//1, 19, SetDefaultStratum
{ 1, 20, handleVM_AllClassesWithGeneric,
"VirtualMachine.AllClassesWithGeneric"},
//1, 21, InstanceCounts
/* ReferenceType command set (2) */
{ 2, 1, handleRT_Signature, "ReferenceType.Signature" },
{ 2, 2, handleRT_ClassLoader, "ReferenceType.ClassLoader" },
{ 2, 3, handleRT_Modifiers, "ReferenceType.Modifiers" },
//2, 4, Fields
//2, 5, Methods
{ 2, 6, handleRT_GetValues, "ReferenceType.GetValues" },
{ 2, 7, handleRT_SourceFile, "ReferenceType.SourceFile" },
//2, 8, NestedTypes
{ 2, 9, handleRT_Status, "ReferenceType.Status" },
{ 2, 10, handleRT_Interfaces, "ReferenceType.Interfaces" },
{ 2, 11, handleRT_ClassObject, "ReferenceType.ClassObject" },
{ 2, 12, handleRT_SourceDebugExtension,
"ReferenceType.SourceDebugExtension" },
{ 2, 13, handleRT_SignatureWithGeneric,
"ReferenceType.SignatureWithGeneric" },
{ 2, 14, handleRT_FieldsWithGeneric,
"ReferenceType.FieldsWithGeneric" },
{ 2, 15, handleRT_MethodsWithGeneric,
"ReferenceType.MethodsWithGeneric" },
//2, 16, Instances
//2, 17, ClassFileVersion
//2, 18, ConstantPool
/* ClassType command set (3) */
{ 3, 1, handleCT_Superclass, "ClassType.Superclass" },
{ 3, 2, handleCT_SetValues, "ClassType.SetValues" },
{ 3, 3, handleCT_InvokeMethod, "ClassType.InvokeMethod" },
{ 3, 4, handleCT_NewInstance, "ClassType.NewInstance" },
/* ArrayType command set (4) */
{ 4, 1, handleAT_newInstance, "ArrayType.NewInstance" },
/* InterfaceType command set (5) */
/* Method command set (6) */
{ 6, 1, handleM_LineTable, "Method.LineTable" },
//6, 2, VariableTable
//6, 3, Bytecodes
//6, 4, IsObsolete
{ 6, 5, handleM_VariableTableWithGeneric,
"Method.VariableTableWithGeneric" },
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\jdwp\JdwpHandlertest.c
/* Field command set (8) */
/* ObjectReference command set (9) */
{ 9, 1, handleOR_ReferenceType, "ObjectReference.ReferenceType" },
{ 9, 2, handleOR_GetValues, "ObjectReference.GetValues" },
{ 9, 3, handleOR_SetValues, "ObjectReference.SetValues" },
//9, 4, (not defined)
//9, 5, MonitorInfo
{ 9, 6, handleOR_InvokeMethod, "ObjectReference.InvokeMethod" },
{ 9, 7, handleOR_DisableCollection,
"ObjectReference.DisableCollection" },
{ 9, 8, handleOR_EnableCollection,
"ObjectReference.EnableCollection" },
{ 9, 9, handleOR_IsCollected, "ObjectReference.IsCollected" },
//9, 10, ReferringObjects
/* StringReference command set (10) */
{ 10, 1, handleSR_Value, "StringReference.Value" },
/* ThreadReference command set (11) */
{ 11, 1, handleTR_Name, "ThreadReference.Name" },
{ 11, 2, handleTR_Suspend, "ThreadReference.Suspend" },
{ 11, 3, handleTR_Resume, "ThreadReference.Resume" },
{ 11, 4, handleTR_Status, "ThreadReference.Status" },
{ 11, 5, handleTR_ThreadGroup, "ThreadReference.ThreadGroup" },
{ 11, 6, handleTR_Frames, "ThreadReference.Frames" },
{ 11, 7, handleTR_FrameCount, "ThreadReference.FrameCount" },
//11, 8, OwnedMonitors
{ 11, 9, handleTR_CurrentContendedMonitor,
"ThreadReference.CurrentContendedMonitor" },
//11, 10, Stop
//11, 11, Interrupt
{ 11, 12, handleTR_SuspendCount, "ThreadReference.SuspendCount" },
//11, 13, OwnedMonitorsStackDepthInfo
//11, 14, ForceEarlyReturn
/* ThreadGroupReference command set (12) */
{ 12, 1, handleTGR_Name, "ThreadGroupReference.Name" },
{ 12, 2, handleTGR_Parent, "ThreadGroupReference.Parent" },
{ 12, 3, handleTGR_Children, "ThreadGroupReference.Children" },
/* ArrayReference command set (13) */
{ 13, 1, handleAR_Length, "ArrayReference.Length" },
{ 13, 2, handleAR_GetValues, "ArrayReference.GetValues" },
{ 13, 3, handleAR_SetValues, "ArrayReference.SetValues" },
/* ClassLoaderReference command set (14) */
{ 14, 1, handleCLR_VisibleClasses,
"ClassLoaderReference.VisibleClasses" },
/* EventRequest command set (15) */
{ 15, 1, handleER_Set, "EventRequest.Set" },
{ 15, 2, handleER_Clear, "EventRequest.Clear" },
//15, 3, ClearAllBreakpoints
/* StackFrame command set (16) */
{ 16, 1, handleSF_GetValues, "StackFrame.GetValues" },
{ 16, 2, handleSF_SetValues, "StackFrame.SetValues" },
{ 16, 3, handleSF_ThisObject, "StackFrame.ThisObject" },
//16, 4, PopFrames
/* ClassObjectReference command set (17) */
{ 17, 1, handleCOR_ReflectedType,"ClassObjectReference.ReflectedType" },
/* Event command set (64) */
//64, 100, Composite <-- sent from VM to debugger, never received by VM
{ 199, 1, handleDDM_Chunk, "DDM.Chunk" },
./Debug/jdwp_JdwpMain.o: In function `dvmJdwpResetState':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/jdwp/JdwpMain.c:158: undefined reference to `dvmJdwpUnregisterAll'
./Debug/jdwp_JdwpMain.o: In function `dvmJdwpShutdown':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/jdwp/JdwpMain.c:183: undefined reference to `dvmJdwpPostVMDeath'
./Debug/jdwp_JdwpMain.o: In function `jdwpThreadStart':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/jdwp/JdwpMain.c:278: undefined reference to `dvmDbgConnected'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/jdwp/JdwpMain.c:313: undefined reference to `dvmDbgThreadRunning'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/jdwp/JdwpMain.c:314: undefined reference to `dvmDbgDdmDisconnected'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/jdwp/JdwpMain.c:322: undefined reference to `dvmDbgDisconnected'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/jdwp/JdwpMain.c:325: undefined reference to `dvmUndoDebuggerSuspensions'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/jdwp/JdwpMain.c:333: undefined reference to `dvmDbgThreadRunning'
./Debug/vm_Debuggertest.o: In function `objectIsRegistered':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Debuggertest.c:285: undefined reference to `lookupId'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\jdwp\JdwpEventtest.c
bool dvmJdwpPostException(JdwpState* state, const JdwpLocation* pThrowLoc,
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/interp/Interptest.c:1349: undefined reference to `dvmInterpretDbg'
./Debug/vm_ReferenceTabletest.o: In function `dvmRemoveFromReferenceTable':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/ReferenceTabletest.c:132: undefined reference to `dvmFindInReferenceTable'
./Debug/oo_Classtest.o: In function `findClassNoInit':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1414: undefined reference to `dvmDumpAllThreads'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1431: undefined reference to `searchBootPathForClass'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1449: undefined reference to `loadClassFromDex'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1464: undefined reference to `dvmLockObject'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1473: undefined reference to `dvmAddClassToHash'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1483: undefined reference to `dvmUnlockObject'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1504: undefined reference to `dvmLinkClass'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1509: undefined reference to `removeClassFromHash'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1516: undefined reference to `dvmObjectNotifyAll'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1517: undefined reference to `dvmUnlockObject'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1539: undefined reference to `dvmObjectNotifyAll'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1540: undefined reference to `dvmUnlockObject'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1588: undefined reference to `dvmLockObject'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1593: undefined reference to `dvmUnlockObject'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1602: undefined reference to `dvmObjectWait'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1604: undefined reference to `dvmUnlockObject'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1611: undefined reference to `throwEarlierClassFailure'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1647: undefined reference to `dvmInitClass'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexVerifytest.c:79: undefined reference to `dvmLogVerifyFailure'
./Debug/vm_Jnitest.o: In function `dvmTraceCallJNIMethod':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jnitest.c:1405: undefined reference to `dvmLogNativeMethodEntry'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jnitest.c:1406: undefined reference to `dvmSelectJNIBridge'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jnitest.c:1408: undefined reference to `dvmLogNativeMethodExit'
./Debug/vm_Jnitest.o: In function `dvmUseJNIBridge':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jnitest.c:1425: undefined reference to `shouldTrace'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jnitest.c:1427: undefined reference to `dvmSelectJNIBridge'
./Debug/analysis_RegisterMaptest.o: In function `dvmGenerateRegisterMapV':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/RegisterMaptest.c:266: undefined reference to `outputTypeVector'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/RegisterMaptest.c:285: undefined reference to `compressMapDifferential'
./Debug/analysis_Optimizetest.o: In function `dvmOptResolveInstField':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/Optimizetest.c:493: undefined reference to `dvmOptResolveClass'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/Optimizetest.c:501: undefined reference to `dvmFindFieldHier'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/Optimizetest.c:528: undefined reference to `tweakLoader'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/Optimizetest.c:530: undefined reference to `untweakLoader'
./Debug/analysis_Optimizetest.o: In function `dvmOptResolveStaticField':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/Optimizetest.c:566: undefined reference to `dvmOptResolveClass'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/Optimizetest.c:574: undefined reference to `dvmFindFieldHier'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/Optimizetest.c:604: undefined reference to `tweakLoader'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/Optimizetest.c:606: undefined reference to `untweakLoader'
./Debug/analysis_Optimizetest.o: In function `dvmOptResolveMethod':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/Optimizetest.c:738: undefined reference to `dvmOptResolveClass'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/Optimizetest.c:770: undefined reference to `dvmFindMethodHier'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/Optimizetest.c:825: undefined reference to `tweakLoader'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/Optimizetest.c:827: undefined reference to `untweakLoader'
./Debug/analysis_CodeVerifytest.o: In function `setTypesFromSignature':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/CodeVerifytest.c:743: undefined reference to `dvmSetUninitInstance'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/CodeVerifytest.c:746: undefined reference to `regTypeFromUninitIndex'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/CodeVerifytest.c:748: undefined reference to `regTypeFromClass'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/CodeVerifytest.c:779: undefined reference to `lookupClassByDescriptor'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/CodeVerifytest.c:782: undefined reference to `regTypeFromClass'
./Debug/analysis_CodeVerifytest.o: In function `doCodeVerification':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/CodeVerifytest.c:3300: undefined reference to `getRegisterLine'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/CodeVerifytest.c:3302: undefined reference to `copyRegisters'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/CodeVerifytest.c:3305: undefined reference to `dumpRegTypes'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/CodeVerifytest.c:3311: undefined reference to `dumpRegTypes'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/CodeVerifytest.c:3320: undefined reference to `getRegisterLine'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/CodeVerifytest.c:3322: undefined reference to `compareRegisters'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/CodeVerifytest.c:3329: undefined reference to `dumpRegTypes'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/CodeVerifytest.c:3331: undefined reference to `dumpRegTypes'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/CodeVerifytest.c:3339: undefined reference to `verifyInstruction'
*******************************************************************************************
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Native.c:389: undefined reference to `dlopen'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Native.c:393: undefined reference to `dlerror'
./Debug/vm_Nativetest.o: In function `findMethodInLib':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Nativetest.c:716: undefined reference to `createJniNameString'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Nativetest.c:720: undefined reference to `mangleString'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Nativetest.c:725: undefined reference to `dlsym'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Nativetest.c:728: undefined reference to `createMangledSignature'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Nativetest.c:739: undefined reference to `dlsym'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/native/InternalNativetest.c:104:14: error: 'gDvmNativeMethodSet' undeclared (first use in this function)
./Debug/reflect_Annotationtest.o: In function `processAnnotationValue':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:402: undefined reference to `readSignedInt'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:404: undefined reference to `dvmWrapPrimitive'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:410: undefined reference to `readSignedInt'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:412: undefined reference to `dvmWrapPrimitive'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:418: undefined reference to `readUnsignedInt'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:420: undefined reference to `dvmWrapPrimitive'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:426: undefined reference to `readSignedInt'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:428: undefined reference to `dvmWrapPrimitive'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:434: undefined reference to `readSignedLong'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:436: undefined reference to `dvmWrapPrimitive'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:442: undefined reference to `readUnsignedInt'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:444: undefined reference to `dvmWrapPrimitive'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:450: undefined reference to `readUnsignedLong'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:452: undefined reference to `dvmWrapPrimitive'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:460: undefined reference to `dvmWrapPrimitive'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:468: undefined reference to `readUnsignedInt'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:480: undefined reference to `readUnsignedInt'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:500: undefined reference to `readUnsignedInt'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:504: undefined reference to `resolveAmbiguousMethod'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:507: undefined reference to `dvmCreateReflectObjForMethod'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:514: undefined reference to `readUnsignedInt'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:519: undefined reference to `readUnsignedInt'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/reflect/Annotationtest.c:579: undefined reference to `processEncodedAnnotation'
./Debug/analysis_DexVerifytest.o: In function `verifyInstructions':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexVerifytest.c:523: undefined reference to `dvmGetBranchTarget'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexVerifytest.c:540: undefined reference to `checkStringIndex'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexVerifytest.c:546: undefined reference to `checkTypeIndex'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexVerifytest.c:550: undefined reference to `checkTypeIndex'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexVerifytest.c:557: undefined reference to `dvmCheckSwitchTargets'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexVerifytest.c:563: undefined reference to `checkArrayData'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexVerifytest.c:582: undefined reference to `dvmCheckBranchTarget'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexVerifytest.c:587: undefined reference to `dvmCheckBranchTarget'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexVerifytest.c:592: undefined reference to `checkNewInstance'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexVerifytest.c:597: undefined reference to `checkNewArray'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexVerifytest.c:602: undefined reference to `checkTypeIndex'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexVerifytest.c:606: undefined reference to `checkTypeIndex'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexVerifytest.c:625: undefined reference to `checkFieldIndex'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexVerifytest.c:643: undefined reference to `checkFieldIndex'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexVerifytest.c:658: undefined reference to `checkMethodIndex'
./Debug/oo_Classtest.o: In function `dvmFreeClassInnards':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1974: undefined reference to `dvmLinearFree'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1987: undefined reference to `freeMethodInnards'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1990: undefined reference to `dvmLinearFree'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:1999: undefined reference to `freeMethodInnards'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:2002: undefined reference to `dvmLinearFree'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:2010: undefined reference to `dvmLinearFree'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:2013: undefined reference to `dvmLinearFree'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:2016: undefined reference to `dvmLinearFree'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Classtest.c:2023: undefined reference to `dvmLinearFree'
./Debug/oo_TypeChecktest.o: In function `isArrayInstanceOf':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/TypeChecktest.c:161: undefined reference to `isArrayInstanceOfArray'
./Debug/oo_Arraytest.o: In function `createArrayClass':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Arraytest.c:419: undefined reference to `dvmMalloc'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Arraytest.c:423: undefined reference to `dvmSetClassSerialNumber'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Arraytest.c:464: undefined reference to `dvmLinearAlloc'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Arraytest.c:487: undefined reference to `dvmLinearAlloc'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Arraytest.c:511: undefined reference to `dvmAddClassToHash'
./Debug/oo_Arraytest.o: In function `dvmFindPrimitiveClass':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Arraytest.c:597: undefined reference to `createPrimitiveClass'
./Debug/oo_Resolvetest.o: In function `dvmResolveInterfaceMethod':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Resolvetest.c:296: undefined reference to `dvmResolveClass'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Resolvetest.c:341: undefined reference to `dvmFindVirtualMethod'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Resolvetest.c:345: undefined reference to `dvmFindVirtualMethod'
./Debug/vm_Exceptiontest.o: In function `dvmThrowChainedException':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exceptiontest.c:234: undefined reference to `dvmFindSystemClass'
./Debug/vm_Exceptiontest.o: In function `dvmThrowChainedExceptionByClass':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exceptiontest.c:269: undefined reference to `dvmInitClass'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exceptiontest.c:279: undefined reference to `dvmAllocObject'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exceptiontest.c:305: undefined reference to `initException'
./Debug/vm_Exceptiontest.o: In function `dvmFillInStackTraceInternal':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exceptiontest.c:995: undefined reference to `dvmIsSuspended'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exceptiontest.c:1045: undefined reference to `dvmAllocPrimitiveArray'
./Debug/analysis_RegisterMaptest.o: In function `dvmGetExpandedRegisterMap0':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/RegisterMaptest.c:1033: undefined reference to `uncompressMapDifferential'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/RegisterMaptest.c:1070: undefined reference to `dvmSetRegisterMap'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/RegisterMaptest.c:1073: undefined reference to `dvmFreeRegisterMap'
./Debug/vm_UtfStringtest.o: In function `dvmCreateStringFromCstr':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/UtfStringtest.c:267: undefined reference to `dvmUtf8Len'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/UtfStringtest.c:267: undefined reference to `dvmCreateStringFromCstrAndLength'
./Debug/vm_Hashtest.o: In function `dvmHashTableLookup':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Hashtest.c:221: undefined reference to `resizeHash'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Threadtest.c:3534: undefined reference to `dvmCreateCstrFromString'
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\linker\
there's something wrong with linker
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/libdvm/mingw_libdvm.c:91: multiple definition of `__futex_wake'
./Debug/bionic_atomics_x86.o:d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/atomics_x86.c:50: first defined here
comment atomics_x86.c
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\libcore\dalvik\src\main\native\dalvik_system_TouchDex.cpp
#include
0 0x6e0dd746 android::SharedBuffer::onlyOwner d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/include/utils/SharedBuffer.h 139
1 0x6e0038a8 android::SharedBuffer::release d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/utils/SharedBuffer.cpp 103
2 0x6e0045f4 android::terminate_string16 d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/utils/String16.cpp 266
3 0x6e0c8757 ~LibUtilsFirstStatics d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/utils/Static.cpp 38
4 0x6e003958 __tcf_0 d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/utils/Static.cpp 43
5 0x6df81026 __dll_exit ../mingw/dllcrt1.c 145
6 0x6df8109c DllMainCRTStartup@12 ../mingw/dllcrt1.c 124
7 0x7c92118a ntdll!LdrSetAppCompatDllRedirectionCallback
8 0x6df80000 ??
9 0x00000000 ??
comment Static.cpp line 43
//static LibUtilsFirstStatics gFirstStatics;
0 0x62485fdf pthread_mutex_trylock
1 0x6248686d pthread_mutex_destroy
2 0x6e0cfb39 ~Mutex d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/include/utils/threads.h 275
3 0x6e0b4e49 ~egl_display_t d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/opengl/libs/EGL/egl.cpp 193
4 0x6e03925b __tcf_2 d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/opengl/libs/EGL/egl.cpp 266
5 0x6df81026 __dll_exit ../mingw/dllcrt1.c 145
6 0x6df8109c DllMainCRTStartup@12 ../mingw/dllcrt1.c 124
7 0x7c92118a ntdll!LdrSetAppCompatDllRedirectionCallback
8 0x6df80000 ??
9 0x00000000 ??
comment egl.cpp line 266
E:\tools\webzip\wget\gcc for Win32\mingw\pthreads\pthreads-w32-2.9.0-mingw32-pre-20110507-2-src.tar\pthreads-w32-2.9.0-mingw32-pre-20110507-2-src\sources\pthreads-20110507\pthreads\pthread.h
E:\tools\webzip\wget\gcc for Win32\mingw\pthreads\pthreads-w32-2.9.0-mingw32-pre-20110507-2-src.tar\pthreads-w32-2.9.0-mingw32-pre-20110507-2-src\sources\pthreads-20110507\pthreads\implement.h
save c:\mingw-4.7.1\include\pthread.h as c:\mingw-4.7.1\include\pthreadm.h
# include
struct pthread_mutex_t_
{
LONG lock_idx; /* Provides exclusive access to mutex state
via the Interlocked* mechanism.
0: unlocked/free.
1: locked - no other waiters.
-1: locked - with possible other waiters.
*/
int recursive_count; /* Number of unlocks a thread needs to perform
before the lock is released (recursive
mutexes only). */
int kind; /* Mutex type. */
pthread_t ownerThread;
HANDLE event; /* Mutex release notification to waiting
threads. */
ptw32_robust_node_t*
robustNode; /* Extra state for robust mutexes */
};
typedef struct pthread_mutex_t_ * pthread_mutex_t;
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:320:8: error: redefinition of 'struct timespec'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/linux/time.h:19:8: error: previous definition of 'struct timespec'
comment time.h
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:585:24: error: conflicting declaration 'typedef struct ptw32_handle_t pthread_t'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/pthread.h:81:14: error: 'pthread_t' has a previous declaration as 'typedef long int pthread_t'
rename d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\include\pthread.h to pthreada.h
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/linux/time.h:50:18: error: field 'it_interval' has incomplete type
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/linux/time.h:51:18: error: field 'it_value' has incomplete type
# include
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\libs\utils\Threads.cpp:174
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\libs\utils\Threads.cpp:183
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/binder/IPCThreadState.cpp:413:5: error: invalid cast from type 'pthread_t {aka ptw32_handle_t}' to type 'void*'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/binder/IPCThreadState.cpp:478:5: error: invalid cast from type 'pthread_t {aka ptw32_handle_t}' to type 'void*'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/binder/IPCThreadState.cpp: In member function 'android::status_t android::IPCThreadState::transact(int32_t, uint32_t, const android::Parcel&, android::Parcel*, uint32_t)':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/binder/IPCThreadState.cpp:505:62: error: invalid cast from type 'pthread_t {aka ptw32_handle_t}' to type 'void*'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/binder/IPCThreadState.cpp:545:60: error: invalid cast from type 'pthread_t {aka ptw32_handle_t}' to type 'void*'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/binder/IPCThreadState.cpp: In member function 'android::status_t android::IPCThreadState::executeCommand(int32_t)':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/binder/IPCThreadState.cpp:1003:70: error: invalid cast from type 'pthread_t {aka ptw32_handle_t}' to type 'void*'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/libs/binder/IPCThreadState.cpp:1037:64: error: invalid cast from type 'pthread_t {aka ptw32_handle_t}' to type 'void*'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/alloc/HeapWorker.c: In function 'dvmHeapWorkerStartup':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/alloc/HeapWorker.c:59:5: error: invalid operands to binary == (have 'pthread_t' and 'int')
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/alloc/HeapWorker.c: In function 'dvmHeapWorkerShutdown':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/alloc/HeapWorker.c:94:31: error: invalid operands to binary != (have 'pthread_t' and 'int')
e:\tools\webzip\wget\gcc for Win32\mingw\pthreads\pthreads-w32-2.9.0-mingw32-pre-20110507-2-src.tar\pthreads-w32-2.9.0-mingw32-pre-20110507-2-src\sources\pthreads-20110507\pthreads\pthread.h
/*
* Generic handle type - intended to extend uniqueness beyond
* that available with a simple pointer. It should scale for either
* IA-32 or IA-64.
*/
typedef struct {
void * p; /* Pointer to actual object */
unsigned int x; /* Extra information - reuse count etc */
} ptw32_handle_t;
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\include\utils\threads.h
typedef void* android_thread_id_t;
return (android_thread_id_t)pthread_self().p;
// return (android_thread_id_t)pthread_self();
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthread.h:320:8: error: redefinition of 'struct timespec'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/linux/time.h:19:8: error: previous definition of 'struct timespec'
change pthread.h
0 0x004130a8 strlcpy d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/system/core/libcutils/memory.c 73
1 0x00419e4a setArgv0 d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp 115
2 0x00419ff9 _fu148___ZN7android7mArgLenE d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp 156
// argv0 = argv[0];
argv0 = malloc( strlen(argv[0])+1); //TODO: free argv0 before exit
strcpy(argv0, argv[0]);
0 0x06bee625 __android_log_assert d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/liblog/logd_write.c 234
1 0x6dfca63f android::AndroidRuntime::start d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 917
2 0x0041a045 _fu148___ZN7android7mArgLenE d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp 165
in d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp
#include
if (rootDir == NULL) {
// rootDir = "/system";
rootDir = "d:\\ango";
// if (!hasDir(rootDir)) {
if (!wxDir::Exists(wxT("d:\\ango"))) {
LOG_FATAL("No root directory specified, and /android does not exist.");
goto bail;
}
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/include/c++/cwchar:301:22: error: '__gnu_cxx::wcstold' has not been declared
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/include/c++/cwchar:302:22: error: '__gnu_cxx::wcstoll' has not been declared
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/include/c++/cwchar:303:22: error: '__gnu_cxx::wcstoull' has not been declared
comment
Thread.h line 367
cc==0;
0 0x62486627 pthread_mutex_unlock
1 0x072dce36 dvmUnlockMutex d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.h 385
2 0x0725a753 dvmUnlockThreadList d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c 512
3 0x0725aa2b dvmSlayDaemons d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c 684
4 0x0724f1d5 dvmShutdown d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Init.c 1631
5 0x0724ed49 dvmStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Init.c 1322
6 0x0724c152 JNI_CreateJavaVM d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c 4492
7 0x6dfca551 android::AndroidRuntime::startVm d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 874
8 0x6dfca73f android::AndroidRuntime::start d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 936
9 0x0041a045 _fu148___ZN7android7mArgLenE d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp 165
10 0x0040993c MyFrame::FileOpenGeneric d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/dialogs.cpp 840
/* verify system page size */
if (sysconf(_SC_PAGESIZE) != SYSTEM_PAGE_SIZE) {
LOGE("ERROR: expected page size %d, got %d\n",
SYSTEM_PAGE_SIZE, (int) sysconf(_SC_PAGESIZE));
goto fail;
D:\linux\linuxkernel\WORKING_DIRECTORY\ango\libdvm\nt-base.h
in d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Init.c:
#define _SC_PAGESIZE 1
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:2413:22: error: invalid operands to binary == (have 'pthread_t' and 'pthread_t')
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:2782:28: error: invalid operands to binary == (have 'pthread_t' and 'pthread_t')
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:2811:28: error: invalid operands to binary == (have 'pthread_t' and 'pthread_t')
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c: In function 'dvmResumeAllThreads':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:2856:28: error: invalid operands to binary == (have 'pthread_t' and 'pthread_t')
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c: In function 'dvmUndoDebuggerSuspensions':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:2947:28: error: invalid operands to binary == (have 'pthread_t' and 'pthread_t')
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c: In function 'dvmWaitForSuspend':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:3025:5: error: invalid operands to binary != (have 'pthread_t' and 'pthread_t')
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c: In function 'dvmGetThreadByHandle':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:3258:28: error: invalid operands to binary == (have 'pthread_t' and 'pthread_t')
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Debugger.c:2080:28: error: invalid operands to binary == (have 'pthread_t' and 'pthread_t')
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Debugger.c:2110:32: error: invalid operands to binary == (have 'pthread_t' and 'pthread_t')
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/SignalCatcher.c:62:34: error: invalid operands to binary == (have 'pthread_t' and 'int')
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/StdioConverter.c:131:35: error: invalid operands to binary == (have 'pthread_t' and 'int')
if (self->handle == dvmJdwpGetDebugThread(gDvm.jdwpState)) {
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\Thread.h
typedef struct Thread {
pthread_t handle;
// if (self->handle == dvmJdwpGetDebugThread(gDvm.jdwpState)) {
if (self->handle.p == dvmJdwpGetDebugThread(gDvm.jdwpState).p) {
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:3584:9: error: aggregate value used where an integer was expected
// policy, sp.sched_priority, schedulerGroupBuf, (int)thread->handle);
policy, sp.sched_priority, schedulerGroupBuf, (int)thread->handle.p);
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:3689:28: error: request for member 'value' in something not a structure or union
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:3690:32: error: request for member 'value' in something not a structure or union
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:3691:36: error: request for member 'value' in something not a structure or union
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:3692:24: error: request for member 'value' in something not a structure or union
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:3693:28: error: request for member 'value' in something not a structure or union
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:3694:32: error: request for member 'value' in something not a structure or union
E:\tools\webzip\wget\gcc for Win32\mingw\pthreads\pthreads-w32-2.9.0-mingw32-pre-20110507-2-src.tar\pthreads-w32-2.9.0-mingw32-pre-20110507-2-src\sources\pthreads-20110507\pthreads\implement.h
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\include\pthreada.h
// gDvm.threadListLock.value,
// gDvm._threadSuspendLock.value,
// gDvm.threadSuspendCountLock.value,
// gDvm.gcHeapLock.value,
// gDvm.heapWorkerLock.value,
// gDvm.heapWorkerListLock.value);
gDvm.threadListLock.lock_idx ,
gDvm._threadSuspendLock.lock_idx,
gDvm.threadSuspendCountLock.lock_idx,
gDvm.gcHeapLock.lock_idx,
gDvm.heapWorkerLock.lock_idx,
gDvm.heapWorkerListLock.lock_idx);
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c: In function 'dvmDumpAllThreadsEx':
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:3695:28: error: request for member 'lock_idx' in something not a structure or union
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:3696:32: error: request for member 'lock_idx' in something not a structure or union
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:3697:36: error: request for member 'lock_idx' in something not a structure or union
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:3698:24: error: request for member 'lock_idx' in something not a structure or union
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:3699:28: error: request for member 'lock_idx' in something not a structure or union
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c:3700:32: error: request for member 'lock_idx' in something not a structure or union
gDvm.threadListLock->lock_idx ,
gDvm._threadSuspendLock->lock_idx,
gDvm.threadSuspendCountLock->lock_idx,
gDvm.gcHeapLock->lock_idx,
gDvm.heapWorkerLock->lock_idx,
gDvm.heapWorkerListLock->lock_idx);
in D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\Globals.h
//E:\tools\webzip\wget\gcc for Win32\mingw\pthreads\pthreads-w32-2.9.0-mingw32-pre-20110507-2-src.tar\pthreads-w32-2.9.0-mingw32-pre-20110507-2-src\sources\pthreads-20110507\pthreads\implement.h
typedef struct ptw32_robust_node_t_ ptw32_robust_node_t;
enum ptw32_robust_state_t_
{
PTW32_ROBUST_CONSISTENT,
PTW32_ROBUST_INCONSISTENT,
PTW32_ROBUST_NOTRECOVERABLE
};
typedef enum ptw32_robust_state_t_ ptw32_robust_state_t;
/*
* Node used to manage per-thread lists of currently-held robust mutexes.
*/
struct ptw32_robust_node_t_
{
pthread_mutex_t mx;
ptw32_robust_state_t stateInconsistent;
ptw32_robust_node_t* prev;
ptw32_robust_node_t* next;
};
struct pthread_mutex_t_
{
LONG lock_idx; /* Provides exclusive access to mutex state
via the Interlocked* mechanism.
0: unlocked/free.
1: locked - no other waiters.
-1: locked - with possible other waiters.
*/
int recursive_count; /* Number of unlocks a thread needs to perform
before the lock is released (recursive
mutexes only). */
int kind; /* Mutex type. */
pthread_t ownerThread;
HANDLE event; /* Mutex release notification to waiting
threads. */
ptw32_robust_node_t*
robustNode; /* Extra state for robust mutexes */
};
typedef struct pthread_mutex_t_ * pthread_mutex_t;
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/jdwp/JdwpMain.c:346:9: error: incompatible types when returning type 'int' but 'pthread_t' was expected
if (state == NULL){
// return 0;
// pthread_t* pp = malloc(sizeof(pthread_t));
pthread_t pp;
pp.p = 0;
return pp;
}
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:57:32: error: conflicting types for 'pthread_t'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:592:24: note: previous declaration of 'pthread_t' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:61:3: error: conflicting types for 'pthread_attr_t'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:593:34: note: previous declaration of 'pthread_attr_t' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:63:5: error: conflicting types for 'pthread_attr_init'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:898:31: note: previous declaration of 'pthread_attr_init' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:64:5: error: conflicting types for 'pthread_attr_destroy'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:900:31: note: previous declaration of 'pthread_attr_destroy' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:66:5: error: conflicting types for 'pthread_attr_setstacksize'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:917:31: note: previous declaration of 'pthread_attr_setstacksize' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:70:0: warning: "pthread_cleanup_push" redefined [enabled by default]
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:789:0: note: this is the location of the previous definition
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:71:0: warning: "pthread_cleanup_pop" redefined [enabled by default]
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:795:0: note: this is the location of the previous definition
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:73:5: error: conflicting types for 'pthread_create'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:947:31: note: previous declaration of 'pthread_create' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:74:5: error: conflicting types for 'pthread_equal'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:954:31: note: previous declaration of 'pthread_equal' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:75:5: error: conflicting types for 'pthread_detach'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:952:31: note: previous declaration of 'pthread_detach' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:76:5: error: conflicting types for 'pthread_join'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:959:31: note: previous declaration of 'pthread_join' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:77:5: error: conflicting types for 'pthread_kill'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:1167:31: note: previous declaration of 'pthread_kill' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:80:11: error: conflicting types for 'pthread_self'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:962:37: note: previous declaration of 'pthread_self' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:85:15: error: conflicting types for 'pthread_key_t'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:595:33: note: previous declaration of 'pthread_key_t' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:86:5: error: conflicting types for 'pthread_key_create'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:988:31: note: previous declaration of 'pthread_key_create' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:88:0: warning: "SIG_BLOCK" redefined [enabled by default]
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:335:0: note: this is the location of the previous definition
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:89:0: warning: "SIG_UNBLOCK" redefined [enabled by default]
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:339:0: note: this is the location of the previous definition
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:90:0: warning: "SIG_SETMASK" redefined [enabled by default]
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:343:0: note: this is the location of the previous definition
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:121:34: error: conflicting types for 'pthread_mutex_t'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:596:35: note: previous declaration of 'pthread_mutex_t' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:123:13: error: conflicting types for 'pthread_mutexattr_t'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:597:39: note: previous declaration of 'pthread_mutexattr_t' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:124:0: warning: "PTHREAD_MUTEX_INITIALIZER" redefined [enabled by default]
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:700:0: note: this is the location of the previous definition
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:125:5: error: conflicting types for 'pthread_mutex_init'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:1040:31: note: previous declaration of 'pthread_mutex_init' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:126:5: error: conflicting types for 'pthread_mutexattr_init'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:1002:31: note: previous declaration of 'pthread_mutexattr_init' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:127:5: error: conflicting types for 'pthread_mutexattr_destroy'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:1004:31: note: previous declaration of 'pthread_mutexattr_destroy' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:128:5: error: conflicting types for 'pthread_mutexattr_settype'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:1013:31: note: previous declaration of 'pthread_mutexattr_settype' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:130:5: error: conflicting types for 'pthread_mutex_destroy'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:1043:31: note: previous declaration of 'pthread_mutex_destroy' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:131:5: error: conflicting types for 'pthread_mutex_lock'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:1045:31: note: previous declaration of 'pthread_mutex_lock' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:132:5: error: conflicting types for 'pthread_mutex_trylock'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:1050:31: note: previous declaration of 'pthread_mutex_trylock' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:135:5: error: conflicting types for 'pthread_mutex_unlock'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:1052:31: note: previous declaration of 'pthread_mutex_unlock' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:157:3: error: conflicting types for 'pthread_cond_t'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:598:34: note: previous declaration of 'pthread_cond_t' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:163:3: error: conflicting types for 'pthread_condattr_t'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:599:38: note: previous declaration of 'pthread_condattr_t' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:173:5: error: conflicting types for 'pthread_condattr_init'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:1083:31: note: previous declaration of 'pthread_condattr_init' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:174:5: error: conflicting types for 'pthread_condattr_destroy'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:1085:31: note: previous declaration of 'pthread_condattr_destroy' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:177:5: error: conflicting types for 'pthread_cond_destroy'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:1099:31: note: previous declaration of 'pthread_cond_destroy' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:178:5: error: conflicting types for 'pthread_cond_init'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:1096:31: note: previous declaration of 'pthread_cond_init' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:179:5: error: conflicting types for 'pthread_cond_broadcast'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:1110:31: note: previous declaration of 'pthread_cond_broadcast' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:180:5: error: conflicting types for 'pthread_cond_signal'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:1108:31: note: previous declaration of 'pthread_cond_signal' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:181:5: error: conflicting types for 'pthread_cond_timedwait'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:1104:31: note: previous declaration of 'pthread_cond_timedwait' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:182:5: error: conflicting types for 'pthread_cond_wait'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:1101:31: note: previous declaration of 'pthread_cond_wait' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:274:0: warning: "PTHREAD_ONCE_INIT" redefined [enabled by default]
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:682:0: note: this is the location of the previous definition
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:276:13: error: conflicting types for 'pthread_once_t'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:594:32: note: previous declaration of 'pthread_once_t' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:277:5: error: conflicting types for 'pthread_once'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/pthreadm.h:974:31: note: previous declaration of 'pthread_once' was here
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/init/pthreads_win32.h:279:19: error: conflicting types for 'pthread_setspecific'
comment pthreads_win32.h
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/libdvm/mingw_libdvm.c: In function '__futex_wake':
d:/linux/linuxkernel/WORKING_DIRECTORY/ango/libdvm/mingw_libdvm.c:100:27: error: request for member 'wakeup_lock' in something not a structure or union
comment
https://code.ohloh.net/file?fid=uMkdngCSHgben4fIQRKvQ4EXdeg&cid=EYnqFQH1sbs&s=%22futex_wait%22%20%22futex_wake%22%20windows&browser=Default#L0
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\init\pthreads_win32.c
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\init\pthreads_win32.h
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\libcore\luni\src\main\native\NativeCrypto.cpp
// return ((unsigned long)THREAD_ID);
return ((unsigned long)THREAD_ID.p);
0 0x0724f323 dvmAbort d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Init.c 1718
1 0x0728be4b dvmCheckAsmConstants d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/mterp/Mterp.c 42
2 0x0724ea1b dvmStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Init.c 1186
3 0x0724c154 JNI_CreateJavaVM d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c 4492
4 0x6dfca551 android::AndroidRuntime::startVm d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 874
5 0x6dfca73f android::AndroidRuntime::start d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 936
6 0x0041a045 _fu148___ZN7android7mArgLenE d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp 165
7 0x0040993c MyFrame::FileOpenGeneric d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/dialogs.cpp 840
in d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\mterp\common\asm-constants.h:
//MTERP_OFFSET(offThread_stackOverflowed, Thread, stackOverflowed, 36)
MTERP_OFFSET(offThread_stackOverflowed, Thread, stackOverflowed, 40)
//MTERP_OFFSET(offThread_curFrame, Thread, curFrame, 40)
MTERP_OFFSET(offThread_curFrame, Thread, curFrame, 44)
//MTERP_OFFSET(offThread_exception, Thread, exception, 44)
MTERP_OFFSET(offThread_exception, Thread, exception, 48)
MTERP_OFFSET(offThread_jniLocal_topCookie, \
// Thread, jniLocalRefTable.nextEntry, 72)
Thread, jniLocalRefTable.nextEntry, 76)
//MTERP_OFFSET(offArrayObject_contents, ArrayObject, contents, 16)
MTERP_OFFSET(offArrayObject_contents, ArrayObject, contents, 12)
MTERP_OFFSET(offArrayObject_contents, ArrayObject, contents, 12)
//MTERP_OFFSET(offArrayObject_contents, ArrayObject, contents, 16)
0 0x07283a41 dvmAllocRegion d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Misc.c 709
1 0x07262095 dvmHeapSourceStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/alloc/HeapSource.c 1146
2 0x0725f651 dvmHeapStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/alloc/Heap.c 64
3 0x0726080b dvmGcStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/alloc/Alloc.c 39
4 0x0724ea2d dvmStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Init.c 1193
5 0x0724c154 JNI_CreateJavaVM d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c 4492
6 0x6dfca551 android::AndroidRuntime::startVm d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 874
7 0x6dfca73f android::AndroidRuntime::start d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 936
8 0x0041a045 _fu148___ZN7android7mArgLenE d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp 165
9 0x0040993c MyFrame::FileOpenGeneric d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/dialogs.cpp 840
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\system\core\libcutils\ashmem-dev.c
https://code.ohloh.net/file?fid=5X5h5SoX34ZuxqkL3AwXxhh3GoM&cid=LvJsjT6ZuFY&s=ashmem%20windows&browser=Default#L32
https://code.ohloh.net/file?fid=m6-iU4XHXPNDi2gdoWCay_4YolI&cid=2_gTWUwOvwM&s=ashmem%20windows&browser=Default#L23
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\system\core\libcutils\mspace.c
mspace create_contiguous_mspace_with_base(size_t starting_capacity,
size_t max_capacity, int locked, void *base) {
0 0x0724e6a4 setCommandLineDefaults d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Init.c 1019
1 0x0724e8d1 dvmStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Init.c 1139
2 0x0724c154 JNI_CreateJavaVM d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c 4492
3 0x6dfca551 android::AndroidRuntime::startVm d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 874
4 0x6dfca73f android::AndroidRuntime::start d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 936
5 0x0041a045 _fu148___ZN7android7mArgLenE d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp 165
6 0x0040993c MyFrame::FileOpenGeneric d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/dialogs.cpp 840
..\android-omap-20111108-gingerbread\dalvik\vm\Globals.h
119 char* bootClassPathStr;
..\android-omap-20111108-gingerbread\dalvik\vm\Init.c
723 free(gDvm.bootClassPathStr);
724 gDvm.bootClassPathStr = strdup(path);
1026 gDvm.bootClassPathStr = strdup(envStr);
1028 gDvm.bootClassPathStr = strdup(".");
1526 free(gDvm.bootClassPathStr);
1527 gDvm.bootClassPathStr = strdup(bootClassPath);
1658 free(gDvm.bootClassPathStr);
..\android-omap-20111108-gingerbread\dalvik\vm\Properties.c
153 setProperty(propObj, put, "java.boot.class.path", gDvm.bootClassPathStr);
..\android-omap-20111108-gingerbread\dalvik\vm\oo\Class.c
326 if (strcmp(gDvm.bootClassPathStr, ".") == 0) {
366 processClassPath(gDvm.bootClassPathStr, true);
..\android-omap-20111108-gingerbread\dalvik\vm\oo\Class.c
// if (strcmp(gDvm.bootClassPathStr, ".") == 0) {
// LOGE("ERROR: must specify non-'.' bootclasspath\n");
// return false;
// }
0 0x62485fdf pthread_mutex_trylock
1 0x6248686d pthread_mutex_destroy
2 0x6e0d181b ~Mutex d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/include/utils/threads.h 330
3 0x6e0b6b3d ~egl_display_t d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/opengl/libs/EGL/egl.cpp 193
4 0x6e0393f3 __tcf_2 d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/opengl/libs/EGL/egl.cpp 266
5 0x6df81026 __dll_exit ../mingw/dllcrt1.c 145
6 0x6df8109c DllMainCRTStartup@12 ../mingw/dllcrt1.c 124
7 0x7c92118a ntdll!LdrSetAppCompatDllRedirectionCallback
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/frameworks/base/include/utils/threads.h 330
inline Mutex::~Mutex() {
if (mMutex)
pthread_mutex_destroy(&mMutex);
}
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/sys/typesm.h:79:16: error: conflicting types for 'ino_t'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/types.h:63:30: note: previous declaration of 'ino_t' was here
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/sys/typesm.h:118:18: error: conflicting types for 'ssize_t'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/arch-x86/include/machine/_types.h:52:24: note: previous declaration of 'ssize_t' was here
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/sys/typesm.h:133:22: error: conflicting types for 'useconds_t'
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/types.h:106:31: note: previous declaration of 'useconds_t' was here
comment bionic
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c
bool dvmClassStartup(void)
{
/* make this a requirement -- don't currently support dirs in path.
* the actually bootClassPathStr should be d:\ango */
gDvm.bootClassPathStr = (char *)realloc( gDvm.bootClassPathStr, 6 );
strcpy(gDvm.bootClassPathStr, "/ango");
http://blog.csdn.net/tomken_zhang/article/details/6927423
http://blog.csdn.net/virtualpower/article/details/5660966
http://blog.csdn.net/virtualpower/article/details/5715277
init.rc:
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
BOOTCLASSPATH=/ango/system/framework/core.jar:/ango/system/framework/bouncycastle.jar:/ango/system/framework/ext.jar:/ango/system/framework/framework.jar:/ango/system/framework/android.policy.jar:/ango/system/framework/services.jar:/ango/system/framework/core-junit.jar
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Init.c
//getenv of classpath and BOOTCLASSPATH configed by init.rc
static void setCommandLineDefaults()
putenv("BOOTCLASSPATH=/ango/system/framework/core.jar:/ango/system/framework/bouncycastle.jar:/ango/system/framework/ext.jar:/ango/system/framework/framework.jar:/ango/system/framework/android.policy.jar:/ango/system/framework/services.jar:/ango/system/framework/core-junit.jar");
envStr = getenv("BOOTCLASSPATH");
if (envStr != NULL)
gDvm.bootClassPathStr = strdup(envStr);
else
gDvm.bootClassPathStr = strdup(".");
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c
/*
* Prepare a ClassPathEntry struct, which at this point only has a valid
* filename. We need to figure out what kind of file it is, and for
* everything other than directories we need to open it up and see
* what's inside.
*/
static bool prepareCpe(ClassPathEntry* cpe, bool isBootstrap)
/*
* Convert a colon-separated list of directories, Zip files, and DEX files
* into an array of ClassPathEntry structs.
*
* During normal startup we fail if there are no entries, because we won't
* get very far without the basic language support classes, but if we're
* optimizing a DEX file we allow it.
*
* If entries are added or removed from the bootstrap class path, the
* dependencies in the DEX files will break, and everything except the
* very first entry will need to be regenerated.
*/
static ClassPathEntry* processClassPath(const char* pathStr, bool isBootstrap)
/*
* Initialize the bootstrap class loader.
*
* Call this after the bootclasspath string has been finalized.
*/
bool dvmClassStartup(void)
0 0x65741847 __android_log_print d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/system/core/liblog/logd_write.c 209
1 0x072e0eef mapCentralDirectory d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/libdex/ZipArchive.c 188
2 0x072e1480 dexZipPrepArchive d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/libdex/ZipArchive.c 366
3 0x072e1437 dexZipOpenArchive d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/libdex/ZipArchive.c 351
4 0x072d6f94 dvmJarFileOpen d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/JarFile.c 200
5 0x072504ff prepareCpe d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 533
6 0x07250717 processClassPath d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 634
7 0x072501fb dvmClassStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 371
8 0x0724ea87 dvmStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Init.c 1208
9 0x0724c154 JNI_CreateJavaVM d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c 4492
10 0x6dfca551 android::AndroidRuntime::startVm d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 874
11 0x6dfca73f android::AndroidRuntime::start d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 936
12 0x0041a045 _fu148___ZN7android7mArgLenE d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp 165
13 0x0040993c MyFrame::FileOpenGeneric d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/dialogs.cpp 840
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\libdex\ZipArchive.c
int dexZipOpenArchive(const char* fileName, ZipArchive* pArchive)
{
...
// fd = open(fileName, O_RDONLY, 0);
fd = open(fileName, O_RDONLY|_O_BINARY, 0);
make mingw open the file in BINARY
0 0x072ed713 sysMapFileSegmentInShmem d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/libdex/SysUtil.c 304
1 0x072e10bf mapCentralDirectory d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/libdex/ZipArchive.c 240
2 0x072e1480 dexZipPrepArchive d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/libdex/ZipArchive.c 368
3 0x072e1437 dexZipOpenArchive d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/libdex/ZipArchive.c 353
4 0x072d6f94 dvmJarFileOpen d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/JarFile.c 200
5 0x072504ff prepareCpe d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 533
6 0x07250717 processClassPath d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 634
7 0x072501fb dvmClassStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 371
8 0x0724ea87 dvmStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Init.c 1208
9 0x0724c154 JNI_CreateJavaVM d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c 4492
10 0x6dfca551 android::AndroidRuntime::startVm d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 874
11 0x6dfca73f android::AndroidRuntime::start d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 936
12 0x0041a045 _fu148___ZN7android7mArgLenE d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp 165
13 0x0040993c MyFrame::FileOpenGeneric d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/dialogs.cpp 840
CreateFileMapping/MapViewOfFile
for MapViewOfFile function
If hFile is INVALID_HANDLE_VALUE, the calling process must also specify a size for the file mapping object in the dwMaximumSizeHigh and dwMaximumSizeLow parameters. In this scenario, CreateFileMapping creates a file mapping object of a specified size that is backed by the system paging file instead of by a file in the file system.
dwFileOffsetLow [in]
A low-order DWORD of the file offset where the view is to begin. The combination of the high and low offsets must specify an offset within the file mapping. They must also match the memory allocation granularity of the system. That is, the offset must be a multiple of the allocation granularity. To obtain the memory allocation granularity of the system, use the GetSystemInfo function, which fills in the members of a SYSTEM_INFO structure.
SysInfo.dwAllocationGranularity = 65536;
in sysMapFileSegmentInShmem d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/libdex/SysUtil.c
SYSTEM_INFO SysInfo;
GetSystemInfo(&SysInfo);
// adjust = start % SYSTEM_PAGE_SIZE;
adjust = start % SysInfo.dwAllocationGranularity;
for CreateFileMapping function:
After a file mapping object is created, the size of the file must not exceed the size of the file mapping object; if it does, not all of the file contents are available for sharing.
So when CreateFileMapping with a smaller size than the actual file size, the offset larger than CreateFileMapping size.
dwMaximumSizeLow [in]
The low-order DWORD of the maximum size of the file mapping object.
If this parameter and dwMaximumSizeHigh are 0 (zero), the maximum size of the file mapping object is equal to the current size of the file that hFile identifies.
how to read/write mapping file:
http://msdn.microsoft.com/zh-cn/library/aa366801
Reading and Writing From a File View (Windows)
The following example uses the pointer returned by MapViewOfFile to read from the file view:
C++
DWORD dwLength;
__try
{
dwLength = *((LPDWORD) lpMapAddress);
}
__except(GetExceptionCode()==EXCEPTION_IN_PAGE_ERROR ?
EXCEPTION_EXECUTE_HANDLER : EXCEPTION_CONTINUE_SEARCH)
{
// Failed to read from the view.
}
The following example uses the pointer returned by MapViewOfFile to write to the file view:
C++
DWORD dwLength;
__try
{
*((LPDWORD) lpMapAddress) = dwLength;
}
__except (GetExceptionCode() == EXCEPTION_IN_PAGE_ERROR ?
EXCEPTION_EXECUTE_HANDLER : EXCEPTION_CONTINUE_SEARCH)
{
// Failed to write to the view.
}
The FlushViewOfFile function copies the specified number of bytes of the file view to the physical file, without waiting for the cached write operation to occur:
C++
if (!FlushViewOfFile(lpMapAddress, dwBytesToFlush))
{
printf("Could not flush memory to disk (%d).\n", GetLastError());
}
http://www.cnblogs.com/yukaizhao/archive/2011/05/18/MapViewOfFile_CreateFileMapping.html
C++使用内存映射文件入门
//向内存映射视图中写数据
CopyMemory((PVOID)mmfm_base_address, write_chars, write_chars_size);
//读数据
memcpy(read_chars,mmfm_base_address,write_chars_size);
http://msdn.microsoft.com/en-us/library/aa366551(v=vs.85).aspx
Creating Named Shared Memory
CopyMemory((PVOID)pBuf, szMsg, (_tcslen(szMsg) * sizeof(TCHAR)));
Second Process
A second process can access the string written to the shared memory by the first process by calling the OpenFileMapping function specifying the same name for the mapping object as the first process. Then it can use the MapViewOfFile function to obtain a pointer to the file view, pBuf. The process can display this string as it would any other string. In this example, the message box displayed contains the message "Message from first process" that was written by the first process.
hMapFile = OpenFileMapping(
FILE_MAP_ALL_ACCESS, // read/write access
FALSE, // do not inherit the name
szName); // name of mapping object
MessageBox(NULL, pBuf, TEXT("Process2"), MB_OK);
http://msdn.microsoft.com/en-us/library/aa366543(v=vs.85).aspx
Creating a File Mapping Using Large Pages
0 0x072eb581 dexOptGenerateCacheFileName d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/libdex/OptInvocation.c 50
1 0x072d70eb dvmJarFileOpen d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/JarFile.c 250
2 0x072504ff prepareCpe d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 533
3 0x07250717 processClassPath d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 634
4 0x072501fb dvmClassStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 371
5 0x0724ea87 dvmStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Init.c 1208
6 0x0724c154 JNI_CreateJavaVM d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c 4492
7 0x6dfca551 android::AndroidRuntime::startVm d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 874
8 0x6dfca73f android::AndroidRuntime::start d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 936
9 0x0041a045 _fu148___ZN7android7mArgLenE d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp 165
10 0x0040993c MyFrame::FileOpenGeneric d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/dialogs.cpp 840
0 0x072ad95e dvmOpenCachedDexFile d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexPrepare.c 103
1 0x072d718a dvmJarFileOpen d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/JarFile.c 259
2 0x072504ff prepareCpe d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 533
3 0x07250717 processClassPath d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 634
4 0x072501fb dvmClassStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 371
5 0x0724ea87 dvmStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Init.c 1208
6 0x0724c154 JNI_CreateJavaVM d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c 4492
7 0x6dfca551 android::AndroidRuntime::startVm d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 874
8 0x6dfca73f android::AndroidRuntime::start d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 936
9 0x0041a045 _fu148___ZN7android7mArgLenE d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp 165
10 0x0040993c MyFrame::FileOpenGeneric d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/dialogs.cpp 840
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\analysis\DexPrepare.c
#include
c:\mingw-4.7.1\include\sys\stata.h
#include
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/sys/stata.h:212:37: error: conflicting types for '_fstat'
c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.6.1/../../../../include/sys/stata.h:202:37: note: previous declaration of '_fstat' was here
comment line 212
c:\MinGW-4.7.1\include\fcntl.h
#define O_CREAT 0x0100 /* create and open file */
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexPrepare.c:87:0: warning: "O_CREAT" redefined [enabled by default]
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/kernel/common/asm-generic/fcntl.h:22:0: note: this is the location of the previous definition
if O_CREAT is not correct(0x0100), open(cacheFileName, O_CREAT|O_RDWR, 0600) might not take effect.
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/dexopt/OptMain.c:51:0: warning: "LOGE" redefined [enabled by default]
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/system/core/include/cutils/log.h:143:0: note: this is the location of the previous definition
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/dexopt/OptMain.c:52:0: warning: "LOGW" redefined [enabled by default]
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/system/core/include/cutils/log.h:129:0: note: this is the location of the previous definition
0 0x61b45173 __get_tls d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/arch-x86/bionic/__get_tls.c 35
1 0x61b45193 __errno d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/bionic/__errno.c 33
2 0x07283abe dvmAllocRegion d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Misc.c 714
3 0x072620d5 dvmHeapSourceStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/alloc/HeapSource.c 1148
4 0x0725f691 dvmHeapStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/alloc/Heap.c 64
5 0x0726084b dvmGcStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/alloc/Alloc.c 39
6 0x0724f0ee dvmPrepForDexOpt d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Init.c 1552
7 0x07359c22 fromDex d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/dexopt/OptMain.c 517
8 0x07359db6 dexoptmain d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/dexopt/OptMain.c 583
9 0x072ae409 dvmOptimizeDexFile d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexPrepare.c 433
10 0x072d709f dvmJarFileOpen d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/JarFile.c 290
11 0x072504ff prepareCpe d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 533
12 0x07250717 processClassPath d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 634
13 0x072501fb dvmClassStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 371
14 0x0724ea87 dvmStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Init.c 1208
15 0x0724c154 JNI_CreateJavaVM d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c 4492
16 0x6dfca551 android::AndroidRuntime::startVm d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 874
17 0x6dfca73f android::AndroidRuntime::start d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 936
18 0x0041a045 _fu148___ZN7android7mArgLenE d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp 165
19 0x0040993c MyFrame::FileOpenGeneric d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/dialogs.cpp 840
--dex 23 8 40 693920 d:\ango\system\framework\bouncycastle.jar 1044608620 -1511798023 29
--dex 23 8 40 4258196 d:\ango\system\framework\core.jar 1044608611 190431518 29
watch: (char*)argv[2]
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/libdex/DexSwapVerify.c:38:0: warning: "__BYTE_ORDER" redefined [enabled by default]
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Common.h:127:0: note: this is the location of the previous definition
in Common.h:
#define HAVE_LITTLE_ENDIAN
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Common.h:126:0: warning: "__BYTE_ORDER" redefined [enabled by default]
d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/bionic/libc/include/sys/endian.h:265:0: note: this is the location of the previous definition
in endian.h:
//#define __BYTE_ORDER _BYTE_ORDER
# define __BYTE_ORDER __LITTLE_ENDIAN
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\oo\Class.c
bool dvmClassStartup(void)
gDvm.pBootLoaderAlloc = dvmLinearAllocCreate(NULL);
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\LinearAlloc.c
LinearAllocHdr* dvmLinearAllocCreate(Object* classLoader)
pHdr->mapAddr = mmap(NULL, pHdr->mapLength, PROT_READ | PROT_WRITE,
MAP_PRIVATE, fd, 0);// 0xa850000
static inline LinearAllocHdr* getHeader(Object* classLoader)
{
return gDvm.pBootLoaderAlloc;
}
void* dvmLinearAlloc(Object* classLoader, size_t size)
{
LinearAllocHdr* pHdr = getHeader(classLoader);
*(u4*)(pHdr->mapAddr + startOffset) = size;
This is writing the memory of mappingfile, and there's some kind of vialation. In LinearAlloc.c:
// pHdr->mapAddr = mmap(NULL, pHdr->mapLength, PROT_READ | PROT_WRITE,
// MAP_PRIVATE, fd, 0);
pHdr->mapAddr = mmap(NULL, pHdr->mapLength, PROT_READ | PROT_WRITE,
MAP_SHARED, fd, 0);
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\LinearAlloc.
* commented by ango
*/
// if (mprotect(pHdr->mapAddr, pHdr->mapLength, PROT_NONE) != 0) {
mprotect make the pHdr->mapAddr cannot be accessed at all
0 0x005556cb dvmLinearAlloc d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/LinearAlloc.c 382
1 0x004d1e8a loadClassFromDex0 d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 1750
2 0x004d24f1 loadClassFromDex d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 1921
3 0x004d16dd findClassNoInit d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 1461
4 0x004d1586 dvmFindSystemClassNoInit d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 1382
5 0x004d14e2 dvmFindSystemClass d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 1360
6 0x0052ecab loadAllClasses d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexPrepare.c 871
7 0x0052eb56 rewriteDex d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexPrepare.c 800
8 0x0052e577 dvmContinueOptimization d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexPrepare.c 577
9 0x0040205f fromDex d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/dexopt/OptMain.c 538
10 0x00402188 dexoptmain d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/dexopt/OptMain.c 597
11 0x00401330 main d:/linux/linuxkernel/WORKING_DIRECTORY/ango/dexopt/main.c 8
0 0x004cf32f dvmAbort d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Init.c 1721
1 0x00558f10 dvmThrowChainedException d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exception.c 230
2 0x0055918e dvmThrowChainedExceptionWithClassMessage d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exception.c 337
3 0x0055d0cc dvmThrowExceptionWithClassMessage d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exception.h 77
4 0x004d16bf findClassNoInit d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 1454
5 0x004d1586 dvmFindSystemClassNoInit d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 1382
6 0x004d14e2 dvmFindSystemClass d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 1360
7 0x00558f1b dvmThrowChainedException d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exception.c 234
8 0x0055918e dvmThrowChainedExceptionWithClassMessage d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exception.c 337
9 0x0055d0cc dvmThrowExceptionWithClassMessage d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exception.h 77
10 0x004d16bf findClassNoInit d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 1454
11 0x004d1586 dvmFindSystemClassNoInit d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 1382
12 0x004d14e2 dvmFindSystemClass d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 1360
13 0x0052ecab loadAllClasses d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexPrepare.c 871
14 0x0052eb56 rewriteDex d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexPrepare.c 800
15 0x0052e577 dvmContinueOptimization d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexPrepare.c 577
16 0x0040205f fromDex d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/dexopt/OptMain.c 538
17 0x00402188 dexoptmain d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/dexopt/OptMain.c 597
18 0x00401330 main d:/linux/linuxkernel/WORKING_DIRECTORY/ango/dexopt/main.c 8
0 0x00568bf2 iterateSectionWithOptionalUpdate d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/libdex/DexSwapVerify.c 2443
1 0x00568e1f iterateSection d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/libdex/DexSwapVerify.c 2502
2 0x00568eb1 checkBoundsAndIterateSection d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/libdex/DexSwapVerify.c 2525
3 0x0056927b swapEverythingButHeaderAndMap d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/libdex/DexSwapVerify.c 2619
4 0x00569f2a dexSwapAndVerify d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/libdex/DexSwapVerify.c 2984
5 0x0052ebe2 rewriteDex d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexPrepare.c 739
6 0x0052e72f dvmContinueOptimization d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexPrepare.c 577
7 0x0040205f fromDex d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/dexopt/OptMain.c 538
8 0x00402188 dexoptmain d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/dexopt/OptMain.c 597
9 0x00401330 main d:/linux/linuxkernel/WORKING_DIRECTORY/ango/dexopt/main.c 8
0 0x65741847 __android_log_print d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/system/core/liblog/logd_write.c 209
1 0x0056a4e5 dexSwapAndVerify d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/libdex/DexSwapVerify.c 2805
2 0x0052ebe2 rewriteDex d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexPrepare.c 736
3 0x0052e72f dvmContinueOptimization d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexPrepare.c 574
4 0x0040205f fromDex d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/dexopt/OptMain.c 538
5 0x00402188 dexoptmain d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/dexopt/OptMain.c 597
6 0x00401330 main d:/linux/linuxkernel/WORKING_DIRECTORY/ango/dexopt/main.c 8
D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\libdex\DexFile.h
/* DEX file magic number */
#define DEX_MAGIC "dex\n"
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\libdex\DexSwapVerify.c
pHeader->magic[0], pHeader->magic[1],
pHeader->magic[2], pHeader->magic[3]);
=0x64 65 78 0d
2013-02-18 20:10 702,117 system@[email protected]@classes.dex
2013-02-18 20:10 4,305,857 system@[email protected]@classes.dex
the size of system@[email protected]@classes.dex should be 693920, because it's open in text mode by default, so the 0x0a is changed to 0d0a
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\analysis\DexPrepare.c
// fd = createIfMissing ? open(cacheFileName, O_CREAT|O_RDWR, 0644) : -1;
fd = createIfMissing ? open(cacheFileName, O_CREAT|O_RDWR|_O_BINARY, 0644) : -1;
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\JarFile.c
int dvmJarFileOpen(const char* fileName, const char* odexOutputName,
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\libdex\OptInvocation.c
cachedName = dexOptGenerateCacheFileName(fileName, kDexInJarName);
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\analysis\DexPrepare.c
now timetostr
https://code.ohloh.net/file?fid=v2n6fIstvAisSX-ZUSzG9UBea_A&cid=7qIzIy8NsUk&s=timetostr%20now%20windows&browser=Default#L128
0 0x07250854 searchBootPathForClass d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 681
1 0x0725165a findClassNoInit d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 1438
2 0x0725157f dvmFindSystemClassNoInit d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 1377
3 0x072514db dvmFindSystemClass d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 1355
4 0x072d91b7 dvmThrowChainedException d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exception.c 234
5 0x072d942a dvmThrowChainedExceptionWithClassMessage d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exception.c 337
6 0x072dd368 dvmThrowExceptionWithClassMessage d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Exception.h 77
7 0x072516b8 findClassNoInit d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 1449
8 0x0725157f dvmFindSystemClassNoInit d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/oo/Class.c 1377
9 0x0725a42f dvmThreadObjStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Thread.c 334
10 0x0724ea88 dvmStartup d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Init.c 1207
11 0x0724c154 JNI_CreateJavaVM d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/Jni.c 4492
12 0x6dfca551 android::AndroidRuntime::startVm d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 874
13 0x6dfca73f android::AndroidRuntime::start d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp 936
14 0x0041a045 _fu148___ZN7android7mArgLenE d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/app_process/app_main.cpp 165
15 0x0040993c MyFrame::FileOpenGeneric d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/dialogs.cpp 840
0 0x0052fc57 writeChunk d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexPrepare.c 1395
1 0x0052fcc5 writeOptData d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexPrepare.c 1412
2 0x0052e886 dvmContinueOptimization d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/vm/analysis/DexPrepare.c 671
3 0x0040205f fromDex d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/dexopt/OptMain.c 538
4 0x00402188 dexoptmain d:/linux/linuxkernel/WORKING_DIRECTORY/android-omap-20111108-gingerbread/dalvik/dexopt/OptMain.c 597
5 0x00401330 main d:/linux/linuxkernel/WORKING_DIRECTORY/ango/dexopt/main.c 8
d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\analysis\DexPrepare.c
//C:\MinGW-4.7.1\include\stdio.h
#define SEEK_CUR 1
int tmpi = lseek(fd, 0, SEEK_CUR);
assert( ((int)tmpi & 7) == 0);
4258236 4258256