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

MUSL: prov/sockets/src/sock_atomic.c:51:10 fatal error: 'arpa/inet.h' file not found #9986

Open
NHOrus opened this issue Apr 6, 2024 · 0 comments

Comments

@NHOrus
Copy link

NHOrus commented Apr 6, 2024

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.

#include <arpa/inet.h>

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

No branches or pull requests

2 participants