You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I make liburing2.6 ,the error occurs as below In file included from send-zerocopy.c:15: /usr/include/linux/ipv6.h:19:8: error: redefinition of ‘struct in6_pktinfo’ 19 | struct in6_pktinfo { | ^~~~~~~~~~~ In file included from /usr/include/arpa/inet.h:22, from send-zerocopy.c:13: /usr/include/netinet/in.h:538:8: note: originally defined here 538 | struct in6_pktinfo | ^~~~~~~~~~~ /usr/include/linux/ipv6.h:24:8: error: redefinition of ‘struct ip6_mtuinfo’ 24 | struct ip6_mtuinfo { | ^~~~~~~~~~~ /usr/include/netinet/in.h:545:8: note: originally defined here 545 | struct ip6_mtuinfo | ^~~~~~~~~~~ make[1]: *** [send-zerocopy.t] Error 1
Why does this happen?
ps:
kernel version 5.1
gcc version 12
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I make liburing2.6 ,the error occurs as below
In file included from send-zerocopy.c:15: /usr/include/linux/ipv6.h:19:8: error: redefinition of ‘struct in6_pktinfo’ 19 | struct in6_pktinfo { | ^~~~~~~~~~~ In file included from /usr/include/arpa/inet.h:22, from send-zerocopy.c:13: /usr/include/netinet/in.h:538:8: note: originally defined here 538 | struct in6_pktinfo | ^~~~~~~~~~~ /usr/include/linux/ipv6.h:24:8: error: redefinition of ‘struct ip6_mtuinfo’ 24 | struct ip6_mtuinfo { | ^~~~~~~~~~~ /usr/include/netinet/in.h:545:8: note: originally defined here 545 | struct ip6_mtuinfo | ^~~~~~~~~~~ make[1]: *** [send-zerocopy.t] Error 1
Why does this happen?
ps:
kernel version 5.1
gcc version 12
Beta Was this translation helpful? Give feedback.
All reactions