NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
toolchain/47104: -pg -lpthread warns about xdr symbols and __findenv
>Number: 47104
>Category: toolchain
>Synopsis: -pg -lpthread warns about xdr symbols and __findenv
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 22 08:25:00 +0000 2012
>Originator: Matthias Kretschmer
>Release: NetBSD 6.0_POST_RC1
>Organization:
>Environment:
System: NetBSD jaguar-gamma 6.0_POST_RC1 NetBSD 6.0_POST_RC1 (XEN3PAE_DOMU) #7:
Mon Sep 10 10:53:12 CEST 2012
ignatios%random84.cs.uni-bonn.de@localhost:/var/itch/sources/6.0/oi386/sys/arch/i386/compile/XEN3PAE_DOMU
i386
Architecture: i386
Machine: i386
>Description:
Linking with -pg -lpthread warns about deprecated and buggy symbols:
- xdr_peername()
- xdr_mapname()
- xdr_domainname()
Furthermore is warns about __findenv being internal and obsolete.
I tested "long" running code by calculating the ackermann function
for some input in two threads. Works fine. gprof gives reasonable
output.
>How-To-Repeat:
jaguar-gamma$ cat test.c
#include <pthread.h>
#include <stdlib.h>
int
main(int argc, char **argv)
{
return EXIT_SUCCESS;
}
jaguar-gamma$ gcc -g -pg test.c -lpthread
/usr/lib/libc.so.12: warning: warning: this program uses xdr_peername(), which
is deprecated and buggy.
/usr/lib/libc.so.12: warning: warning: __findenv is an internal obsolete
function.
/usr/lib/libc.so.12: warning: warning: this program uses xdr_mapname(), which
is deprecated and buggy.
/usr/lib/libc.so.12: warning: warning: this program uses xdr_domainname(),
which is deprecated and buggy.
>Fix:
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index