stoken-dev / stoken

RSA SecurID-compatible software token for Linux/UNIX systems
http://stoken.sf.net
GNU Lesser General Public License v2.1
411 stars 78 forks source link

'mlockall' error #73

Open MasoudSaraf opened 1 year ago

MasoudSaraf commented 1 year ago

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 commented 1 year ago

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.?