Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549942 - net-misc/radvd does not compile with musl due to missing ARPHRD_IEEE802154_PHY definition
Summary: net-misc/radvd does not compile with musl due to missing ARPHRD_IEEE802154_PH...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL: https://github.com/reubenhwk/radvd/co...
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2015-05-20 06:51 UTC by Robert Sebastian Gerus
Modified: 2015-06-17 22:05 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
radvd-2.10-musl-libc-fix.patch obtain from ${URL} (radvd-2.10-musl-libc-fix.patch,2.23 KB, patch)
2015-05-22 10:58 UTC, Anthony Basile
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Sebastian Gerus 2015-05-20 06:51:53 UTC
net-misc/radvd fails to compile on musl. Linked patch fixes it.

Reproducible: Always

Steps to Reproduce:
1. emerge -v radvd
Actual Results:  
x86_64-gentoo-linux-musl-ranlib libradvd-parser.a
x86_64-gentoo-linux-musl-gcc -std=gnu99 -DINET6=1 -DLOG_FACILITY=LOG_DAEMON -DPATH_RADVD_CONF=\"/etc/radvd.conf\" -DPATH_RADVD_LOG=\"/var/log/radvd.log\" -DPATH_RADVD_PID=\"/var/run/radvd/radvd.pid\" -DVERSION=\"2.11\" -I.    -fno-strict-aliasing -fstack-protector -Wall -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -Wno-strict-aliasing -Wno-cast-align -Wno-strict-overflow -O2 -pipe -fomit-frame-pointer -mtune=generic -c -o device-linux.o device-linux.c
device-linux.c: In function ‘hwstr’:
device-linux.c:374:7: error: ‘ARPHRD_IEEE802154_PHY’ undeclared (first use in this function)
  case ARPHRD_IEEE802154_PHY:
       ^
device-linux.c:374:7: note: each undeclared identifier is reported only once for each function it appears in
Makefile:908: recipe for target 'device-linux.o' failed
make[1]: *** [device-linux.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-misc/radvd-2.11/work/radvd-2.11'
Makefile:734: recipe for target 'all' failed
make: *** [all] Error 2


Expected Results:  
>>> net-misc/radvd-2.11 merged.
Comment 1 Anthony Basile gentoo-dev 2015-05-22 10:58:04 UTC
Created attachment 403758 [details, diff]
radvd-2.10-musl-libc-fix.patch obtain from ${URL}

@report.  This is now in the hardened-dev::musl overlay.  If you're following this upstream let us know when the patch is accepted so we can close this bug.

@maintainers.  the github patch looks sane to me.  You can consider adding it to 2.11 (current unstable).  I've tested on both glibc and musl.
Comment 2 Robert Sebastian Gerus 2015-05-22 11:18:17 UTC
The github repo is upstream for radvd and this patch is already accepted there.
Comment 3 Anthony Basile gentoo-dev 2015-06-12 20:33:18 UTC
Heh, forgot to add the maintainers.

@xmw + prometheanfire.  Can we backport for 2.11?
Comment 4 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2015-06-17 21:32:45 UTC
looks like we added it to 2.11-r1, removing myself from cc
Comment 5 Michael Weber (RETIRED) gentoo-dev 2015-06-17 22:05:14 UTC
(In reply to Matthew Thode ( prometheanfire ) from comment #4)
> looks like we added it to 2.11-r1, removing myself from cc

Forgot to close the bug, sry.

*radvd-2.11-r1 (14 Jun 2015)

  14 Jun 2015; Michael Weber <xmw@gentoo.org>
  +files/radvd-2.10-musl-libc-fix.patch, +radvd-2.11-r1.ebuild,
  -radvd-2.5.ebuild, -radvd-2.8.ebuild:
  Add ARPHRD_IEEE802154_PHY definition for musl (bug 549942).