sss icon indicating copy to clipboard operation
sss copied to clipboard

make error syscall

Open varshadqz opened this issue 4 years ago • 3 comments

I am using Window's subsystem Ubuntu 18.04, when I call make, it gives an error

randombytes.c:77:10: warning: implicit declaration of function ‘syscall’; did you mean ‘sysconf’? [-Wimplicit-function-declaration]
    ret = syscall(SYS_getrandom, (char *)buf + offset, chunk, 0);

should I comment #include <sys/syscall.h> from random.h file? Or what is the solution? Please help. I am trying to use this library in EOS smart contract.

varshadqz avatar Dec 16 '20 03:12 varshadqz

Hmmm. So it looks like sys/syscall.h is correctly included, but it does not actually contain the syscall function.

Are you running on WSL or WSL2?

dsprenkels avatar Dec 18 '20 18:12 dsprenkels

I am using WSL.

varshadqz avatar Dec 21 '20 02:12 varshadqz