Subject: pkg/31327: devel/pcre-6.3 does not build
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <zafer@gmx.org>
List: pkgsrc-bugs
Date: 09/16/2005 12:45:00
>Number:         31327
>Category:       pkg
>Synopsis:       devel/pcre-6.3 does not build
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 16 12:45:00 +0000 2005
>Originator:     Zafer Aydogan
>Release:        2.0
>Organization:
>Environment:
2.0 i386
>Description:
devel/pcre does not build.

...
In file included from pcre_stringpiece.h:47,
                 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'
/usr/include/g++/bits/type_traits.h:91: error: previous definition of `struct
   __false_type'
/usr/include/g++/type_traits.h:62: error: redefinition of `struct
   __type_traits<_Tp>'
/usr/include/g++/bits/type_traits.h:94: error: previous definition of `struct
   __type_traits<_Tp>'
/usr/include/g++/type_traits.h:96: error: redefinition of `struct
   __type_traits<bool>'
/usr/include/g++/bits/type_traits.h:123: error: previous definition of `struct
   __type_traits<bool>'
/usr/include/g++/type_traits.h:106: error: redefinition of `struct
   __type_traits<char>'
/usr/include/g++/bits/type_traits.h:131: error: previous definition of `struct
   __type_traits<char>'
/usr/include/g++/type_traits.h:114: error: redefinition of `struct
   __type_traits<signed char>'
/usr/include/g++/bits/type_traits.h:139: error: previous definition of `struct
   __type_traits<signed char>'
/usr/include/g++/type_traits.h:122: error: redefinition of `struct
   __type_traits<unsigned char>'
/usr/include/g++/bits/type_traits.h:147: error: previous definition of `struct
   __type_traits<unsigned char>'
/usr/include/g++/type_traits.h:132: error: redefinition of `struct
   __type_traits<wchar_t>'
/usr/include/g++/bits/type_traits.h:155: error: previous definition of `struct
   __type_traits<wchar_t>'
/usr/include/g++/type_traits.h:142: error: redefinition of `struct
   __type_traits<short int>'
/usr/include/g++/bits/type_traits.h:163: error: previous definition of `struct
   __type_traits<short int>'
/usr/include/g++/type_traits.h:150: error: redefinition of `struct
   __type_traits<short unsigned int>'
/usr/include/g++/bits/type_traits.h:171: error: previous definition of `struct
   __type_traits<short unsigned int>'
/usr/include/g++/type_traits.h:158: error: redefinition of `struct
   __type_traits<int>'
/usr/include/g++/bits/type_traits.h:179: error: previous definition of `struct
   __type_traits<int>'
/usr/include/g++/type_traits.h:166: error: redefinition of `struct
   __type_traits<unsigned int>'
/usr/include/g++/bits/type_traits.h:187: error: previous definition of `struct
   __type_traits<unsigned int>'
/usr/include/g++/type_traits.h:174: error: redefinition of `struct
   __type_traits<long int>'
/usr/include/g++/bits/type_traits.h:195: error: previous definition of `struct
   __type_traits<long int>'
/usr/include/g++/type_traits.h:182: error: redefinition of `struct
   __type_traits<long unsigned int>'
/usr/include/g++/bits/type_traits.h:203: error: previous definition of `struct
   __type_traits<long unsigned int>'
/usr/include/g++/type_traits.h:192: error: redefinition of `struct
   __type_traits<long long int>'
/usr/include/g++/bits/type_traits.h:211: error: previous definition of `struct
   __type_traits<long long int>'
/usr/include/g++/type_traits.h:200: error: redefinition of `struct
   __type_traits<long long unsigned int>'
/usr/include/g++/bits/type_traits.h:219: error: previous definition of `struct
   __type_traits<long long unsigned int>'
/usr/include/g++/type_traits.h:210: error: redefinition of `struct
   __type_traits<float>'
/usr/include/g++/bits/type_traits.h:227: error: previous definition of `struct
   __type_traits<float>'
/usr/include/g++/type_traits.h:218: error: redefinition of `struct
   __type_traits<double>'
/usr/include/g++/bits/type_traits.h:235: error: previous definition of `struct
   __type_traits<double>'
/usr/include/g++/type_traits.h:226: error: redefinition of `struct
   __type_traits<long double>'
/usr/include/g++/bits/type_traits.h:243: error: previous definition of `struct
   __type_traits<long double>'
/usr/include/g++/type_traits.h:237: error: redefinition of `struct
   __type_traits<_Tp*>'
