Dear all of PCRE developpers.
Now, I'm building pcre-8.32 on NetBSD 6.0.1, using gcc & g++ v4.5.3.
To build & install it, I have typed simply 'configure' and 'make'.
However, several errors as below occured and stopped building.
As reading errormsgs, NULL symbol isn't defined in several (C++) modules.
Then, I inspected these modules, but 'stdio.h' (which usually defines NULL
symbol) is correctly included...
Does anyone have solutions to do with my problematic building?
*error messages are as below.
Please help us.
phony@??? : I'm one of UNIX freak, from Japan.
make all-am
make[1]: Entering directory `/usr/home/a_goto/compile/pcre-8.32'
CXX libpcrecpp_la-pcrecpp.lo
In file included from pcrecpp.h:338:0,
from pcrecpp.cc:48:
./pcre_stringpiece.h: In constructor 'pcrecpp::StringPiece::StringPiece()':
./pcre_stringpiece.h:71:12: error: 'NULL' was not declared in this scope
./pcre_stringpiece.h: In member function 'void
pcrecpp::StringPiece::clear()':
./pcre_stringpiece.h:92:25: error: 'NULL' was not declared in this scope
In file included from pcrecpp.cc:48:0:
pcrecpp.h: In constructor 'pcrecpp::RE::RE(const std::string&)':
pcrecpp.h:491:37: error: 'NULL' was not declared in this scope
pcrecpp.h: In constructor 'pcrecpp::RE::RE(const char*)':
pcrecpp.h:493:35: error: 'NULL' was not declared in this scope
pcrecpp.h: In constructor 'pcrecpp::RE::RE(const unsigned char*)':
pcrecpp.h:496:46: error: 'NULL' was not declared in this scope
pcrecpp.cc: At global scope:
pcrecpp.cc:59:23: error: 'NULL' was not declared in this scope
pcrecpp.cc: In member function 'void pcrecpp::RE::Init(const std::string&,
const pcrecpp::RE_Options*)':
pcrecpp.cc:85:18: error: 'NULL' was not declared in this scope
pcrecpp.cc:91:14: error: 'NULL' was not declared in this scope
pcrecpp.cc: In member function 'void pcrecpp::RE::Cleanup()':
pcrecpp.cc:101:19: error: 'NULL' was not declared in this scope
pcrecpp.cc:102:22: error: 'NULL' was not declared in this scope
pcrecpp.cc: In member function 'pcre*
pcrecpp::RE::Compile(pcrecpp::RE::Anchor)':
pcrecpp.cc:134:49: error: 'NULL' was not declared in this scope
pcrecpp.cc:142:49: error: 'NULL' was not declared in this scope
pcrecpp.cc:144:13: error: 'NULL' was not declared in this scope
pcrecpp.cc: In function 'int pcrecpp::NewlineMode(int)':
pcrecpp.cc:376:7: error: 'NULL' was not declared in this scope
pcrecpp.cc: In member function 'int pcrecpp::RE::TryMatch(const
pcrecpp::StringPiece&, int, pcrecpp::RE::Anchor, bool, int*, int) const':
pcrecpp.cc:509:13: error: 'NULL' was not declared in this scope
pcrecpp.cc:535:38: error: 'NULL' was not declared in this scope
pcrecpp.cc: In member function 'bool pcrecpp::RE::DoMatchImpl(const
pcrecpp::StringPiece&, pcrecpp::RE::Anchor, int*, const pcrecpp::Arg*
const*, int, int*, int) const':
pcrecpp.cc:575:25: error: 'NULL' was not declared in this scope
pcrecpp.cc: In member function 'int pcrecpp::RE::NumberOfCapturingGroups()
const':
pcrecpp.cc:649:22: error: 'NULL' was not declared in this scope
pcrecpp.cc:653:35: error: 'NULL' was not declared in this scope
pcrecpp.cc: In static member function 'static bool
pcrecpp::Arg::parse_null(const char*, int, void*)':
pcrecpp.cc:664:19: error: 'NULL' was not declared in this scope
pcrecpp.cc: In static member function 'static bool
pcrecpp::Arg::parse_string(const char*, int, void*)':
pcrecpp.cc:668:15: error: 'NULL' was not declared in this scope
pcrecpp.cc: In static member function 'static bool
pcrecpp::Arg::parse_stringpiece(const char*, int, void*)':
pcrecpp.cc:674:15: error: 'NULL' was not declared in this scope
pcrecpp.cc: In static member function 'static bool
pcrecpp::Arg::parse_char(const char*, int, void*)':
pcrecpp.cc:681:15: error: 'NULL' was not declared in this scope
pcrecpp.cc: In static member function 'static bool
pcrecpp::Arg::parse_uchar(const char*, int, void*)':
pcrecpp.cc:688:15: error: 'NULL' was not declared in this scope
pcrecpp.cc: In static member function 'static bool
pcrecpp::Arg::parse_long_radix(const char*, int, void*, int)':
pcrecpp.cc:737:15: error: 'NULL' was not declared in this scope
pcrecpp.cc: In static member function 'static bool
pcrecpp::Arg::parse_ulong_radix(const char*, int, void*, int)':
pcrecpp.cc:755:15: error: 'NULL' was not declared in this scope
pcrecpp.cc: In static member function 'static bool
pcrecpp::Arg::parse_short_radix(const char*, int, void*, int)':
pcrecpp.cc:767:15: error: 'NULL' was not declared in this scope
pcrecpp.cc: In static member function 'static bool
pcrecpp::Arg::parse_ushort_radix(const char*, int, void*, int)':
pcrecpp.cc:779:15: error: 'NULL' was not declared in this scope
pcrecpp.cc: In static member function 'static bool
pcrecpp::Arg::parse_int_radix(const char*, int, void*, int)':
pcrecpp.cc:791:15: error: 'NULL' was not declared in this scope
pcrecpp.cc: In static member function 'static bool
pcrecpp::Arg::parse_uint_radix(const char*, int, void*, int)':
pcrecpp.cc:803:15: error: 'NULL' was not declared in this scope
pcrecpp.cc: In static member function 'static bool
pcrecpp::Arg::parse_longlong_radix(const char*, int, void*, int)':
pcrecpp.cc:833:15: error: 'NULL' was not declared in this scope
pcrecpp.cc: In static member function 'static bool
pcrecpp::Arg::parse_ulonglong_radix(const char*, int, void*, int)':
pcrecpp.cc:865:15: error: 'NULL' was not declared in this scope
pcrecpp.cc: In static member function 'static bool
pcrecpp::Arg::parse_double(const char*, int, void*)':
pcrecpp.cc:883:15: error: 'NULL' was not declared in this scope
pcrecpp.cc: In static member function 'static bool
pcrecpp::Arg::parse_float(const char*, int, void*)':
pcrecpp.cc:891:15: error: 'NULL' was not declared in this scope
make[1]: *** [libpcrecpp_la-pcrecpp.lo] Error 1
make[1]: Leaving directory `/usr/home/a_goto/compile/pcre-8.32'
make: *** [all] Error 2