Subject: pkg/32236: devel/pcre fails to build on Cobalt Qube 2
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <netbsd@minimal.cx>
List: pkgsrc-bugs
Date: 12/04/2005 13:20:00
>Number: 32236
>Category: pkg
>Synopsis: devel/pcre fails to build on Cobalt Qube 2
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 04 13:20:00 +0000 2005
>Originator: Ian Spray
>Release: 3.0 RC5
>Organization:
>Environment:
NetBSD iws-50.cambridge 3.0_RC5 NetBSD 3.0_RC5 (GENERIC) #0: Wed Nov 30 23:39:30 UTC 2005 builds@b3.netbsd.org:/home/builds/ab/netbsd-3-0-RC5/cobalt/200511302123Z-obj/home/builds/ab/netbsd-3-0-RC5/src/sys/arch/cobalt/compile/GENERIC cobalt
>Description:
The package devel/pcre v6.4nb1 (from a pkgsrc tarball dated December 3, 03:35) will not build on a Cobalt Qube 2 due to duplicate trait definitions.
>How-To-Repeat:
cd /usr/pkgsrc/devel/pcre
make
>Fix:
Remove the #include <type_traits.h> lines from pcre_stringpiece.h. The following patch fixes the build, but has not been tested on any other ports:
--- work/pcre-6.4/pcre_stringpiece.h 2005-12-04 12:07:04.000000000 +0000
+++ work/pcre-6.4/pcre_stringpiece.h 2005-12-04 11:59:48.000000000 +0000
@@ -42,13 +42,7 @@
#include <string>
#include <iosfwd> // for ostream forward-declaration
-#if 1
#define HAVE_TYPE_TRAITS
-#include <type_traits.h>
-#elif 1
-#define HAVE_TYPE_TRAITS
-#include <bits/type_traits.h>
-#endif using std::string;