b...@beuc.net skribis: > On Sat, Jun 21, 2014 at 11:34:18PM +0200, Ludovic Courtès wrote: >> b...@beuc.net skribis: >> > Selected bits: >> > >> > configure:14688: checking for libunistring >> > configure:14710: arm-linux-androideabi-gcc -o conftest -g -O2 >> > -I/usr/src/ndk-standalone-12/sysroot/usr/include conftest.c >> > /usr/src/ndk-standalone-12/sysroot/usr/lib/libunistring.so -Wl,-rpath >> > -Wl,/usr/src/ndk-standalone-12/sysroot/usr/lib >&5 >> > >> > /usr/src/ndk-standalone-12/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: >> > /usr/src/ndk-standalone-12/sysroot/usr/lib/libunistring.so: error: >> > undefined reference to 'frexp' >> > collect2: ld returned 1 exit status >> >> It looks like a libunistring issue no? Namely, libunistring assumed >> frexp to be available in libc, and it isn’t. >> >> Does Bionic provide that function in libm or something?
[...] > You're right that it's an issue in libunistring, and I'm surprised it > doesn't show up in GNU/Linux. Because in glibc frexp is part of libc.so, not libm.so. >> >> > Which version of libgc do you recommend? >> >> >> >> 7.4.0 should be good. >> > >> > Hmmm, the one that requires yet another dependency (libatomic)? T-T >> >> It’s just a part of libgc that has been separated. > > Yeah but deps are painful when you manually recompile them one by one ;) > Anyway, I bit the bullet and installed v2.4.2 which compiles fine! > > > Another issue: ./configure went well but I wasn't told iconv.h was > required: > ../../libguile/print.c:27:19: fatal error: iconv.h: No such file or directory Hmm, could you run “grep -i 'iconv.h' config.log”? There is a check for that, and normally Gnulib provides a replacement if needed. Apparently lib/iconv.h doesn’t exist here, right? > There's also an issue in libffi.pc where a '(libdir)' is copied > verbatim in LIBS, causing bash error at link time, which I hand-fixed > for now. What does libffi.pc look like? > In the end, I got a classical Android issue: > CCLD guile > > /usr/src/ndk-standalone-12-arm/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: > ./.libs/libguile-2.0.a(libguile_2.0_la-threads.o): in function > scm_cancel_thread:../../libguile/threads.c:1175: error: undefined reference > to 'pthread_cancel' > > ... classical because Bionic intentionally doesn't implement this function. You could either comment out the related code in libguile, or build Guile --without-threads. Is the rest of pthreads implemented? If yes, then we should add a test for pthread_cancel and arrange for that. Thanks, Ludo’.