Subject: pkg/32813: devel/pcre won't compile
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 02/13/2006 06:00:00
>Number:         32813
>Category:       pkg
>Synopsis:       devel/pcre won't compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 13 06:00:00 +0000 2006
>Originator:     David Griffith
>Release:        NetBSD 2.1
NetBSD arthur 2.1 NetBSD 2.1 (GENERIC) #0: Mon Oct 24 22:35:45 UTC 2005 i386

Compiling devel/pcre (version 6.6) yields the following:

 g++ -c -g -O2 -I. -I. -DPOSIX_MALLOC_THRESHOLD=10 ./  -fPIC -DPIC -o .libs/pcrecpp.o
In file included from pcre_stringpiece.h:48,
/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'
/usr/include/g++/type_traits.h:58: error: redefinition of `struct __false_type'
[snip lots of the same sort of thing]
In file included from
pcre_stringpiece.h: In constructor `pcrecpp::StringPiece::StringPiece()':
pcre_stringpiece.h:68: error: `NULL' undeclared (first use this
pcre_stringpiece.h:68: error: (Each undeclared identifier is reported only once 
   for each function it appears in.)
gmake: *** [pcrecpp.o] Error 1

cd /usr/pkgsrc/devel/pcre
At first this seemed to be a silly forgotten #include, but the problem looks a bit more subtle.  That "NULL undeclared" has me most puzzled.