I'm trying to install Docker in Slackware 14.2 via SBoTools, but I got an error message of runc installation.
undefined reference to `seccomp_rule_add_exact_array' collect2: error: ld returned 1 exit status
make: *** [all] Error 2
Makefile:30: recipe for target 'all' failed
Failures: runc: runc.SlackBuild return non-zero
I tried to build runc from source, but got the same error. I'm not an specialist with go-lang and don't know if the problem is with it.
Thanks,
More details:
The problem happens when in the installation when it gives that command:
go build -i -ldflags "-X main.gitCommit=54296cf40ad8143b62dbcaa1d90e520a2136ddfe -X main.version=1.0.0-rc2" -tags "seccomp" -o runc .
Edit #2 - Problem solved.
Alright, the problem was in Makefile of runc package from slackbuilds. There is two lines where the command "go build" will be used and in both there is an flag called "-ldflags"... To solve the problem, just update this flag with "-gccgoflags" and that sould work. Obs: If you're trying to install Docker, you'll have this problem with containerd too.
Hope this can help someone and I'll report this for the mainteiner of the package in Slackbuilds :)