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

'mlockall' error #73

Open
MasoudSaraf opened this issue Feb 6, 2023 · 1 comment
Open

'mlockall' error #73

MasoudSaraf opened this issue Feb 6, 2023 · 1 comment

Comments

@MasoudSaraf
Copy link

https://github.com/cernekee/stoken/blob/ddb5c7d4747a4923456551c1b054ea05e926a561/src/common.c#L378

Hi, I have an error in this line with this message

/root/main/ics-openconnect/external/stoken/src/common.c:378:2: warning: nested extern declaration of 'mlockall' [-Wnested-externs] /root/main/ics-openconnect/external/stoken/src/common.c: At top level: cc1: warning: unrecognized command line option "-Wno-unused-const-variable"

I try to compile latest openconnect library for android.

Can u help me please?

@sorenisanerd
Copy link
Contributor

A couple of things:
a) Those are warnings, not errors.
b) If you look at the line immediately before the mlockall call, there's an #ifdef HAVE_MLOCKALL. If HAVE_MLOCKALL is set, that means ./configure found an mlockall function on your system.

Can you share some more info? Build environment, build logs, etc.?

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

2 participants