gnu/115250: libstdc++ not installing required ext/numeric_traits.h
header
Coleman Kane
cokane at FreeBSD.org
Mon Aug 6 09:10:12 PDT 2007
>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 at 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:
More information about the freebsd-bugs
mailing list