NetBSD Problem Report #54027

From  Fri Mar  1 05:46:17 2019
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 132E67A16B
	for <>; Fri,  1 Mar 2019 05:46:17 +0000 (UTC)
Message-Id: <>
Date: Fri,  1 Mar 2019 16:46:10 +1100 (AEDT)
Subject: enabling real libstdc++ gnu.ver config.h processing has duplicate symbols
X-Send-Pr-Version: 3.95

>Number:         54027
>Category:       toolchain
>Synopsis:       enabling real libstdc++ gnu.ver config.h processing has duplicate symbols
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    mrg
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 01 05:50:00 +0000 2019
>Last-Modified:  Fri Mar 01 08:20:01 +0000 2019
>Originator:     matthew green
>Release:        NetBSD 8.99.34
people's front against (bozotic) www (softwar foundation)

	the current linking attempts to use the c++config.h
	but it uses the wrong one, and ends up not having right checks
	applied.  i've fixed mknative-gcc to copy the un-processed
	config.h as symver-config.h, but i need this patch to enable the
	use of it as well:

Index: external/gpl3/gcc/dist/libstdc++-v3/config/abi/pre/gnu.ver
RCS file: /cvsroot/src/external/gpl3/gcc/dist/libstdc++-v3/config/abi/pre/gnu.ver,v
retrieving revision
diff -p -u -u -r1.1.1.6 gnu.ver
+++ external/gpl3/gcc/dist/libstdc++-v3/config/abi/pre/gnu.ver	1 Mar 2019 05:25:06 -0000
@@ -1007,7 +1007,10 @@ GLIBCXX_3.4 {
    # GLIBCXX_ABI compatibility only.
     # std::string
+    # XXXMRG this causes dupe symbols on netbsd
+#if 0
@@ -1015,7 +1018,10 @@ GLIBCXX_3.4 {

     # std::wstring
+    # XXXMRG this causes dupe symbols on netbsd
+#if 0


	i plan to commit the above change and the processing, but we
	should figure out why this is happening.




Responsible-Changed-From-To: toolchain-manager->mrg
Responsible-Changed-When: Fri, 01 Mar 2019 07:57:17 +0000
mine. mine. mine.

From: "matthew green" <>
Subject: PR/54027 CVS commit: src/external/gpl3/gcc
Date: Fri, 1 Mar 2019 08:15:23 +0000

 Module Name:	src
 Committed By:	mrg
 Date:		Fri Mar  1 08:15:23 UTC 2019

 Modified Files:
 	src/external/gpl3/gcc/dist/libstdc++-v3/config/abi/pre: gnu.ver
 	src/external/gpl3/gcc/lib/libstdc++-v3: Makefile

 Log Message:
 #if 0 the x and y symbols in GLIBCXX_3.4 namespace.  they cause
 duplicate symbols on netbsd.  see PR#54027.

 with this disabled, turn on using the symver-config.h for the
 gnu.ver processing so that other defines are handled.

 fix some depends for gnu.ver processing.

 To generate a diff of this commit:
 cvs rdiff -u -r1.1.1.6 -r1.2 \
 cvs rdiff -u -r1.44 -r1.45 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.