NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/47545: librt + static libc triggers linker warning
>Number: 47545
>Category: lib
>Synopsis: librt + static libc triggers linker warning
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 08 21:10:00 +0000 2013
>Originator: David A. Holland
>Release: NetBSD 6.99.11 (20120906)
>Organization:
>Environment:
System: NetBSD macaran 6.99.11 NetBSD 6.99.11 (MACARAN) #15: Mon Oct 15
21:24:31 EDT 2012 dholland@macaran:/usr/src/sys/arch/amd64/compile/MACARAN amd64
Architecture: x86_64
Machine: amd64
>Description:
It seems that linking librt.so against libc_p.a (or for that matter,
libc.a) causes this message:
/usr/lib/libc.so.12: warning: warning: __findenv is an internal obsolete
function.
The easiest way to test is:
ld -o /dev/null /usr/lib/librt.so /usr/lib/libc.a"
The way this comes up in real life is:
gcc -pg $(OBJS) -lrt -o $(PROG)
as this pulls in librt.so 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.
>How-To-Repeat:
>Fix:
Dunno.
Home |
Main Index |
Thread Index |
Old Index