From nobody@FreeBSD.org  Mon Aug  6 16:05:27 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1EEE916A469
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  6 Aug 2007 16:05:27 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 1ACC713C478
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  6 Aug 2007 16:05:27 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l76G5QZC006888
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 6 Aug 2007 16:05:26 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l76G5QV3006887;
	Mon, 6 Aug 2007 16:05:26 GMT
	(envelope-from nobody)
Message-Id: <200708061605.l76G5QV3006887@www.freebsd.org>
Date: Mon, 6 Aug 2007 16:05:26 GMT
From: Coleman Kane <cokane@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: libstdc++ not installing required ext/numeric_traits.h header
X-Send-Pr-Version: www-3.0

>Number:         115250
>Category:       gnu
>Synopsis:       [libstdc++] [patch] libstdc++ not installing required ext/numeric_traits.h header
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kan
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 06 16:10:10 GMT 2007
>Closed-Date:    Thu Aug 16 23:03:13 GMT 2007
>Last-Modified:  Thu Aug 16 23:10:01 GMT 2007
>Originator:     Coleman Kane
>Release:        7.0-CURRENT
>Organization:
>Environment:
FreeBSD erwin 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Sat Jul 21 23:04:14 EDT 2007     root@erwin:/usr/obj/usr/src/sys/ERWIN  amd64
>Description:
The in-src build of the GCC 4.2.0 standard C++ library (libstdc++) is
missing a necessary header that should be installed at
/usr/include/c++/4.2/ext/numeric_traits.h. This header is required by
the random and random.tcc headers that are installed.

An attached patch adds it to the appropriate Makefile for installation.
>How-To-Repeat:
Try to compile a program with:
#include <tr1/random>

It breaks.
>Fix:
Install the file at /usr/src/contrib/libstdc++/include/ext/numeric_traits.h
into /usr/include/c++/4.2/ext/numeric_traits.h. I am attaching a patch to
the Makefile that fixes this.

Patch attached with submission follows:

--- gnu/lib/libstdc++/Makefile.orig	2007-08-06 11:55:17.000000000 -0400
+++ gnu/lib/libstdc++/Makefile	2007-08-06 11:56:23.000000000 -0400
@@ -143,10 +143,10 @@
 		stdio_filebuf.h stdio_sync_filebuf.h functional \
 		hash_map hash_set hash_fun.h hashtable.h iterator \
 		malloc_allocator.h memory mt_allocator.h new_allocator.h \
-		numeric pod_char_traits.h pool_allocator.h rb_tree rope \
-		ropeimpl.h slist throw_allocator.h typelist.h type_traits.h \
-		rc_string_base.h sso_string_base.h vstring.h vstring.tcc \
-		vstring_fwd.h vstring_util.h
+		numeric numeric_traits.h pod_char_traits.h pool_allocator.h \
+		rb_tree rope ropeimpl.h slist throw_allocator.h typelist.h \
+		type_traits.h rc_string_base.h sso_string_base.h vstring.h \
+		vstring.tcc vstring_fwd.h vstring_util.h
 
 EXTHDRS:=	${EXTHDRS:S;^;${SRCDIR}/include/ext/;}
 EXTHDRSDIR=	${CXXINCLUDEDIR}/ext


>Release-Note:
>Audit-Trail:

From: Coleman Kane <cokane@FreeBSD.org>
To: FreeBSD-gnats-submit@FreeBSD.org,  freebsd-bugs@FreeBSD.org
Cc:  
Subject: Re: gnu/115250: libstdc++ not installing required ext/numeric_traits.h
 header
Date: Mon, 06 Aug 2007 12:26:28 -0400

 [bugmeister note: the following text has been edited into the main submission]

 I accidentally stated that the following breaks:
 #include <random>
 
 That *will* always break, and is expected to.
 
 The following breakage is what is actually broken (and should be fixed):
 #include <tr1/random>
 
 won't compile.
 
 --
 Coleman Kane
 
State-Changed-From-To: open->closed 
State-Changed-By: kan 
State-Changed-When: Thu Aug 16 23:02:23 UTC 2007 
State-Changed-Why:  
Fixed, thanks. 


Responsible-Changed-From-To: freebsd-bugs->kan 
Responsible-Changed-By: kan 
Responsible-Changed-When: Thu Aug 16 23:02:23 UTC 2007 
Responsible-Changed-Why:  
Fixed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115250 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: gnu/115250: commit references a PR
Date: Thu, 16 Aug 2007 23:02:33 +0000 (UTC)

 kan         2007-08-16 23:02:00 UTC
 
   FreeBSD src repository
 
   Modified files:
     gnu/lib/libstdc++    Makefile 
   Log:
   Install etx/numeric_traits.h.
   
   PR:             gnu/115250
   Approved by:    re (blanket)
   
   Revision  Changes    Path
   1.61      +4 -4      src/gnu/lib/libstdc++/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
