Thread View: muc.lists.netbsd.tech.toolchain
2 messages
2 total messages
Started by Thomas Klausner
Wed, 25 Nov 2026 20:01
Re: ld compat linker warnings considered harmful
Author: Thomas Klausner
Date: Wed, 25 Nov 2026 20:01
Date: Wed, 25 Nov 2026 20:01
40 lines
3214 bytes
3214 bytes
Since there still was no solution committed for this, I've filed toolchain/61079: ld compat linker warnings considered harmful Thomas On Tue, Aug 18, 2026 at 09:58:58AM +0100, Thomas Klausner wrote: > Hi! > > For library function renaming to work, NetBSD uses header macros to > use the latest version of a function, so that the old symbol still > stays available for programs that were linked against the previous > version of the function. > > There is also a linker warning so that you do not use the old > functions by accident, because you forgot including the header, e.g.: > > ld: /usr/lib/libm.so.0: warning: warning: reference to compatibility cabs() > > The (known) problem is that this linker warning also triggers when it > shouldn't, when libraries are pulled in indirectly and the functions > not even used by the program that (indirectly) links against them. > > The latest meson now defaults to fatal linker warnings, which causes > programs fail to build because of this. > > See e.g. > > https://releng.netbsd.org/pkgreports/shadow/HEAD/NetBSD-11.0-x86_64/20260816.2028/libliftoff-0.5.0/build.log > > Can someone please fix the linker warnings so they only trigger when > necessary? > > Thanks, > Thomas -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: ld compat linker warnings considered harmful
Author: David Holland
Date: Wed, 25 Nov 2026 22:39
Date: Wed, 25 Nov 2026 22:39
16 lines
2270 bytes
2270 bytes
On Wed, Nov 25, 2026 at 09:01:41PM +0100, Thomas Klausner wrote: > Since there still was no solution committed for this, I've filed > > toolchain/61079: ld compat linker warnings considered harmful right, I'll follow up there. I too let it slide :-( -- David A. Holland dholland@netbsd.org -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads