error: undefined reference to 'ffsll'
leleliu008 opened this issue · comments
int ffsll(long long int i);
function is not in Android-NDK. so we should check if hasffsll
in configure script.
#ifndef HAVE_FFSLL
#define ffsll(x) lrzip_ffsll(x)
#endif
static int lrzip_ffsll(long long i) {
if (0 == i) return 0;
int bit;
for (bit = 1; !(i & 1); ++bit)
i >>= 1;
return bit;
}
this problem has been fixed already, I used lrzip-0.631