/usr/include/g++/bits/type_traits.h:252: error: previous definition of `struct
   __type_traits<_Tp*>'
/usr/include/g++/type_traits.h:301: error: redefinition of `struct
   _Is_integer<_Tp>'
/usr/include/g++/bits/type_traits.h:264: error: previous definition of `struct
   _Is_integer<_Tp>'
/usr/include/g++/type_traits.h:307: error: redefinition of `struct
   _Is_integer<bool>'
/usr/include/g++/bits/type_traits.h:268: error: previous definition of `struct
   _Is_integer<bool>'
/usr/include/g++/type_traits.h:313: error: redefinition of `struct
   _Is_integer<char>'
/usr/include/g++/bits/type_traits.h:272: error: previous definition of `struct
   _Is_integer<char>'
/usr/include/g++/type_traits.h:317: error: redefinition of `struct
   _Is_integer<signed char>'
/usr/include/g++/bits/type_traits.h:276: error: previous definition of `struct
   _Is_integer<signed char>'
/usr/include/g++/type_traits.h:321: error: redefinition of `struct
   _Is_integer<unsigned char>'
/usr/include/g++/bits/type_traits.h:280: error: previous definition of `struct
   _Is_integer<unsigned char>'
/usr/include/g++/type_traits.h:327: error: redefinition of `struct
   _Is_integer<wchar_t>'
/usr/include/g++/bits/type_traits.h:284: error: previous definition of `struct
   _Is_integer<wchar_t>'
/usr/include/g++/type_traits.h:333: error: redefinition of `struct
   _Is_integer<short int>'
/usr/include/g++/bits/type_traits.h:288: error: previous definition of `struct
   _Is_integer<short int>'
/usr/include/g++/type_traits.h:337: error: redefinition of `struct
   _Is_integer<short unsigned int>'
/usr/include/g++/bits/type_traits.h:292: error: previous definition of `struct
   _Is_integer<short unsigned int>'
/usr/include/g++/type_traits.h:341: error: redefinition of `struct
   _Is_integer<int>'
/usr/include/g++/bits/type_traits.h:296: error: previous definition of `struct
   _Is_integer<int>'
/usr/include/g++/type_traits.h:345: error: redefinition of `struct
   _Is_integer<unsigned int>'
/usr/include/g++/bits/type_traits.h:300: error: previous definition of `struct
   _Is_integer<unsigned int>'
/usr/include/g++/type_traits.h:349: error: redefinition of `struct
   _Is_integer<long int>'
/usr/include/g++/bits/type_traits.h:304: error: previous definition of `struct
   _Is_integer<long int>'
/usr/include/g++/type_traits.h:353: error: redefinition of `struct
   _Is_integer<long unsigned int>'
/usr/include/g++/bits/type_traits.h:308: error: previous definition of `struct
   _Is_integer<long unsigned int>'
/usr/include/g++/type_traits.h:359: error: redefinition of `struct
   _Is_integer<long long int>'
/usr/include/g++/type_traits.h:345: error: redefinition of `struct
   _Is_integer<unsigned int>'
/usr/include/g++/bits/type_traits.h:300: error: previous definition of `struct
   _Is_integer<unsigned int>'
/usr/include/g++/type_traits.h:349: error: redefinition of `struct
   _Is_integer<long int>'
/usr/include/g++/bits/type_traits.h:304: error: previous definition of `struct
   _Is_integer<long int>'
/usr/include/g++/type_traits.h:353: error: redefinition of `struct
   _Is_integer<long unsigned int>'
/usr/include/g++/bits/type_traits.h:308: error: previous definition of `struct
   _Is_integer<long unsigned int>'
/usr/include/g++/type_traits.h:359: error: redefinition of `struct
   _Is_integer<long long int>'
/usr/include/g++/bits/type_traits.h:312: error: previous definition of `struct
   _Is_integer<long long int>'
/usr/include/g++/type_traits.h:363: error: redefinition of `struct
   _Is_integer<long long unsigned int>'
/usr/include/g++/bits/type_traits.h:316: error: previous definition of `struct
   _Is_integer<long long unsigned int>'
In file included from pcrecpp.cc:45:
pcre_stringpiece.h: In constructor `pcrecpp::StringPiece::StringPiece()':
pcre_stringpiece.h:67: error: `NULL' undeclared (first use this function)
pcre_stringpiece.h:67: error: (Each undeclared identifier is reported only once
   for each function it appears in.)
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/pcre/work/pcre-6.3
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/pcre
===>
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /usr/pkgsrc/devel/pcre/work/.work.log
===>
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/pcre

>How-To-Repeat:
cd devel/pcre && make 
>Fix: