NetBSD Problem Report #45994

From njoly@lanfeust.sis.pasteur.fr  Sun Feb 12 10:21:00 2012
Return-Path: <njoly@lanfeust.sis.pasteur.fr>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 7E41A63B86B
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 12 Feb 2012 10:21:00 +0000 (UTC)
Message-Id: <20120212102056.B576ADC9BD@lanfeust.sis.pasteur.fr>
Date: Sun, 12 Feb 2012 11:20:56 +0100 (CET)
From: njoly@pasteur.fr
Reply-To: njoly@pasteur.fr
To: gnats-bugs@gnats.NetBSD.org
Subject: ld(1) warnings when building profiling binaries
X-Send-Pr-Version: 3.95

>Number:         45994
>Category:       bin
>Synopsis:       ld(1) warnings when building profiling binaries
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 12 10:25:00 +0000 2012
>Originator:     Nicolas Joly
>Release:        NetBSD 5.99.65
>Organization:
Insitut Pasteur
>Environment:
System: NetBSD lanfeust.sis.pasteur.fr 5.99.65 NetBSD 5.99.65 (LANFEUST) #3: Sun Feb 12 09:30:34 CET 2012 njoly@lanfeust.sis.pasteur.fr:/local/src/NetBSD/obj.amd64/sys/arch/amd64/compile/LANFEUST amd64
Architecture: x86_64
Machine: amd64
>Description:
When explicitely linked against some libraries, building of profiled binaries makes
ld(1) output several warnings:

njoly@lanfeust [tmp/prof]> cat sample.c 
int main() { return 0; }
njoly@lanfeust [tmp/prof]> cc -o sample sample.c -ledit
njoly@lanfeust [tmp/prof]> cc -pg -o sample sample.c -ledit
/lib/libc.so.12: warning: warning: this program uses xdr_peername(), which is deprecated and buggy.
/lib/libc.so.12: warning: warning: __findenv is an internal obsolete function.
/lib/libc.so.12: warning: warning: this program uses xdr_mapname(), which is deprecated and buggy.
/lib/libc.so.12: warning: warning: this program uses xdr_domainname(), which is deprecated and buggy.
ld: warning: type and size of dynamic symbol `__stop_link_set_all_categories' are not defined
ld: dynamic variable `__stop_link_set_all_categories' is zero size
ld: warning: type and size of dynamic symbol `__start_link_set_all_categories' are not defined
ld: dynamic variable `__start_link_set_all_categories' is zero size

>How-To-Repeat:
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.