Date: Mon, 6 Aug 2007 16:05:26 GMT From: Coleman Kane <cokane@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: gnu/115250: libstdc++ not installing required ext/numeric_traits.h header Message-ID: <200708061605.l76G5QV3006887@www.freebsd.org> Resent-Message-ID: <200708061610.l76GABjr050152@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 115250
>Category: gnu
>Synopsis: libstdc++ not installing required ext/numeric_traits.h header
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Aug 06 16:10:10 GMT 2007
>Closed-Date:
>Last-Modified:
>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 <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:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708061605.l76G5QV3006887>
