Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: undefined reference to 'ffsll' #202

Closed
leleliu008 opened this issue Jul 3, 2021 · 1 comment
Closed

error: undefined reference to 'ffsll' #202

leleliu008 opened this issue Jul 3, 2021 · 1 comment

Comments

@leleliu008
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant