Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951050 - net-misc/iputils-20240905 - fails to link on musl: undefined reference to `error'
Summary: net-misc/iputils-20240905 - fails to link on musl: undefined reference to `er...
Status: UNCONFIRMED
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:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2025-03-09 17:09 UTC by ernsteiswuerfel
Modified: 2025-03-09 17:10 UTC (History)
1 user (show)

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


Attachments
build.log (ppc64, 20240905) (iputils-20240905:20250308-154950.log,12.37 KB, text/plain)
2025-03-09 17:09 UTC, ernsteiswuerfel
Details
emerge --info (file_951050.txt,6.80 KB, text/plain)
2025-03-09 17:10 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2025-03-09 17:09:58 UTC
Created attachment 920433 [details]
build.log (ppc64, 20240905)

Like in bug #947680 iputils fails to link when error-standalone is present on the system:

[...]
[17/18] powerpc64-unknown-linux-musl-gcc  -o ping/ping ping/ping.p/ping.c.o ping/ping.p/ping_common.c.o ping/ping.p/ping6_common.c.o ping/ping.p/node_info.c.o -Wl,--as-needed -Wl,--no-undefined -Os -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--start-group libcommon.a -lm -lresolv -Wl,--end-group
FAILED: ping/ping 
powerpc64-unknown-linux-musl-gcc  -o ping/ping ping/ping.p/ping.c.o ping/ping.p/ping_common.c.o ping/ping.p/ping6_common.c.o ping/ping.p/node_info.c.o -Wl,--as-needed -Wl,--no-undefined -Os -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--start-group libcommon.a -lm -lresolv -Wl,--end-group
/usr/lib/gcc/powerpc64-unknown-linux-musl/14/../../../../powerpc64-unknown-linux-musl/bin/ld: ping/ping.p/ping.c.o: in function `ping_strtod':
ping.c:(.text+0x1c8): undefined reference to `error'
/usr/lib/gcc/powerpc64-unknown-linux-musl/14/../../../../powerpc64-unknown-linux-musl/bin/ld: ping.c:(.text+0x1ec): undefined reference to `error'
/usr/lib/gcc/powerpc64-unknown-linux-musl/14/../../../../powerpc64-unknown-linux-musl/bin/ld: ping.c:(.text+0x230): undefined reference to `error'
/usr/lib/gcc/powerpc64-unknown-linux-musl/14/../../../../powerpc64-unknown-linux-musl/bin/ld: ping/ping.p/ping.c.o: in function `str_socktype':
ping.c:(.text+0x548): undefined reference to `error'
/usr/lib/gcc/powerpc64-unknown-linux-musl/14/../../../../powerpc64-unknown-linux-musl/bin/ld: ping/ping.p/ping.c.o: in function `str_family':
ping.c:(.text+0x5dc): undefined reference to `error'
/usr/lib/gcc/powerpc64-unknown-linux-musl/14/../../../../powerpc64-unknown-linux-musl/bin/ld: ping/ping.p/ping.c.o:ping.c:(.text+0x6b8): more undefined references to `error' follow
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
 * ERROR: net-misc/iputils-20240905::gentoo failed (compile phase):
 *   ninja -v -j1 -l0 failed
Comment 1 ernsteiswuerfel archtester 2025-03-09 17:10:55 UTC
Created attachment 920434 [details]
emerge --info