Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 549976

Summary: net-misc/dhcp-4.3.2 fails to compile on musl
Product: Gentoo Linux Reporter: Robert Sebastian Gerus <ar>
Component: [OLD] ServerAssignee: Gentoo's Team for Core System packages <base-system>
Severity: normal CC: ar, base-system, gentoo, musl, prometheanfire
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: dhcp-4.3.2-fix-compilation-for-musl.patch

Description Robert Sebastian Gerus 2015-05-20 15:13:14 UTC
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.
Comment 1 Robert Sebastian Gerus 2015-05-20 15:13:55 UTC
Created attachment 403684 [details, diff]
Comment 2 Anthony Basile gentoo-dev 2015-05-22 11:32:21 UTC
This is now on the overlay.  It should go upstream since its correct.
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2015-08-06 18:56:11 UTC
upstreaming status?
Comment 4 Felix Janda 2016-10-13 02:20:34 UTC
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.
Comment 5 Lars Wendler (Polynomial-C) gentoo-dev 2016-10-13 07:32:11 UTC
Thanks for the heads up.

Closing this bug.