Subject: PCRE compile failure
To: None <pkgsrc-users@netbsd.org>
From: Chris Jones <chris@cjones.org>
List: pkgsrc-users
Date: 12/04/2007 12:10:16
Hi folks--

I'm having trouble compiling devel/pcre on NetBSD/i386 3.1. I get the 
following:

/bin/sh ./libtool --tag=CXX    --mode=compile c++ -DHAVE_CONFIG_H 
-I.      -O2 -MT pcrecpp.lo -MD -MP -MF .deps/pcrecpp.Tpo -c -o 
pcrecpp.lo pcrecpp.cc
 c++ -DHAVE_CONFIG_H -I. -O2 -MT pcrecpp.lo -MD -MP -MF 
.deps/pcrecpp.Tpo -c pcrecpp.cc  -fPIC -DPIC -o .libs/pcrecpp.o
In file included from pcre_stringpiece.h:47,
                 from pcrecpp.h:338,
                 from pcrecpp.cc:47:
/usr/include/g++/type_traits.h:55: error: redefinition of `struct 
__true_type'
/usr/include/g++/bits/type_traits.h:90: error: previous definition of 
`struct
   __true_type'

followed by many more redefinition errors between the two instances of 
type_traits.h.

Has anybody else seen this? What should I try to resolve it?

Chris