FedericoCeratto / nim-seccomp

Seccomp (libseccomp2) adapter for the Nim language
GNU Lesser General Public License v2.1
12 stars 1 forks source link

Compile error #1

Closed fox0430 closed 2 years ago

fox0430 commented 2 years ago

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

FedericoCeratto commented 2 years ago

Merged and tagged a new release. Thank you!