-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
errors occurred during building #275
Comments
interesting, this should have been fixed in #268 |
@giuseppe any ideas? |
could you try to apply the following patch? $ git diff
diff --git a/src/seccomp_notify.h b/src/seccomp_notify.h
index 9dda848..de1d441 100644
--- a/src/seccomp_notify.h
+++ b/src/seccomp_notify.h
@@ -3,6 +3,10 @@
#include "seccomp_notify_plugin.h"
+#ifndef SECCOMP_RET_USER_NOTIF
+#undef USE_SECCOMP
+#endif
+
#if USE_SECCOMP
struct seccomp_notify_context_s; |
@giuseppe |
this is what I get on Ubuntu 16.04:
Altough we need this patch to address an issue when libseccomp is not installed: diff --git a/src/seccomp_notify.c b/src/seccomp_notify.c
index 58f4a16..75737d0 100644
--- a/src/seccomp_notify.c
+++ b/src/seccomp_notify.c
@@ -6,7 +6,6 @@
#endif
#include <errno.h>
-#include <seccomp.h>
#include <sys/ioctl.h>
#include <linux/seccomp.h>
#include <sys/sysmacros.h>
@@ -22,6 +21,7 @@
#include "seccomp_notify.h"
#if USE_SECCOMP
+#include <seccomp.h>
#ifndef SECCOMP_USER_NOTIF_FLAG_CONTINUE
#define SECCOMP_USER_NOTIF_FLAG_CONTINUE (1UL << 0)
diff --git a/src/seccomp_notify.h b/src/seccomp_notify.h
index 9dda848..de1d441 100644
--- a/src/seccomp_notify.h
+++ b/src/seccomp_notify.h
@@ -3,6 +3,10 @@
#include "seccomp_notify_plugin.h"
+#ifndef SECCOMP_RET_USER_NOTIF
+#undef USE_SECCOMP
+#endif
+
#if USE_SECCOMP
struct seccomp_notify_context_s;
diff --git a/src/seccomp_notify_plugin.h b/src/seccomp_notify_plugin.h
index 562957f..1b14a5f 100644
--- a/src/seccomp_notify_plugin.h
+++ b/src/seccomp_notify_plugin.h
@@ -2,6 +2,10 @@
#include <linux/seccomp.h>
+#ifndef SECCOMP_RET_USER_NOTIF
+#undef USE_SECCOMP
+#endif
+
#if USE_SECCOMP
struct seccomp_notify_conf_s { |
can you show the output for |
we could add a check for |
so seccomp_notif_resp is defined as part of Could you try adding |
seccomp_notif_sizes seems still missing. What do you see with Is your OS fully updated (did you run |
actually, it's likely you'll run into it on 18.04, as we need kernel 5.9 or greater for proper seccomp notify support. I think this should be fixed |
@haircommander |
Still not fixed.
The system (Ubuntu 18): 4.15.0-147-generic #151-Ubuntu SMP Fri Jun 18 19:21:19 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux |
I have encountered a error building from source code. Is my gcc version mismatched?
steps:
1.git clone ...
2. make
os : ubuntu16.04
gcc : 5.4.0
The text was updated successfully, but these errors were encountered: