ckolivas / lrzip

Long Range Zip
http://lrzip.kolivas.org
GNU General Public License v2.0
618 stars 76 forks source link

error: undefined reference to 'ffsll' #202

Closed leleliu008 closed 3 years ago

leleliu008 commented 3 years ago

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;
}
leleliu008 commented 3 years ago

this problem has been fixed already, I used lrzip-0.631