pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/32813: devel/pcre won't compile



>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
>Organization:
>Environment:
NetBSD arthur 2.1 NetBSD 2.1 (GENERIC) #0: Mon Oct 24 22:35:45 UTC 2005  
jmc%faith.netbsd.org@localhost:/home/builds/ab/netbsd-2-1-RELEASE/i386/200510241747Z-obj/home/builds/ab/netbsd-2-1-RELEASE/src/sys/arch/i386/compile/GENERIC
 i386

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

 g++ -c -g -O2 -I. -I. -DPOSIX_MALLOC_THRESHOLD=10 ./pcrecpp.cc  -fPIC -DPIC -o 
.libs/pcrecpp.o
In file included from pcre_stringpiece.h:48,
                 from pcrecpp.cc:45:
/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 pcrecpp.cc:45:
pcre_stringpiece.h: In constructor `pcrecpp::StringPiece::StringPiece()':
pcre_stringpiece.h:68: error: `NULL' undeclared (first use this
function)
pcre_stringpiece.h:68: error: (Each undeclared identifier is reported only once 
   for each function it appears in.)
gmake: *** [pcrecpp.o] Error 1

>How-To-Repeat:
cd /usr/pkgsrc/devel/pcre
make
>Fix:
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.




Home | Main Index | Thread Index | Old Index