MUSL: prov/sockets/src/sock_atomic.c:51:10 fatal error: 'arpa/inet.h' file not found
NHOrus opened this issue · comments
Describe the bug
MUSL libc lacks header file <arpa/inet.h>, libfabric fails to compile
To Reproduce
Try to build libfabric on system using Musl as libc, e.g. Gentoo with Musl
Expected behavior
Build succeeds
Output
MAKEOPTS="-j1 --shuffle=4108033355" ebuild libfabric-1.11.2-r2.ebuild compile
libtool: compile: clang -DHAVE_CONFIG_H -I. -I./include -D_GNU_SOURCE -D__USE_XOPEN2K8 -DSYSCONFDIR=\"/etc\" -DRDMADIR=\"@rdmadir@\" -DPROVDLDIR=\"/usr/lib/libfabric\" -I./prov/sockets/include -I./prov/sockets -I./prov/hook/include -I./prov/hook/hook_debug/include -Wall -O2 -DNDEBUG -O2 -pipe -c prov/sockets/src/sock_eq.c -fPIC -DPIC -o prov/sockets/src/.libs/src_libfabric_la-sock_eq.o
prov/sockets/src/sock_atomic.c:51:10: fatal error: 'arpa/inet.h' file not found
51 | #include <arpa/inet.h>
| ^~~~~~~~~~~~~
Environment:
Gentoo Clang-Musl
Additional context
Noticed on libfabric-1.11.2, but current main still contains include, so bug persists.
libfabric/prov/sockets/src/sock_atomic.c
Line 51 in 996431a