NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/47545: librt + static libc triggers linker warning

The following reply was made to PR lib/47545; it has been noted by GNATS.

From: "Valeriy E. Ushakov" <>
Subject: Re: lib/47545: librt + static libc triggers linker warning
Date: Sat, 9 Feb 2013 03:02:11 +0400

 On Fri, Feb 08, 2013 at 21:10:01 +0000, 
 > It seems that linking against libc_p.a (or for that matter,
 > libc.a) causes this message:
 > /usr/lib/ warning: warning: __findenv is an internal obsolete 
 > function.
 > The easiest way to test is:
 >    ld -o /dev/null /usr/lib/ /usr/lib/libc.a"
 > The way this comes up in real life is:
 >    gcc -pg $(OBJS) -lrt -o $(PROG)
 > as this pulls in and uses libc_p.a. (I would have expected it
 > to implicitly pull in librt_p.a instead, but apparently it doesn't.)
 > I don't see where this is coming from; there is no reference to
 > __findenv in /usr/lib/librt.*, and no obvious chain of undefined
 > symbols that seems to be related.
 Check "FIXME" at src/external/gpl3/binutils/dist/bfd/elflink.c:3453
 Looks like for normal objects .gnu.warning.SYMBOL is handled as
 uncodintional .gnu.warning
 We should probably move the symbol to the file of its own.

Home | Main Index | Thread Index | Old Index