tidwall/llco

android build error

calvin2021y opened this issue · 2 comments

llco/llco.c:1131:5: error: conflicting types for 'dladdr'
 1131 | int dladdr(const void *, void *);
      |     ^
/android-ndk-r27/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/dlfcn.h:133:5: note: previous declaration is here
  133 | int dladdr(const void* _Nonnull __addr, Dl_info* _Nonnull __info);

Cross-platform. Linux, Mac, Webassembly, iOS, Android, FreeBSD, Windows, RaspPi, RISC-V

Is there a way to CI test for all platforms ?

remove _GNU_SOURCE and add LLCO_NOUNWIND fix the problem.

android NDK has the build in libunwind.a (I guess based on llvm), so I guess it should work with llco.