Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 818700 - net-wireless/iwd-1.18 - src/netconfig.c: In function 'netconfig_ipv6_to_string': src/netconfig.c:188:25: error: 'struct in6_addr' has no member named '__in6_u'
Summary: net-wireless/iwd-1.18 - src/netconfig.c: In function 'netconfig_ipv6_to_strin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ben Kohler
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2021-10-17 15:00 UTC by ernsteiswuerfel
Modified: 2021-10-17 15:51 UTC (History)
2 users (show)

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


Attachments
build.log (iwd-1.18:20211017-145409.log,23.91 KB, text/plain)
2021-10-17 15:00 UTC, ernsteiswuerfel
Details
emerge --info (file_818700.txt,6.78 KB, text/plain)
2021-10-17 15:01 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2021-10-17 15:00:50 UTC
Created attachment 745485 [details]
build.log

Previous stable iwd-1.15 was fine.

[...]
x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I.     -fvisibility=hidden -DUNITDIR=\""./unit/"\" -DCERTDIR=\""./unit/"\"  -Os -march=x86-64 -mtune=k8 -msse3 -pipe -fsigned-char -c -o src/netconfig.o src/netconfig.c
src/netconfig.c: In function 'netconfig_ipv6_to_string':
src/netconfig.c:188:25: error: 'struct in6_addr' has no member named '__in6_u'; did you mean '__in6_union'?
  188 |         memcpy(in6_addr.__in6_u.__u6_addr8, addr, 16);
      |                         ^~~~~~~
      |                         __in6_union
make[1]: *** [Makefile:2276: src/netconfig.o] Error 1
make: *** [Makefile:1497: all] Error 2
 * ERROR: net-wireless/iwd-1.18::gentoo failed (compile phase):
 *   emake failed
Comment 1 ernsteiswuerfel archtester 2021-10-17 15:01:37 UTC
Created attachment 745488 [details]
emerge --info
Comment 2 Ben Kohler gentoo-dev 2021-10-17 15:16:39 UTC
Probably fixed in this commit, can you see if adding this patch to 1.18 helps? 

https://git.kernel.org/pub/scm/network/wireless/iwd.git/commit/src/netconfig.c?id=42bd5ba7c2665c5bf95ba102a8115c4cf01d31d7
Comment 3 ernsteiswuerfel archtester 2021-10-17 15:29:18 UTC
(In reply to Ben Kohler from comment #2)
> Probably fixed in this commit, can you see if adding this patch to 1.18
> helps? 
> 
> https://git.kernel.org/pub/scm/network/wireless/iwd.git/commit/src/netconfig.
> c?id=42bd5ba7c2665c5bf95ba102a8115c4cf01d31d7
Yes, this patch fixes the build on musl. Thanks!
Comment 4 Larry the Git Cow gentoo-dev 2021-10-17 15:51:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0dd8d6c0edaf5f3aa67f81aef727abe7aff4c86

commit a0dd8d6c0edaf5f3aa67f81aef727abe7aff4c86
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2021-10-17 15:37:34 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2021-10-17 15:50:54 +0000

    net-wireless/iwd: backport musl fix
    
    Closes: https://bugs.gentoo.org/818700
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 .../iwd/files/iwd-1.18-musl-backport.patch         | 30 ++++++++++++++++++++++
 net-wireless/iwd/iwd-1.18.ebuild                   |  5 ++--
 2 files changed, 33 insertions(+), 2 deletions(-)