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)
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

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 

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.




Home | Main Index | Thread Index | Old Index