From nobody@FreeBSD.org  Sun Jun  3 10:44:00 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id BEB4C106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  3 Jun 2012 10:44:00 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id A8A868FC1E
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  3 Jun 2012 10:44:00 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q53Ai03R098979
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 3 Jun 2012 10:44:00 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q53Ai0m5098978;
	Sun, 3 Jun 2012 10:44:00 GMT
	(envelope-from nobody)
Message-Id: <201206031044.q53Ai0m5098978@red.freebsd.org>
Date: Sun, 3 Jun 2012 10:44:00 GMT
From: Thomas Eberhardt <sneakywumpus@googlemail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: libsupc++ Version.map new operators size argument wrong type
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         168631
>Category:       bin
>Synopsis:       [libsupc++] [patch] libsupc++ Version.map new operators size argument wrong type
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 03 10:50:11 UTC 2012
>Closed-Date:    
>Last-Modified:  Thu Apr 17 04:39:03 UTC 2014
>Originator:     Thomas Eberhardt
>Release:        stable/9 r236438
>Organization:
>Environment:
FreeBSD clarence.ocp.lan 9.0-STABLE FreeBSD 9.0-STABLE #0 r236438M: Sat Jun  2 11:47:17 CEST 2012     thomas@clarence.ocp.lan:/usr/obj/usr/src/sys/CLARENCE  amd64
>Description:
While trying to built sysutils/apcupsd on a freshly updated stable/9 system I stumbled upon missing new/delete operators in the new shared libsupc++ library.

The missing operators are already handled in r236177 for head so i won't report these, but there seems to be a problem with the type of the size argument for the new operator, which is different in i386 and amd64 systems.

I fixed it with a glob pattern in the Version.map file on my system. Please correct me if this is the wrong fix.
>How-To-Repeat:
"portmaster sysutils/apcupsd" on stable/9 r236438

>Fix:
See the attached patch file.

Patch attached with submission follows:

Index: gnu/lib/libsupc++/Version.map
===================================================================
--- gnu/lib/libsupc++/Version.map	(revision 236438)
+++ gnu/lib/libsupc++/Version.map	(working copy)
@@ -126,6 +126,16 @@
     # __gnu_cxx::_verbose_terminate_handler()
     _ZN9__gnu_cxx27__verbose_terminate_handlerEv;
 
+    # new / delete operators
+    _Zna[jm];
+    _Zna[jm]RKSt9nothrow_t;
+    _Znw[jm];
+    _Znw[jm]RKSt9nothrow_t;
+    _ZdaPv;
+    _ZdaPvRKSt9nothrow_t;
+    _ZdlPv;
+    _ZdlPvRKSt9nothrow_t;
+
   local:
     *;
 };


>Release-Note:
>Audit-Trail:
>Unformatted:
