net-misc/dhcp-4.3.2 fails to compile on musl. One-liner patch (attached) fixes it for musl and doesn't break it for regular (glibc) gentoo Reproducible: Always Steps to Reproduce: 1. emerge -v net-misc/dhcp Actual Results: x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../includes -DMINIRES_LIB -DHMAC_MD5 -Os -pipe -fomit-frame-pointer -mtune=g eneric -I../bind/include -c -o prandom.o prandom.c In file included from dst_api.c:56:0: ../includes/arpa/nameser.h:109:2: error: unknown type name 'u_int8_t' const u_int8_t *_msg, *_eom; ^ ../includes/arpa/nameser.h:110:2: error: unknown type name 'u_int16_t' u_int16_t _id, _flags, _counts[ns_s_max]; ^ Expected Results: >>> net-misc/dhcp-4.3.2 merged. Tested only for these use flags set (for dhcp package): USE="client ipv6 server ssl", didn't check ldap or vim-syntax; selinux is masked on musl.
Created attachment 403684 [details, diff] dhcp-4.3.2-fix-compilation-for-musl.patch
This is now on the overlay. It should go upstream since its correct.
upstreaming status?
At least net-misc/dhcp-4.3.3_p1 (stable) and net-misc/dhcp-4.3.5 build fine for me (on musl) with the same USE as the reporter. The version for which this bug was reported is no longer in the tree. So this bug can probably be closed.
Thanks for the heads up. Closing this bug.