NetBSD Problem Report #52278

From www@NetBSD.org  Tue Jun  6 13:40:35 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id C26747A1C0
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  6 Jun 2017 13:40:35 +0000 (UTC)
Message-Id: <20170606134034.6F09C7A291@mollari.NetBSD.org>
Date: Tue,  6 Jun 2017 13:40:34 +0000 (UTC)
From: n54@gmx.com
Reply-To: n54@gmx.com
To: gnats-bugs@NetBSD.org
Subject: qemu -static linking generates warnings
X-Send-Pr-Version: www-1.0

>Number:         52278
>Category:       lib
>Synopsis:       qemu -static linking generates warnings
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 06 13:45:00 +0000 2017
>Last-Modified:  Tue Jun 06 20:45:01 +0000 2017
>Originator:     Kamil Rytarowski
>Release:        NetBSD 7.99.75 amd64
>Organization:
TNF
>Environment:
NetBSD chieftec 7.99.75 NetBSD 7.99.75 (GENERIC) #1: Wed May 31 01:19:38 CEST 2017  root@chieftec:/public/netbsd-root/sys/arch/amd64/compile/GENERIC amd64
>Description:
standalone build of qemu with -static option generates linker warnings:

  LINK    sparc64-bsd-user/qemu-sparc64
/usr/lib/libc.a(initfini.o): warning: common of `__ps_strings' overridden by definition
/usr/lib/crt0.o: warning: defined here
/usr/lib/libc.a(_env.o): warning: multiple common of `environ'
/usr/lib/crt0.o: warning: previous common is here
/usr/lib/libc.a(getprogname.o): warning: common of `__progname' overridden by definition
/usr/lib/crt0.o: warning: defined here
  LINK    x86_64-bsd-user/qemu-x86_64
/usr/lib/libc.a(initfini.o): warning: common of `__ps_strings' overridden by definition
/usr/lib/crt0.o: warning: defined here
/usr/lib/libc.a(_env.o): warning: multiple common of `environ'
/usr/lib/crt0.o: warning: previous common is here
/usr/lib/libc.a(getprogname.o): warning: common of `__progname' overridden by definition
/usr/lib/crt0.o: warning: defined here
  LINK    i386-bsd-user/qemu-i386
/usr/lib/libc.a(initfini.o): warning: common of `__ps_strings' overridden by definition
/usr/lib/crt0.o: warning: defined here
/usr/lib/libc.a(_env.o): warning: multiple common of `environ'
/usr/lib/crt0.o: warning: previous common is here
/usr/lib/libc.a(getprogname.o): warning: common of `__progname' overridden by definition
/usr/lib/crt0.o: warning: defined here

>How-To-Repeat:
git clone --recursive git://git.qemu-project.org/qemu.git
./configure --disable-linux-user --disable-system --static --python=python2.7
gmake -j17
>Fix:
N/A

>Audit-Trail:
From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: lib-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: lib/52278: qemu -static linking generates warnings
Date: Tue, 6 Jun 2017 22:40:28 +0200

 On Tue, Jun 06, 2017 at 01:45:01PM +0000, n54@gmx.com wrote:
 > standalone build of qemu with -static option generates linker warnings:

 This is not a bug per se and only shows up when explicitly asking the
 linker for it. The variables are common because (a) they originated in
 CRT and (b) should be defined to allow using -z defs properly.

 Joerg

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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.