Hello,
I am currently trying to compile some programs (which are not yet available as ports) for SerenityOS, including a networking tool.
This shows an error message when compiling that the IPv6 header file is missing.
[...]
[scamper/build] ../internal.h:140:10: fatal error: netinet/ip6.h: No such file or directory
[scamper/build] 140 | #include <netinet/ip6.h>
[scamper/build] | ^~~~~~~~~~~~~~~
[scamper/build] compilation terminated.
[scamper/build] In file included from scamper_addr.c:30:
[scamper/build] ../internal.h:140:10: fatal error: netinet/ip6.h: No such file or directory
[scamper/build] 140 | #include <netinet/ip6.h>
[scamper/build] | ^~~~~~~~~~~~~~~
[scamper/build] In file included from scamper_ip6.c:29:
[scamper/build] ../internal.h:140:10: fatal error: netinet/ip6.h: No such file or directory
[scamper/build] 140 | #include <netinet/ip6.h>
[scamper/build] | ^~~~~~~~~~~~~~~
[scamper/build] compilation terminated.
[scamper/build] compilation terminated.
[scamper/build] In file included from scamper_icmp_resp.c:30:
[scamper/build] ../internal.h:140:10: fatal error: netinet/ip6.h: No such file or directory
[scamper/build] 140 | #include <netinet/ip6.h>
[scamper/build] | ^~~~~~~~~~~~~~~
[scamper/build] compilation terminated.
[scamper/build] In file included from scamper_tcp4.c:30:
[scamper/build] ../internal.h:140:10: fatal error: netinet/ip6.h: No such file or directory
[scamper/build] 140 | #include <netinet/ip6.h>
[scamper/build] | ^~~~~~~~~~~~~~~
[scamper/build] compilation terminated.
[scamper/build] In file included from scamper_tcp6.c:30:
[scamper/build] ../internal.h:140:10: fatal error: netinet/ip6.h: No such file or directory
[scamper/build] 140 | #include <netinet/ip6.h>
[scamper/build] | ^~~~~~~~~~~~~~~
[scamper/build] In file included from scamper_icmp4.c:31:
[scamper/build] ../internal.h:140:10: fatal error: netinet/ip6.h: No such file or directory
[scamper/build] 140 | #include <netinet/ip6.h>
[scamper/build] | ^~~~~~~~~~~~~~~
[scamper/build] compilation terminated.
[scamper/build] compilation terminated.
[scamper/build] In file included from scamper_icmpext_int.c:30:
[scamper/build] ../internal.h:140:10: fatal error: netinet/ip6.h: No such file or directory
[scamper/build] 140 | #include <netinet/ip6.h>
[scamper/build] | ^~~~~~~~~~~~~~~
[scamper/build] In file included from scamper_ip4.c:29:
[scamper/build] ../internal.h:140:10: fatal error: netinet/ip6.h: No such file or directory
[scamper/build] 140 | #include <netinet/ip6.h>
[scamper/build] | ^~~~~~~~~~~~~~~
[scamper/build] compilation terminated.
[scamper/build] compilation terminated.
[scamper/build] In file included from scamper.c:34:
[scamper/build] ../internal.h:140:10: fatal error: netinet/ip6.h: No such file or directory
[scamper/build] 140 | #include <netinet/ip6.h>
[scamper/build] | ^~~~~~~~~~~~~~~
[scamper/build] compilation terminated.
[scamper/build] In file included from scamper_osinfo.c:29:
[scamper/build] ../internal.h:140:10: fatal error: netinet/ip6.h: No such file or directory
[scamper/build] 140 | #include <netinet/ip6.h>
[scamper/build] | ^~~~~~~~~~~~~~~
[scamper/build] compilation terminated.
[scamper/build] In file included from scamper_icmpext.c:30:
[scamper/build] ../internal.h:140:10: fatal error: netinet/ip6.h: No such file or directory
[scamper/build] 140 | #include <netinet/ip6.h>
[scamper/build] | ^~~~~~~~~~~~~~~
[scamper/build] compilation terminated.
[scamper/build] In file included from scamper_icmp6.c:30:
[scamper/build] ../internal.h:140:10: fatal error: netinet/ip6.h: No such file or directory
[scamper/build] 140 | #include <netinet/ip6.h>
[scamper/build] | ^~~~~~~~~~~~~~~
[scamper/build] compilation terminated.
[scamper/build] In file included from scamper_debug.c:31:
[scamper/build] ../internal.h:140:10: fatal error: netinet/ip6.h: No such file or directory
[scamper/build] 140 | #include <netinet/ip6.h>
[scamper/build] | ^~~~~~~~~~~~~~~
[scamper/build] compilation terminated.
[scamper/build] make[2]: *** [Makefile:2205: scamper-scamper_tcp4.o] Error 1
[scamper/build] make[2]: *** Waiting for unfinished jobs....
[scamper/build] make[2]: *** [Makefile:2219: scamper-scamper_tcp6.o] Error 1
[scamper/build] In file included from scamper_udp4.c:30:
[scamper/build] ../internal.h:140:10: fatal error: netinet/ip6.h: No such file or directory
[scamper/build] 140 | #include <netinet/ip6.h>
[scamper/build] | ^~~~~~~~~~~~~~~
[scamper/build] compilation terminated.
[scamper/build] make[2]: *** [Makefile:2163: scamper-scamper_icmp_resp.o] Error 1
[scamper/build] make[2]: *** [Makefile:2037: scamper-scamper.o] Error 1
[scamper/build] make[2]: *** [Makefile:2079: scamper-scamper_list.o] Error 1
[scamper/build] make[2]: *** [Makefile:2247: scamper-scamper_ip4.o] Error 1
[scamper/build] make[2]: *** [Makefile:2051: scamper-scamper_osinfo.o] Error 1
[scamper/build] make[2]: *** [Makefile:2135: scamper-scamper_icmp4.o] Error 1
[scamper/build] make[2]: *** [Makefile:2177: scamper-scamper_icmpext.o] Error 1
[scamper/build] make[2]: *** [Makefile:2191: scamper-scamper_icmpext_int.o] Error 1
[scamper/build] make[2]: *** [Makefile:2065: scamper-scamper_addr.o] Error 1
[scamper/build] make[2]: *** [Makefile:2149: scamper-scamper_icmp6.o] Error 1
[scamper/build] make[2]: *** [Makefile:2233: scamper-scamper_ip6.o] Error 1
[scamper/build] make[2]: *** [Makefile:2093: scamper-scamper_debug.o] Error 1
[scamper/build] make[2]: *** [Makefile:2107: scamper-scamper_udp4.o] Error 1
[scamper/build] In file included from scamper_udp6.c:29:
[scamper/build] ../internal.h:140:10: fatal error: netinet/ip6.h: No such file or directory
[scamper/build] 140 | #include <netinet/ip6.h>
[scamper/build] | ^~~~~~~~~~~~~~~
[scamper/build] compilation terminated.
[scamper/build] make[2]: *** [Makefile:2121: scamper-scamper_udp6.o] Error 1
[scamper/build] make[2]: Leaving directory '/home/marek/serenity/Build/x86_64/Ports/scamper/scamper-cvs-20240122/scamper'
[scamper/build] make[1]: *** [Makefile:436: all-recursive] Error 1
[scamper/build] make[1]: Leaving directory '/home/marek/serenity/Build/x86_64/Ports/scamper/scamper-cvs-20240122'
[scamper/build] make: *** [Makefile:368: all] Error 2
I then looked in https://github.com/SerenityOS/serenity/tree/master/Userland/Libraries/LibC/netinet myself and could not find the ip6.h
either. Where is it in SerenityOS?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too