-
Notifications
You must be signed in to change notification settings - Fork 87
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
build error: redefinition of 'struct ethhdr' #78
Comments
So I understand the issue: both files being included define |
I tired hacking around this with this horrible patch: diff --git a/daemon/io.c b/daemon/io.c
index 42688f5..b41e8fb 100644
--- a/daemon/io.c
+++ b/daemon/io.c
@@ -25,7 +25,10 @@
#include <net/if.h>
#include <sys/ioctl.h>
#ifndef __APPLE__
-#include <linux/if_tun.h>
+/* #include <linux/if_tun.h> */
+#define IFF_NO_PI 0x1000
+#define IFF_TAP 0x0002
+#define TUNSETIFF _IOW('T', 202, int)
#else
#include <sys/sys_domain.h>
#include <sys/kern_control.h> But build now fails with another unrelated error:
|
Thanks to your "horrible" patch I was able to compile owl on Alpine successfully. I didn't get any further errors. You could also try to update googletest as described in issue #50 |
I'm building on Alpine Linux. I installed the following dependencies (based on the hints in the README):
The
make
step of the build process fails with:The text was updated successfully, but these errors were encountered: