Skip to content
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

cant compile on macos high sierra #47

Open
diobigmage opened this issue Feb 12, 2020 · 1 comment
Open

cant compile on macos high sierra #47

diobigmage opened this issue Feb 12, 2020 · 1 comment

Comments

@diobigmage
Copy link

Hello, I have this trouble when typing cmake .. && make, this happens after compiling ( at 98% final step)

[ 0%] Built target fmt
[ 88%] Built target crypto
[ 96%] Built target ssl
[ 98%] Built target tls
[ 98%] Building CXX object CMakeFiles/Xerxes.dir/src/engine.cpp.o
clang: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
In file included from /Users/user/desktop/Xerxes/src/engine.cpp:2:
/Users/user/desktop/Xerxes/include/icmp_flood.hpp:57:25: error: unknown type
name 'icmphdr'; did you mean 'tcphdr'?
virtual void init_hdr(icmphdr *icmp, iphdr *ip);
^~~~~~~
tcphdr
/usr/include/netinet/tcp.h:81:8: note: 'tcphdr' declared here
struct tcphdr {
^
In file included from /Users/user/desktop/Xerxes/src/engine.cpp:2:
/Users/user/desktop/Xerxes/include/icmp_flood.hpp:57:40: error: unknown type
name 'iphdr'
virtual void init_hdr(icmphdr *icmp, iphdr *ip);
^
/Users/user/desktop/Xerxes/include/icmp_flood.hpp:58:29: error: unknown type
name 'icmphdr'; did you mean 'tcphdr'?
virtual void finalize_hdr(icmphdr *icmp, iphdr *ip);
^~~~~~~
tcphdr
/usr/include/netinet/tcp.h:81:8: note: 'tcphdr' declared here
struct tcphdr {
^
In file included from /Users/user/desktop/Xerxes/src/engine.cpp:2:
/Users/user/desktop/Xerxes/include/icmp_flood.hpp:58:44: error: unknown type
name 'iphdr'
virtual void finalize_hdr(icmphdr *icmp, iphdr *ip);
^
/Users/user/desktop/Xerxes/include/icmp_flood.hpp:68:21: error: unknown type
name 'icmphdr'; did you mean 'tcphdr'?
void finalize_hdr(icmphdr *icmp, iphdr *ip) override;
^~~~~~~
tcphdr
/usr/include/netinet/tcp.h:81:8: note: 'tcphdr' declared here
struct tcphdr {
^
In file included from /Users/user/desktop/Xerxes/src/engine.cpp:2:
/Users/user/desktop/Xerxes/include/icmp_flood.hpp:68:36: error: unknown type
name 'iphdr'
void finalize_hdr(icmphdr *icmp, iphdr *ip) override;
^
/Users/user/desktop/Xerxes/include/icmp_flood.hpp:78:21: error: unknown type
name 'icmphdr'; did you mean 'tcphdr'?
void finalize_hdr(icmphdr *icmp, iphdr *ip) override;
^~~~~~~
tcphdr
/usr/include/netinet/tcp.h:81:8: note: 'tcphdr' declared here
struct tcphdr {
^
In file included from /Users/user/desktop/Xerxes/src/engine.cpp:2:
/Users/user/desktop/Xerxes/include/icmp_flood.hpp:78:36: error: unknown type
name 'iphdr'
void finalize_hdr(icmphdr *icmp, iphdr *ip) override;
^
In file included from /Users/user/desktop/Xerxes/src/engine.cpp:3:
/Users/user/desktop/Xerxes/include/spoofed_tcp_flood.hpp:18:38: error: unknown
type name 'iphdr'
virtual void init_hdr(tcphdr *tcp, iphdr *ip);
^
/Users/user/desktop/Xerxes/include/spoofed_tcp_flood.hpp:19:42: error: unknown
type name 'iphdr'
virtual void finalize_hdr(tcphdr *tcp, iphdr *ip);
^
/Users/user/desktop/Xerxes/include/spoofed_tcp_flood.hpp:45:34: error: unknown
type name 'iphdr'
void finalize_hdr(tcphdr *tcp, iphdr *ip) override;
^
/Users/user/desktop/Xerxes/include/spoofed_tcp_flood.hpp:55:34: error: unknown
type name 'iphdr'
void finalize_hdr(tcphdr *tcp, iphdr *ip) override;
^
/Users/user/desktop/Xerxes/include/spoofed_tcp_flood.hpp:65:34: error: unknown
type name 'iphdr'
void finalize_hdr(tcphdr *tcp, iphdr *ip) override;
^
/Users/user/desktop/Xerxes/include/spoofed_tcp_flood.hpp:75:34: error: unknown
type name 'iphdr'
void finalize_hdr(tcphdr *tcp, iphdr *ip) override;
^
/Users/user/desktop/Xerxes/include/spoofed_tcp_flood.hpp:85:34: error: unknown
type name 'iphdr'
void finalize_hdr(tcphdr *tcp, iphdr *ip) override;
^
/Users/user/desktop/Xerxes/include/spoofed_tcp_flood.hpp:95:34: error: unknown
type name 'iphdr'
void finalize_hdr(tcphdr *tcp, iphdr *ip) override;
^
/Users/user/desktop/Xerxes/include/spoofed_tcp_flood.hpp:105:34: error: unknown
type name 'iphdr'
void finalize_hdr(tcphdr *tcp, iphdr *ip) override;
^
In file included from /Users/user/desktop/Xerxes/src/engine.cpp:4:
/Users/user/desktop/Xerxes/include/spoofed_udp_flood.hpp:17:38: error: unknown
type name 'iphdr'
virtual void init_hdr(udphdr *udp, iphdr *ip);
^
/Users/user/desktop/Xerxes/include/spoofed_udp_flood.hpp:18:42: error: unknown
type name 'iphdr'
virtual void finalize_hdr(udphdr *udp, iphdr *ip);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [CMakeFiles/Xerxes.dir/src/engine.cpp.o] Error 1
make[1]: *** [CMakeFiles/Xerxes.dir/all] Error 2
make: *** [all] Error 2

@LouisGirones
Copy link

Same issue here on Big Sur, did you found a workaround ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants