+ local run_cmd + run_cmd=run_su + shift + run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/cre2-0.3.6nb4/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/cre2-0.3.6nb4/work.log ===> Building for cre2-0.3.6nb4 /usr/pkg/bin/gmake all-am gmake[1]: Entering directory '/home/pbulk/build/devel/cre2/work/cre2-0.3.6' gmake[2]: Entering directory '/home/pbulk/build/devel/cre2/work/cre2-0.3.6' gmake[2]: Leaving directory '/home/pbulk/build/devel/cre2/work/cre2-0.3.6' /bin/sh ./libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I./src -I/usr/pkg/include -pthread -I/usr/pkg/include -DNOMINMAX -pipe -O2 -I/usr/pkg/include -MT src/libcre2_la-cre2.lo -MD -MP -MF src/.deps/libcre2_la-cre2.Tpo -c -o src/libcre2_la-cre2.lo `test -f 'src/cre2.cpp' || echo './'`src/cre2.cpp Updating ./doc/version.texi restore=: && backupdir=".am$$" && \ am__cwd=`pwd` && CDPATH="${ZSH_VERSION+.}:" && cd . && \ rm -rf $backupdir && mkdir $backupdir && \ if (/home/pbulk/build/devel/cre2/work/.tools/bin/makeinfo --version) >/dev/null 2>&1; then \ for f in doc/cre2.info doc/cre2.info-[0-9] doc/cre2.info-[0-9][0-9] doc/cre2.i[0-9] doc/cre2.i[0-9][0-9]; do \ if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \ done; \ else :; fi && \ cd "$am__cwd"; \ if /home/pbulk/build/devel/cre2/work/.tools/bin/makeinfo --no-split -I doc -I ./doc \ -o doc/cre2.info ./doc/cre2.texi; \ then \ rc=0; \ CDPATH="${ZSH_VERSION+.}:" && cd .; \ else \ rc=$?; \ CDPATH="${ZSH_VERSION+.}:" && cd . && \ $restore $backupdir/* `echo "./doc/cre2.info" | sed 's|[^/]*$||'`; \ fi; \ rm -rf $backupdir; exit $rc libtool: compile: c++ -DHAVE_CONFIG_H -I. -I./src -I/home/pbulk/build/devel/cre2/work/.buildlink/include -pthread -DNOMINMAX -pipe -O2 -MT src/libcre2_la-cre2.lo -MD -MP -MF src/.deps/libcre2_la-cre2.Tpo -c src/cre2.cpp -fPIC -DPIC -o src/.libs/libcre2_la-cre2.o In file included from /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/base/config.h:92, from /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/base/attributes.h:39, from /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/base/call_once.h:35, from /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:220, from src/cre2.cpp:15: /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/base/policy_checks.h:81:2: error: #error "C++ versions less than C++17 are not supported." 81 | #error "C++ versions less than C++17 are not supported." | ^~~~~ In file included from /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:220, from src/cre2.cpp:15: /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/base/call_once.h: In function 'void absl::lts_20250512::base_internal::CallOnceImpl(std::atomic*, absl::lts_20250512::base_internal::SchedulingMode, Callable&&, Args&& ...)': /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/base/call_once.h:184:10: error: 'invoke' is not a member of 'std' 184 | std::invoke(std::forward(fn), std::forward(args)...); | ^~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/base/call_once.h:184:10: note: 'std::invoke' is only available from C++17 onwards In file included from /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:221, from src/cre2.cpp:15: /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/strings/string_view.h: At global scope: /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/strings/string_view.h:53:26: error: 'string_view' in namespace 'std' does not name a type 53 | using string_view = std::string_view; | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/strings/string_view.h:53:21: note: 'std::string_view' is only available from C++17 onwards 53 | using string_view = std::string_view; | ^~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/strings/string_view.h:748:8: error: 'string_view' does not name a type 748 | inline string_view ClippedSubstr(string_view s, size_t pos, | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/strings/string_view.h:759:11: error: 'string_view' does not name a type 759 | constexpr string_view NullSafeStringView(const char* absl_nullable p) { | ^~~~~~~~~~~ In file included from /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/utility/utility.h:26, from /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/types/optional.h:29, from /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:222, from src/cre2.cpp:15: /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/meta/type_traits.h:125:12: error: 'conjunction' has not been declared in 'std' 125 | using std::conjunction; | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/meta/type_traits.h:128:12: error: 'disjunction' has not been declared in 'std' 128 | using std::disjunction; | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/meta/type_traits.h:140:12: error: 'negation' has not been declared in 'std' 140 | using std::negation; | ^~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/meta/type_traits.h:470:21: error: expected template-name before '<' token 470 | : absl::negation {}; | ^ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/meta/type_traits.h:470:21: error: expected '{' before '<' token /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/meta/type_traits.h:517:20: error: 'basic_string_view' is not a member of 'std' 517 | struct IsView> : std::true_type {}; | ^~~~~~~~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/meta/type_traits.h:517:20: note: 'std::basic_string_view' is only available from C++17 onwards /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/meta/type_traits.h:517:20: error: 'basic_string_view' is not a member of 'std' /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/meta/type_traits.h:517:20: note: 'std::basic_string_view' is only available from C++17 onwards /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/meta/type_traits.h:517:44: error: wrong number of template arguments (2, should be 1) 517 | struct IsView> : std::true_type {}; | ^~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/meta/type_traits.h:513:8: note: provided for 'template struct absl::lts_20250512::type_traits_internal::IsView' 513 | struct IsView : std::integral_constant::value || | ^~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/meta/type_traits.h:517:50: error: expected unqualified-id before '>' token 517 | struct IsView> : std::true_type {}; | ^~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/meta/type_traits.h:532:41: error: 'conjunction' in namespace 'absl' does not name a template type 532 | using IsLifetimeBoundAssignment = absl::conjunction< | ^~~~~~~~~~~ In file included from /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/types/optional.h:29, from /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:222, from src/cre2.cpp:15: /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/utility/utility.h:35:12: error: 'apply' has not been declared in 'std' 35 | using std::apply; | ^~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/utility/utility.h:38:12: error: 'in_place' has not been declared in 'std' 38 | using std::in_place; | ^~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/utility/utility.h:39:12: error: 'in_place_index' has not been declared in 'std' 39 | using std::in_place_index; | ^~~~~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/utility/utility.h:40:12: error: 'in_place_index_t' has not been declared in 'std' 40 | using std::in_place_index_t; | ^~~~~~~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/utility/utility.h:41:12: error: 'in_place_t' has not been declared in 'std' 41 | using std::in_place_t; | ^~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/utility/utility.h:42:12: error: 'in_place_type' has not been declared in 'std' 42 | using std::in_place_type; | ^~~~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/utility/utility.h:43:12: error: 'in_place_type_t' has not been declared in 'std' 43 | using std::in_place_type_t; | ^~~~~~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/utility/utility.h:47:12: error: 'make_from_tuple' has not been declared in 'std' 47 | using std::make_from_tuple; | ^~~~~~~~~~~~~~~ In file included from /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:222, from src/cre2.cpp:15: /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/types/optional.h:33:12: error: 'bad_optional_access' has not been declared in 'std' 33 | using std::bad_optional_access; | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/types/optional.h:34:12: error: 'optional' has not been declared in 'std' 34 | using std::optional; | ^~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/types/optional.h:35:12: error: 'make_optional' has not been declared in 'std' 35 | using std::make_optional; | ^~~~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/types/optional.h:36:12: error: 'nullopt_t' has not been declared in 'std' 36 | using std::nullopt_t; | ^~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/absl/types/optional.h:37:12: error: 'nullopt' has not been declared in 'std' 37 | using std::nullopt; | ^~~~~~~ In file included from /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:223, from src/cre2.cpp:15: /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/stringpiece.h:14:27: error: 'string_view' in namespace 'absl' does not name a type 14 | using StringPiece = absl::string_view; | ^~~~~~~~~~~ In file included from src/cre2.cpp:15: /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:288:24: error: expected ')' before 'pattern' 288 | RE2(absl::string_view pattern); | ~ ^~~~~~~~ | ) /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:289:24: error: expected ')' before 'pattern' 289 | RE2(absl::string_view pattern, const Options& options); | ~ ^~~~~~~~ | ) /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:348:32: error: 'absl::string_view' has not been declared 348 | static bool FullMatchN(absl::string_view text, const RE2& re, | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:350:35: error: 'absl::string_view' has not been declared 350 | static bool PartialMatchN(absl::string_view text, const RE2& re, | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:352:30: error: 'absl::string_view' has not been declared 352 | static bool ConsumeN(absl::string_view* input, const RE2& re, | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:354:37: error: 'absl::string_view' has not been declared 354 | static bool FindAndConsumeN(absl::string_view* input, const RE2& re, | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:411:31: error: 'absl::string_view' has not been declared 411 | static bool FullMatch(absl::string_view text, const RE2& re, A&&... a) { | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:427:34: error: 'absl::string_view' has not been declared 427 | static bool PartialMatch(absl::string_view text, const RE2& re, A&&... a) { | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:445:29: error: 'absl::string_view' has not been declared 445 | static bool Consume(absl::string_view* input, const RE2& re, A&&... a) { | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:463:36: error: 'absl::string_view' has not been declared 463 | static bool FindAndConsume(absl::string_view* input, const RE2& re, A&&... a) { | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:482:29: error: 'absl::string_view' has not been declared 482 | absl::string_view rewrite); | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:499:34: error: 'absl::string_view' has not been declared 499 | absl::string_view rewrite); | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:509:29: error: 'absl::string_view' has not been declared 509 | static bool Extract(absl::string_view text, | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:511:29: error: 'absl::string_view' has not been declared 511 | absl::string_view rewrite, | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:520:38: error: 'absl::string_view' has not been declared 520 | static std::string QuoteMeta(absl::string_view unquoted); | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:585:20: error: 'absl::string_view' has not been declared 585 | bool Match(absl::string_view text, | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:589:20: error: 'absl::string_view' has not been declared 589 | absl::string_view* submatch, | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:600:33: error: 'absl::string_view' has not been declared 600 | bool CheckRewriteString(absl::string_view rewrite, | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:605:32: error: 'absl::string_view' has not been declared 605 | static int MaxSubmatch(absl::string_view rewrite); | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:613:22: error: 'absl::string_view' has not been declared 613 | absl::string_view rewrite, | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:614:28: error: 'string_view' in namespace 'absl' does not name a type 614 | const absl::string_view* vec, | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:773:19: error: 'absl::string_view' has not been declared 773 | void Init(absl::string_view pattern, const Options& options); | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:775:22: error: 'absl::string_view' has not been declared 775 | bool DoMatch(absl::string_view text, | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:821:36: error: 'string_view' is not a member of 'absl' 821 | template <> struct Parse3ary : public std::true_type {}; | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:821:36: error: 'string_view' is not a member of 'absl' /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:821:47: error: template argument 1 is invalid 821 | template <> struct Parse3ary : public std::true_type {}; | ^ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:846:46: error: 'optional' is not a member of 'absl' 846 | template struct Parse3ary> : public Parse3ary {}; | ^~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:846:46: error: 'optional' is not a member of 'absl' /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:846:55: error: template argument 1 is invalid 846 | template struct Parse3ary> : public Parse3ary {}; | ^ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:846:56: error: expected unqualified-id before '>' token 846 | template struct Parse3ary> : public Parse3ary {}; | ^~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:847:46: error: 'optional' is not a member of 'absl' 847 | template struct Parse4ary> : public Parse4ary {}; | ^~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:847:46: error: 'optional' is not a member of 'absl' /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:847:55: error: template argument 1 is invalid 847 | template struct Parse4ary> : public Parse4ary {}; | ^ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:847:56: error: expected unqualified-id before '>' token 847 | template struct Parse4ary> : public Parse4ary {}; | ^~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:850:45: error: 'absl::optional' has not been declared 850 | bool Parse(const char* str, size_t n, absl::optional* dest) { | ^~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:850:53: error: expected ',' or '...' before '<' token 850 | bool Parse(const char* str, size_t n, absl::optional* dest) { | ^ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h: In function 'bool re2::re2_internal::Parse(const char*, size_t, int)': /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:852:9: error: 'dest' was not declared in this scope 852 | if (dest != NULL) | ^~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:858:9: error: 'dest' was not declared in this scope 858 | if (dest != NULL) | ^~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h: At global scope: /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:866:45: error: 'absl::optional' has not been declared 866 | bool Parse(const char* str, size_t n, absl::optional* dest, int radix) { | ^~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:866:53: error: expected ',' or '...' before '<' token 866 | bool Parse(const char* str, size_t n, absl::optional* dest, int radix) { | ^ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:866:6: error: redefinition of 'template bool re2::re2_internal::Parse(const char*, size_t, int)' 866 | bool Parse(const char* str, size_t n, absl::optional* dest, int radix) { | ^~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:850:6: note: 'template bool re2::re2_internal::Parse(const char*, size_t, int)' previously declared here 850 | bool Parse(const char* str, size_t n, absl::optional* dest) { | ^~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h: In static member function 'static void re2::LazyRE2::Init(const re2::LazyRE2*)': /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:1015:68: error: no matching function for call to 're2::RE2::RE2(const char* const&, const re2::RE2::CannedOptions&)' 1015 | lazy_re2->ptr_ = new RE2(lazy_re2->pattern_, lazy_re2->options_); | ^ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:287:3: note: candidate: 're2::RE2::RE2(const string&)' 287 | RE2(const std::string& pattern); | ^~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:287:3: note: candidate expects 1 argument, 2 provided /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:286:3: note: candidate: 're2::RE2::RE2(const char*)' 286 | RE2(const char* pattern); | ^~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/re2.h:286:3: note: candidate expects 1 argument, 2 provided In file included from src/cre2.cpp:16: /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/set.h: At global scope: /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/set.h:54:17: error: 'absl::string_view' has not been declared 54 | int Add(absl::string_view pattern, std::string* error); | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/set.h:70:20: error: 'absl::string_view' has not been declared 70 | bool Match(absl::string_view text, std::vector* v) const; | ^~~~~~~~~~~ /home/pbulk/build/devel/cre2/work/.buildlink/include/re2/set.h:75:20: error: 'absl::string_view' has not been declared 75 | bool Match(absl::string_view text, std::vector* v, | ^~~~~~~~~~~ src/cre2.cpp: In function 'cre2_regexp_t* cre2_new(const char*, int, const cre2_options_t*)': src/cre2.cpp:148:8: error: 'StringPiece' is not a member of 're2' 148 | re2::StringPiece pattern_re2(pattern, pattern_len); | ^~~~~~~~~~~ src/cre2.cpp:154:31: error: 'pattern_re2' was not declared in this scope; did you mean 'pattern_len'? 154 | (new (std::nothrow) RE2(pattern_re2, *reinterpret_cast(opt))); | ^~~~~~~~~~~ | pattern_len src/cre2.cpp:156:60: error: 'pattern_re2' was not declared in this scope; did you mean 'pattern_len'? 156 | return reinterpret_cast (new (std::nothrow) RE2(pattern_re2)); | ^~~~~~~~~~~ | pattern_len src/cre2.cpp: In function 'int cre2_match(const cre2_regexp_t*, const char*, int, int, int, cre2_anchor_t, cre2_string_t*, int)': src/cre2.cpp:238:8: error: 'StringPiece' is not a member of 're2' 238 | re2::StringPiece text_re2(text, textlen); | ^~~~~~~~~~~ src/cre2.cpp:239:20: error: 'StringPiece' is not a member of 're2' 239 | std::vector match_re2(nmatch); | ^~~~~~~~~~~ src/cre2.cpp:239:20: error: 'StringPiece' is not a member of 're2' src/cre2.cpp:239:31: error: template argument 1 is invalid 239 | std::vector match_re2(nmatch); | ^ src/cre2.cpp:239:31: error: template argument 2 is invalid src/cre2.cpp:243:36: error: 'text_re2' was not declared in this scope 243 | retval = TO_CONST_RE2(re)->Match(text_re2, startpos, endpos, anchor_re2, match_re2.data(), nmatch); | ^~~~~~~~ src/cre2.cpp:243:86: error: request for member 'data' in 'match_re2', which is of non-class type 'int' 243 | retval = TO_CONST_RE2(re)->Match(text_re2, startpos, endpos, anchor_re2, match_re2.data(), nmatch); | ^~~~ src/cre2.cpp:246:34: error: invalid types 'int[int]' for array subscript 246 | match[i].data = match_re2[i].data(); | ^ src/cre2.cpp:247:34: error: invalid types 'int[int]' for array subscript 247 | match[i].length = match_re2[i].length(); | ^ src/cre2.cpp: In function 'int cre2_full_match(const char*, const cre2_string_t*, cre2_string_t*, int)': src/cre2.cpp:299:10: error: 'StringPiece' is not a member of 're2' 299 | re2::StringPiece input(text->data, text->length); \ | ^~~~~~~~~~~ src/cre2.cpp:318:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN' 318 | DEFINE_MATCH_ZSTRING_FUN(cre2_full_match,FullMatchN) | ^~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:300:22: error: 'StringPiece' is not a member of 're2' 300 | std::vector strv(nmatch); \ | ^~~~~~~~~~~ src/cre2.cpp:318:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN' 318 | DEFINE_MATCH_ZSTRING_FUN(cre2_full_match,FullMatchN) | ^~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:300:22: error: 'StringPiece' is not a member of 're2' 300 | std::vector strv(nmatch); \ | ^~~~~~~~~~~ src/cre2.cpp:318:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN' 318 | DEFINE_MATCH_ZSTRING_FUN(cre2_full_match,FullMatchN) | ^~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:300:33: error: template argument 1 is invalid 300 | std::vector strv(nmatch); \ | ^ src/cre2.cpp:318:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN' 318 | DEFINE_MATCH_ZSTRING_FUN(cre2_full_match,FullMatchN) | ^~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:300:33: error: template argument 2 is invalid 300 | std::vector strv(nmatch); \ | ^ src/cre2.cpp:318:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN' 318 | DEFINE_MATCH_ZSTRING_FUN(cre2_full_match,FullMatchN) | ^~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:305:24: error: request for member 'data' in 'strv', which is of non-class type 'int' 305 | argv[i] = &(strv.data())[i]; \ | ^~~~ src/cre2.cpp:318:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN' 318 | DEFINE_MATCH_ZSTRING_FUN(cre2_full_match,FullMatchN) | ^~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:308:23: error: 'input' was not declared in this scope 308 | retval = RE2::FUN(input, pattern, args.data(), nmatch); \ | ^~~~~ src/cre2.cpp:318:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN' 318 | DEFINE_MATCH_ZSTRING_FUN(cre2_full_match,FullMatchN) | ^~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:311:22: error: invalid types 'int[int]' for array subscript 311 | match[i].data = strv[i].data(); \ | ^ src/cre2.cpp:318:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN' 318 | DEFINE_MATCH_ZSTRING_FUN(cre2_full_match,FullMatchN) | ^~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:312:24: error: invalid types 'int[int]' for array subscript 312 | match[i].length = strv[i].length(); \ | ^ src/cre2.cpp:318:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN' 318 | DEFINE_MATCH_ZSTRING_FUN(cre2_full_match,FullMatchN) | ^~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp: In function 'int cre2_partial_match(const char*, const cre2_string_t*, cre2_string_t*, int)': src/cre2.cpp:299:10: error: 'StringPiece' is not a member of 're2' 299 | re2::StringPiece input(text->data, text->length); \ | ^~~~~~~~~~~ src/cre2.cpp:319:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN' 319 | DEFINE_MATCH_ZSTRING_FUN(cre2_partial_match,PartialMatchN) | ^~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:300:22: error: 'StringPiece' is not a member of 're2' 300 | std::vector strv(nmatch); \ | ^~~~~~~~~~~ src/cre2.cpp:319:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN' 319 | DEFINE_MATCH_ZSTRING_FUN(cre2_partial_match,PartialMatchN) | ^~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:300:22: error: 'StringPiece' is not a member of 're2' 300 | std::vector strv(nmatch); \ | ^~~~~~~~~~~ src/cre2.cpp:319:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN' 319 | DEFINE_MATCH_ZSTRING_FUN(cre2_partial_match,PartialMatchN) | ^~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:300:33: error: template argument 1 is invalid 300 | std::vector strv(nmatch); \ | ^ src/cre2.cpp:319:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN' 319 | DEFINE_MATCH_ZSTRING_FUN(cre2_partial_match,PartialMatchN) | ^~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:300:33: error: template argument 2 is invalid 300 | std::vector strv(nmatch); \ | ^ src/cre2.cpp:319:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN' 319 | DEFINE_MATCH_ZSTRING_FUN(cre2_partial_match,PartialMatchN) | ^~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:305:24: error: request for member 'data' in 'strv', which is of non-class type 'int' 305 | argv[i] = &(strv.data())[i]; \ | ^~~~ src/cre2.cpp:319:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN' 319 | DEFINE_MATCH_ZSTRING_FUN(cre2_partial_match,PartialMatchN) | ^~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:308:23: error: 'input' was not declared in this scope 308 | retval = RE2::FUN(input, pattern, args.data(), nmatch); \ | ^~~~~ src/cre2.cpp:319:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN' 319 | DEFINE_MATCH_ZSTRING_FUN(cre2_partial_match,PartialMatchN) | ^~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:311:22: error: invalid types 'int[int]' for array subscript 311 | match[i].data = strv[i].data(); \ | ^ src/cre2.cpp:319:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN' 319 | DEFINE_MATCH_ZSTRING_FUN(cre2_partial_match,PartialMatchN) | ^~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:312:24: error: invalid types 'int[int]' for array subscript 312 | match[i].length = strv[i].length(); \ | ^ src/cre2.cpp:319:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN' 319 | DEFINE_MATCH_ZSTRING_FUN(cre2_partial_match,PartialMatchN) | ^~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp: In function 'int cre2_consume(const char*, cre2_string_t*, cre2_string_t*, int)': src/cre2.cpp:328:10: error: 'StringPiece' is not a member of 're2' 328 | re2::StringPiece input(text->data, text->length); \ | ^~~~~~~~~~~ src/cre2.cpp:349:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN2' 349 | DEFINE_MATCH_ZSTRING_FUN2(cre2_consume,ConsumeN) | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:329:22: error: 'StringPiece' is not a member of 're2' 329 | std::vector strv(nmatch); \ | ^~~~~~~~~~~ src/cre2.cpp:349:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN2' 349 | DEFINE_MATCH_ZSTRING_FUN2(cre2_consume,ConsumeN) | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:329:22: error: 'StringPiece' is not a member of 're2' 329 | std::vector strv(nmatch); \ | ^~~~~~~~~~~ src/cre2.cpp:349:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN2' 349 | DEFINE_MATCH_ZSTRING_FUN2(cre2_consume,ConsumeN) | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:329:33: error: template argument 1 is invalid 329 | std::vector strv(nmatch); \ | ^ src/cre2.cpp:349:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN2' 349 | DEFINE_MATCH_ZSTRING_FUN2(cre2_consume,ConsumeN) | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:329:33: error: template argument 2 is invalid 329 | std::vector strv(nmatch); \ | ^ src/cre2.cpp:349:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN2' 349 | DEFINE_MATCH_ZSTRING_FUN2(cre2_consume,ConsumeN) | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:334:24: error: request for member 'data' in 'strv', which is of non-class type 'int' 334 | argv[i] = &(strv.data())[i]; \ | ^~~~ src/cre2.cpp:349:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN2' 349 | DEFINE_MATCH_ZSTRING_FUN2(cre2_consume,ConsumeN) | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:337:24: error: 'input' was not declared in this scope 337 | retval = RE2::FUN(&input, pattern, args.data(), nmatch); \ | ^~~~~ src/cre2.cpp:349:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN2' 349 | DEFINE_MATCH_ZSTRING_FUN2(cre2_consume,ConsumeN) | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:342:22: error: invalid types 'int[int]' for array subscript 342 | match[i].data = strv[i].data(); \ | ^ src/cre2.cpp:349:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN2' 349 | DEFINE_MATCH_ZSTRING_FUN2(cre2_consume,ConsumeN) | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:343:24: error: invalid types 'int[int]' for array subscript 343 | match[i].length = strv[i].length(); \ | ^ src/cre2.cpp:349:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN2' 349 | DEFINE_MATCH_ZSTRING_FUN2(cre2_consume,ConsumeN) | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp: In function 'int cre2_find_and_consume(const char*, cre2_string_t*, cre2_string_t*, int)': src/cre2.cpp:328:10: error: 'StringPiece' is not a member of 're2' 328 | re2::StringPiece input(text->data, text->length); \ | ^~~~~~~~~~~ src/cre2.cpp:350:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN2' 350 | DEFINE_MATCH_ZSTRING_FUN2(cre2_find_and_consume,FindAndConsumeN) | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:329:22: error: 'StringPiece' is not a member of 're2' 329 | std::vector strv(nmatch); \ | ^~~~~~~~~~~ src/cre2.cpp:350:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN2' 350 | DEFINE_MATCH_ZSTRING_FUN2(cre2_find_and_consume,FindAndConsumeN) | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:329:22: error: 'StringPiece' is not a member of 're2' 329 | std::vector strv(nmatch); \ | ^~~~~~~~~~~ src/cre2.cpp:350:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN2' 350 | DEFINE_MATCH_ZSTRING_FUN2(cre2_find_and_consume,FindAndConsumeN) | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:329:33: error: template argument 1 is invalid 329 | std::vector strv(nmatch); \ | ^ src/cre2.cpp:350:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN2' 350 | DEFINE_MATCH_ZSTRING_FUN2(cre2_find_and_consume,FindAndConsumeN) | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:329:33: error: template argument 2 is invalid 329 | std::vector strv(nmatch); \ | ^ src/cre2.cpp:350:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN2' 350 | DEFINE_MATCH_ZSTRING_FUN2(cre2_find_and_consume,FindAndConsumeN) | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:334:24: error: request for member 'data' in 'strv', which is of non-class type 'int' 334 | argv[i] = &(strv.data())[i]; \ | ^~~~ src/cre2.cpp:350:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN2' 350 | DEFINE_MATCH_ZSTRING_FUN2(cre2_find_and_consume,FindAndConsumeN) | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:337:24: error: 'input' was not declared in this scope 337 | retval = RE2::FUN(&input, pattern, args.data(), nmatch); \ | ^~~~~ src/cre2.cpp:350:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN2' 350 | DEFINE_MATCH_ZSTRING_FUN2(cre2_find_and_consume,FindAndConsumeN) | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:342:22: error: invalid types 'int[int]' for array subscript 342 | match[i].data = strv[i].data(); \ | ^ src/cre2.cpp:350:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN2' 350 | DEFINE_MATCH_ZSTRING_FUN2(cre2_find_and_consume,FindAndConsumeN) | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:343:24: error: invalid types 'int[int]' for array subscript 343 | match[i].length = strv[i].length(); \ | ^ src/cre2.cpp:350:1: note: in expansion of macro 'DEFINE_MATCH_ZSTRING_FUN2' 350 | DEFINE_MATCH_ZSTRING_FUN2(cre2_find_and_consume,FindAndConsumeN) | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp: In function 'int cre2_full_match_re(cre2_regexp_t*, const cre2_string_t*, cre2_string_t*, int)': src/cre2.cpp:362:10: error: 'StringPiece' is not a member of 're2' 362 | re2::StringPiece input(text->data, text->length); \ | ^~~~~~~~~~~ src/cre2.cpp:381:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN' 381 | DEFINE_MATCH_REX_FUN(cre2_full_match_re,FullMatchN) | ^~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:363:22: error: 'StringPiece' is not a member of 're2' 363 | std::vector strv(nmatch); \ | ^~~~~~~~~~~ src/cre2.cpp:381:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN' 381 | DEFINE_MATCH_REX_FUN(cre2_full_match_re,FullMatchN) | ^~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:363:22: error: 'StringPiece' is not a member of 're2' 363 | std::vector strv(nmatch); \ | ^~~~~~~~~~~ src/cre2.cpp:381:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN' 381 | DEFINE_MATCH_REX_FUN(cre2_full_match_re,FullMatchN) | ^~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:363:33: error: template argument 1 is invalid 363 | std::vector strv(nmatch); \ | ^ src/cre2.cpp:381:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN' 381 | DEFINE_MATCH_REX_FUN(cre2_full_match_re,FullMatchN) | ^~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:363:33: error: template argument 2 is invalid 363 | std::vector strv(nmatch); \ | ^ src/cre2.cpp:381:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN' 381 | DEFINE_MATCH_REX_FUN(cre2_full_match_re,FullMatchN) | ^~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:368:24: error: request for member 'data' in 'strv', which is of non-class type 'int' 368 | argv[i] = &(strv.data())[i]; \ | ^~~~ src/cre2.cpp:381:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN' 381 | DEFINE_MATCH_REX_FUN(cre2_full_match_re,FullMatchN) | ^~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:371:23: error: 'input' was not declared in this scope 371 | retval = RE2::FUN(input, *TO_RE2(rex), args.data(), nmatch); \ | ^~~~~ src/cre2.cpp:381:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN' 381 | DEFINE_MATCH_REX_FUN(cre2_full_match_re,FullMatchN) | ^~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:374:22: error: invalid types 'int[int]' for array subscript 374 | match[i].data = strv[i].data(); \ | ^ src/cre2.cpp:381:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN' 381 | DEFINE_MATCH_REX_FUN(cre2_full_match_re,FullMatchN) | ^~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:375:24: error: invalid types 'int[int]' for array subscript 375 | match[i].length = strv[i].length(); \ | ^ src/cre2.cpp:381:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN' 381 | DEFINE_MATCH_REX_FUN(cre2_full_match_re,FullMatchN) | ^~~~~~~~~~~~~~~~~~~~ src/cre2.cpp: In function 'int cre2_partial_match_re(cre2_regexp_t*, const cre2_string_t*, cre2_string_t*, int)': src/cre2.cpp:362:10: error: 'StringPiece' is not a member of 're2' 362 | re2::StringPiece input(text->data, text->length); \ | ^~~~~~~~~~~ src/cre2.cpp:382:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN' 382 | DEFINE_MATCH_REX_FUN(cre2_partial_match_re,PartialMatchN) | ^~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:363:22: error: 'StringPiece' is not a member of 're2' 363 | std::vector strv(nmatch); \ | ^~~~~~~~~~~ src/cre2.cpp:382:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN' 382 | DEFINE_MATCH_REX_FUN(cre2_partial_match_re,PartialMatchN) | ^~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:363:22: error: 'StringPiece' is not a member of 're2' 363 | std::vector strv(nmatch); \ | ^~~~~~~~~~~ src/cre2.cpp:382:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN' 382 | DEFINE_MATCH_REX_FUN(cre2_partial_match_re,PartialMatchN) | ^~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:363:33: error: template argument 1 is invalid 363 | std::vector strv(nmatch); \ | ^ src/cre2.cpp:382:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN' 382 | DEFINE_MATCH_REX_FUN(cre2_partial_match_re,PartialMatchN) | ^~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:363:33: error: template argument 2 is invalid 363 | std::vector strv(nmatch); \ | ^ src/cre2.cpp:382:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN' 382 | DEFINE_MATCH_REX_FUN(cre2_partial_match_re,PartialMatchN) | ^~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:368:24: error: request for member 'data' in 'strv', which is of non-class type 'int' 368 | argv[i] = &(strv.data())[i]; \ | ^~~~ src/cre2.cpp:382:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN' 382 | DEFINE_MATCH_REX_FUN(cre2_partial_match_re,PartialMatchN) | ^~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:371:23: error: 'input' was not declared in this scope 371 | retval = RE2::FUN(input, *TO_RE2(rex), args.data(), nmatch); \ | ^~~~~ src/cre2.cpp:382:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN' 382 | DEFINE_MATCH_REX_FUN(cre2_partial_match_re,PartialMatchN) | ^~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:374:22: error: invalid types 'int[int]' for array subscript 374 | match[i].data = strv[i].data(); \ | ^ src/cre2.cpp:382:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN' 382 | DEFINE_MATCH_REX_FUN(cre2_partial_match_re,PartialMatchN) | ^~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:375:24: error: invalid types 'int[int]' for array subscript 375 | match[i].length = strv[i].length(); \ | ^ src/cre2.cpp:382:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN' 382 | DEFINE_MATCH_REX_FUN(cre2_partial_match_re,PartialMatchN) | ^~~~~~~~~~~~~~~~~~~~ src/cre2.cpp: In function 'int cre2_consume_re(cre2_regexp_t*, cre2_string_t*, cre2_string_t*, int)': src/cre2.cpp:391:10: error: 'StringPiece' is not a member of 're2' 391 | re2::StringPiece input(text->data, text->length); \ | ^~~~~~~~~~~ src/cre2.cpp:412:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN2' 412 | DEFINE_MATCH_REX_FUN2(cre2_consume_re,ConsumeN) | ^~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:392:22: error: 'StringPiece' is not a member of 're2' 392 | std::vector strv(nmatch); \ | ^~~~~~~~~~~ src/cre2.cpp:412:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN2' 412 | DEFINE_MATCH_REX_FUN2(cre2_consume_re,ConsumeN) | ^~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:392:22: error: 'StringPiece' is not a member of 're2' 392 | std::vector strv(nmatch); \ | ^~~~~~~~~~~ src/cre2.cpp:412:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN2' 412 | DEFINE_MATCH_REX_FUN2(cre2_consume_re,ConsumeN) | ^~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:392:33: error: template argument 1 is invalid 392 | std::vector strv(nmatch); \ | ^ src/cre2.cpp:412:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN2' 412 | DEFINE_MATCH_REX_FUN2(cre2_consume_re,ConsumeN) | ^~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:392:33: error: template argument 2 is invalid 392 | std::vector strv(nmatch); \ | ^ src/cre2.cpp:412:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN2' 412 | DEFINE_MATCH_REX_FUN2(cre2_consume_re,ConsumeN) | ^~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:397:24: error: request for member 'data' in 'strv', which is of non-class type 'int' 397 | argv[i] = &(strv.data())[i]; \ | ^~~~ src/cre2.cpp:412:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN2' 412 | DEFINE_MATCH_REX_FUN2(cre2_consume_re,ConsumeN) | ^~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:400:24: error: 'input' was not declared in this scope 400 | retval = RE2::FUN(&input, *TO_RE2(rex), args.data(), nmatch); \ | ^~~~~ src/cre2.cpp:412:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN2' 412 | DEFINE_MATCH_REX_FUN2(cre2_consume_re,ConsumeN) | ^~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:405:22: error: invalid types 'int[int]' for array subscript 405 | match[i].data = strv[i].data(); \ | ^ src/cre2.cpp:412:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN2' 412 | DEFINE_MATCH_REX_FUN2(cre2_consume_re,ConsumeN) | ^~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:406:24: error: invalid types 'int[int]' for array subscript 406 | match[i].length = strv[i].length(); \ | ^ src/cre2.cpp:412:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN2' 412 | DEFINE_MATCH_REX_FUN2(cre2_consume_re,ConsumeN) | ^~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp: In function 'int cre2_find_and_consume_re(cre2_regexp_t*, cre2_string_t*, cre2_string_t*, int)': src/cre2.cpp:391:10: error: 'StringPiece' is not a member of 're2' 391 | re2::StringPiece input(text->data, text->length); \ | ^~~~~~~~~~~ src/cre2.cpp:413:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN2' 413 | DEFINE_MATCH_REX_FUN2(cre2_find_and_consume_re,FindAndConsumeN) | ^~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:392:22: error: 'StringPiece' is not a member of 're2' 392 | std::vector strv(nmatch); \ | ^~~~~~~~~~~ src/cre2.cpp:413:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN2' 413 | DEFINE_MATCH_REX_FUN2(cre2_find_and_consume_re,FindAndConsumeN) | ^~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:392:22: error: 'StringPiece' is not a member of 're2' 392 | std::vector strv(nmatch); \ | ^~~~~~~~~~~ src/cre2.cpp:413:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN2' 413 | DEFINE_MATCH_REX_FUN2(cre2_find_and_consume_re,FindAndConsumeN) | ^~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:392:33: error: template argument 1 is invalid 392 | std::vector strv(nmatch); \ | ^ src/cre2.cpp:413:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN2' 413 | DEFINE_MATCH_REX_FUN2(cre2_find_and_consume_re,FindAndConsumeN) | ^~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:392:33: error: template argument 2 is invalid 392 | std::vector strv(nmatch); \ | ^ src/cre2.cpp:413:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN2' 413 | DEFINE_MATCH_REX_FUN2(cre2_find_and_consume_re,FindAndConsumeN) | ^~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:397:24: error: request for member 'data' in 'strv', which is of non-class type 'int' 397 | argv[i] = &(strv.data())[i]; \ | ^~~~ src/cre2.cpp:413:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN2' 413 | DEFINE_MATCH_REX_FUN2(cre2_find_and_consume_re,FindAndConsumeN) | ^~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:400:24: error: 'input' was not declared in this scope 400 | retval = RE2::FUN(&input, *TO_RE2(rex), args.data(), nmatch); \ | ^~~~~ src/cre2.cpp:413:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN2' 413 | DEFINE_MATCH_REX_FUN2(cre2_find_and_consume_re,FindAndConsumeN) | ^~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:405:22: error: invalid types 'int[int]' for array subscript 405 | match[i].data = strv[i].data(); \ | ^ src/cre2.cpp:413:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN2' 413 | DEFINE_MATCH_REX_FUN2(cre2_find_and_consume_re,FindAndConsumeN) | ^~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp:406:24: error: invalid types 'int[int]' for array subscript 406 | match[i].length = strv[i].length(); \ | ^ src/cre2.cpp:413:1: note: in expansion of macro 'DEFINE_MATCH_REX_FUN2' 413 | DEFINE_MATCH_REX_FUN2(cre2_find_and_consume_re,FindAndConsumeN) | ^~~~~~~~~~~~~~~~~~~~~ src/cre2.cpp: In function 'int cre2_replace(const char*, cre2_string_t*, cre2_string_t*)': src/cre2.cpp:428:10: error: 'StringPiece' is not a member of 're2' 428 | re2::StringPiece R(rewrite->data, rewrite->length); | ^~~~~~~~~~~ src/cre2.cpp:431:40: error: 'R' was not declared in this scope 431 | retval = RE2::Replace(&S, pattern, R); | ^ src/cre2.cpp: In function 'int cre2_replace_re(cre2_regexp_t*, cre2_string_t*, cre2_string_t*)': src/cre2.cpp:452:8: error: 'StringPiece' is not a member of 're2' 452 | re2::StringPiece R(rewrite->data, rewrite->length); | ^~~~~~~~~~~ src/cre2.cpp:455:43: error: 'R' was not declared in this scope 455 | retval = RE2::Replace(&S, *TO_RE2(rex), R); | ^ src/cre2.cpp: In function 'int cre2_global_replace(const char*, cre2_string_t*, cre2_string_t*)': src/cre2.cpp:473:8: error: 'StringPiece' is not a member of 're2' 473 | re2::StringPiece R(rewrite->data, rewrite->length); | ^~~~~~~~~~~ src/cre2.cpp:476:44: error: 'R' was not declared in this scope 476 | retval = RE2::GlobalReplace(&S, pattern, R); | ^ src/cre2.cpp: In function 'int cre2_global_replace_re(cre2_regexp_t*, cre2_string_t*, cre2_string_t*)': src/cre2.cpp:491:8: error: 'StringPiece' is not a member of 're2' 491 | re2::StringPiece R(rewrite->data, rewrite->length); | ^~~~~~~~~~~ src/cre2.cpp:494:49: error: 'R' was not declared in this scope 494 | retval = RE2::GlobalReplace(&S, *TO_RE2(rex), R); | ^ src/cre2.cpp: In function 'int cre2_extract(const char*, cre2_string_t*, cre2_string_t*, cre2_string_t*)': src/cre2.cpp:512:8: error: 'StringPiece' is not a member of 're2' 512 | re2::StringPiece T(text->data, text->length); | ^~~~~~~~~~~ src/cre2.cpp:513:8: error: 'StringPiece' is not a member of 're2' 513 | re2::StringPiece R(rewrite->data, rewrite->length); | ^~~~~~~~~~~ src/cre2.cpp:517:25: error: 'T' was not declared in this scope 517 | retval = RE2::Extract(T, pattern, R, &O); | ^ src/cre2.cpp:517:37: error: 'R' was not declared in this scope 517 | retval = RE2::Extract(T, pattern, R, &O); | ^ src/cre2.cpp: In function 'int cre2_extract_re(cre2_regexp_t*, cre2_string_t*, cre2_string_t*, cre2_string_t*)': src/cre2.cpp:532:8: error: 'StringPiece' is not a member of 're2' 532 | re2::StringPiece T(text->data, text->length); | ^~~~~~~~~~~ src/cre2.cpp:533:8: error: 'StringPiece' is not a member of 're2' 533 | re2::StringPiece R(rewrite->data, rewrite->length); | ^~~~~~~~~~~ src/cre2.cpp:537:25: error: 'T' was not declared in this scope 537 | retval = RE2::Extract(T, *TO_RE2(rex), R, &O); | ^ src/cre2.cpp:537:42: error: 'R' was not declared in this scope 537 | retval = RE2::Extract(T, *TO_RE2(rex), R, &O); | ^ src/cre2.cpp: In function 'int cre2_quote_meta(cre2_string_t*, cre2_string_t*)': src/cre2.cpp:554:8: error: 'StringPiece' is not a member of 're2' 554 | re2::StringPiece O(original->data, original->length); | ^~~~~~~~~~~ src/cre2.cpp:557:22: error: 'O' was not declared in this scope 557 | Q = RE2::QuoteMeta(O); | ^ src/cre2.cpp: In function 'int cre2_check_rewrite_string(cre2_regexp_t*, cre2_string_t*, cre2_string_t*)': src/cre2.cpp:608:8: error: 'StringPiece' is not a member of 're2' 608 | re2::StringPiece R(rewrite->data, rewrite->length); | ^~~~~~~~~~~ src/cre2.cpp:612:44: error: 'R' was not declared in this scope 612 | retval = TO_RE2(rex)->CheckRewriteString(R, &E); | ^ src/cre2.cpp: In function 'int cre2_set_add(cre2_set*, const char*, size_t, char*, size_t)': src/cre2.cpp:656:8: error: 'StringPiece' is not a member of 're2' 656 | re2::StringPiece regex(pattern, static_cast(pattern_len)); | ^~~~~~~~~~~ src/cre2.cpp:658:19: error: 'regex' was not declared in this scope 658 | return s->Add(regex, NULL); | ^~~~~ src/cre2.cpp:661:30: error: 'regex' was not declared in this scope 661 | int regex_index = s->Add(regex, &err); | ^~~~~ src/cre2.cpp: In function 'int cre2_set_add_simple(cre2_set*, const char*)': src/cre2.cpp:676:8: error: 'StringPiece' is not a member of 're2' 676 | re2::StringPiece regex(pattern, static_cast(strlen(pattern))); | ^~~~~~~~~~~ src/cre2.cpp:677:17: error: 'regex' was not declared in this scope 677 | return s->Add(regex, NULL); | ^~~~~ src/cre2.cpp: In function 'size_t cre2_set_match(cre2_set*, const char*, size_t, int*, size_t)': src/cre2.cpp:695:8: error: 'StringPiece' is not a member of 're2' 695 | re2::StringPiece data(text, static_cast(text_len)); | ^~~~~~~~~~~ src/cre2.cpp:697:30: error: 'data' was not declared in this scope 697 | bool does_match = s->Match(data, &v); | ^~~~ gmake[1]: *** [Makefile:1071: src/libcre2_la-cre2.lo] Error 1 gmake[1]: Leaving directory '/home/pbulk/build/devel/cre2/work/cre2-0.3.6' gmake: *** [Makefile:805: all] Error 2 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-netbsd-trunk-x86_64/devel/cre2 *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-netbsd-trunk-x86_64/devel/cre2