FedericoCeratto / nim-seccomp

Seccomp (libseccomp2) adapter for the Nim language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compile error

fox0430 opened this issue · comments

commented

Hello, I tried to use this package. But I can not compile it.

Source code

test.nim

import seccomp

setSeccomp("write exit_group")

echo """Seccomp is now enabled. Future attempts to change the Seccomp configuration
or to call forbidden system calls will cause the process to be terminated"""

Install and build

nimble install seccomp
nim c test.nim

Result

Hint: used config file '/home/fox/.choosenim/toolchains/nim-1.4.8/config/nim.cfg' [Conf]
Hint: used config file '/home/fox/.choosenim/toolchains/nim-1.4.8/config/config.nims' [Conf]
............
/home/fox/.nimble/pkgs/seccomp-0.2.0/seccomp.nim(9, 8) Error: cannot open file: seccomp_lowlevel

Environment

OS: Arch Linux
Nim: v1.4.8

Did I miss anything?

Thank you

Merged and tagged a new release. Thank you!