hectorchn / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

support to use with android ndk #578

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
trying to compile for x86 platform, got a lot of small errors

- no support for __android_log_print fixed easily
- no support for pthread_atfork in ndk headers fixed easily
- but this one is required more work to be fixed I think

In file included from src/malloc_hook_mmap_linux.h:48:0,
                 from src/malloc_hook.cc:698:
src/base/linux_syscall_support.h:2078:16: error: 'ulong' has not been declared
src/base/linux_syscall_support.h:2078:16: error: 'ulong' has not been declared
In file included from src/malloc_hook.cc:698:0:
src/malloc_hook_mmap_linux.h:71:39: error: '__off64_t' has not been declared
src/malloc_hook_mmap_linux.h: In function 'void* do_mmap64(void*, size_t, int, 
int, int, int)':
src/malloc_hook_mmap_linux.h:87:30: error: 'SYS_mmap2' was not declared in this 
scope
src/malloc_hook_mmap_linux.h:110:30: error: 'SYS_mmap' was not declared in this 
scope
src/malloc_hook_mmap_linux.h: At global scope:
src/malloc_hook_mmap_linux.h:142:24: error: '__off64_t' has not been declared
src/malloc_hook_mmap_linux.h:157:33: error: '__off64_t' has not been declared
src/malloc_hook_mmap_linux.h: In static member function 'static int 
MallocHook::UnhookedMUnmap(void*, size_t)':
src/malloc_hook_mmap_linux.h:229:22: error: 'SYS_munmap' was not declared in 
this scope
make: *** [libtcmalloc_minimal_internal_la-malloc_hook.lo] Ошибка 1

built with

./configure --host=i686-linux --target=i686-linux-android-gcc
make

Original issue reported on code.google.com by dron...@gmail.com on 30 Sep 2013 at 11:35

GoogleCodeExporter commented 9 years ago
Thanks. I've seen chromium fork already has some android support. It would be 
super-awesome if you could help porting this.

Original comment by alkondratenko on 30 Sep 2013 at 6:18

GoogleCodeExporter commented 9 years ago
tnx for the hint, I found it, but it seems not ready for a production usage
http://code.google.com/p/chromium/issues/detail?id=162208

Original comment by dron...@gmail.com on 1 Oct 2013 at 5:59