Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936234 - sys-apps/iproute2: error: call to undeclared function 'htobe64' on musl/llvm
Summary: sys-apps/iproute2: error: call to undeclared function 'htobe64' on musl/llvm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-07-18 00:09 UTC by misile
Modified: 2024-08-04 16:17 UTC (History)
5 users (show)

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


Attachments
package build log (log.txt,24.45 KB, text/plain)
2024-07-18 08:47 UTC, misile
Details
emerge --info's output (emerge-info.txt,6.19 KB, text/plain)
2024-07-18 08:48 UTC, misile
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misile 2024-07-18 00:09:07 UTC
log: <https://bpa.st/3VPQ>
emerge --info: <https://bpa.st/H5TA>
Comment 1 Greg Kubaryk 2024-07-18 02:53:56 UTC
Paste sites expire; please attach the required information to this ticket.
Comment 2 misile 2024-07-18 08:47:34 UTC
Created attachment 897918 [details]
package build log
Comment 3 misile 2024-07-18 08:48:00 UTC
Created attachment 897919 [details]
emerge --info's output
Comment 4 Holger Hoffstätte 2024-07-18 11:19:23 UTC
Builds fine in my musl-1.2.5/gcc chroot so maybe it's missing an explicit include of /usr/include/endian.h somewhere. Add that to the includes in libnetlink.h and then try to build.
Comment 5 Holger Hoffstätte 2024-07-18 18:27:06 UTC
Patch can be found in https://bugs.gentoo.org/926341
Comment 6 Larry the Git Cow gentoo-dev 2024-08-03 22:33:13 UTC
The bug has been referenced in the following commit(s):

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

commit 3b69420d156fb87e35f38c63220b8847ae02a726
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-08-03 22:31:55 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-08-03 22:33:02 +0000

    package.mask, musl: mask iproute2-6.10.0, bug 936234
    
    Bug: https://bugs.gentoo.org/936234
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 profiles/features/musl/package.mask | 4 ++++
 1 file changed, 4 insertions(+)
Comment 7 Larry the Git Cow gentoo-dev 2024-08-04 10:26:43 UTC
The bug has been referenced in the following commit(s):

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

commit e6208bf7ee054425cc9476c17d7990390d1baf1e
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-08-04 10:25:03 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-08-04 10:26:32 +0000

    Revert "package.mask, musl: mask iproute2-6.10.0, bug 936234"
    
    Apparently this breaks building on gcc-14 where the update
    succeeded earlier. Seems to be arch-specific...
    
    This reverts commit 3b69420d156fb87e35f38c63220b8847ae02a726.
    
    Bug: https://bugs.gentoo.org/936234
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 profiles/features/musl/package.mask | 4 ----
 1 file changed, 4 deletions(-)
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2024-08-04 11:36:38 UTC
Note that the linked PR conflates two issues (htobe64 and basename).

Let's try to fix the simpler one of these first.
Comment 9 Larry the Git Cow gentoo-dev 2024-08-04 16:17:32 UTC
The bug has been closed via the following commit(s):

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

commit 0564906652c69469deab2b7814bb4736d7be5881
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-08-04 16:16:13 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-08-04 16:17:21 +0000

    sys-apps/iproute2: fix build on musl
    
    Closes: https://bugs.gentoo.org/936234
    Closes: https://bugs.gentoo.org/926341
    Closes: https://github.com/gentoo/gentoo/pull/37658
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 .../iproute2/files/iproute2-6.10.0-musl-1.patch    | 41 +++++++++++++++++++++
 .../iproute2/files/iproute2-6.10.0-musl-2.patch    | 43 ++++++++++++++++++++++
 sys-apps/iproute2/iproute2-6.10.0.ebuild           |  2 +
 3 files changed, 86 insertions(+)