=> Bootstrap dependency digest>=20211023: found digest-20220214 ===> Skipping vulnerability checks. WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for cre2-0.3.6nb4 /usr/pkg/bin/gmake all-am gmake[1]: Entering directory '/tmp/devel/cre2/work/cre2-0.3.6' gmake[2]: Entering directory '/tmp/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 -I/usr/include -pthread -I/usr/pkg/include -DNOMINMAX -O2 -I/usr/pkg/include -I/usr/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 gmake[2]: Leaving directory '/tmp/devel/cre2/work/cre2-0.3.6' Updating ./doc/version.texi restore=: && backupdir=".am$$" && \ am__cwd=`pwd` && CDPATH="${ZSH_VERSION+.}:" && cd . && \ rm -rf $backupdir && mkdir $backupdir && \ if (/tmp/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 /tmp/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/tmp/devel/cre2/work/.buildlink/include -pthread -DNOMINMAX -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 /tmp/devel/cre2/work/.buildlink/include/absl/base/config.h:92, from /tmp/devel/cre2/work/.buildlink/include/absl/base/attributes.h:39, from /tmp/devel/cre2/work/.buildlink/include/absl/base/call_once.h:35, from /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:221, from src/cre2.cpp:15: /tmp/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 /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:221, from src/cre2.cpp:15: /tmp/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&& ...)': /tmp/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)...); | ^~~~~~ /tmp/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 /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:222, from src/cre2.cpp:15: /tmp/devel/cre2/work/.buildlink/include/absl/strings/string_view.h: At global scope: /tmp/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; | ^~~~~~~~~~~ /tmp/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; | ^~~ /tmp/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, | ^~~~~~~~~~~ /tmp/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 /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:223, from src/cre2.cpp:15: /tmp/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: /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:288:24: error: expected ')' before 'pattern' 288 | RE2(absl::string_view pattern); | ~ ^~~~~~~~ | ) /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:289:24: error: expected ')' before 'pattern' 289 | RE2(absl::string_view pattern, const Options& options); | ~ ^~~~~~~~ | ) /tmp/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, | ^~~~~~~~~~~ /tmp/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, | ^~~~~~~~~~~ /tmp/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, | ^~~~~~~~~~~ /tmp/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, | ^~~~~~~~~~~ /tmp/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) { | ^~~~~~~~~~~ /tmp/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) { | ^~~~~~~~~~~ /tmp/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) { | ^~~~~~~~~~~ /tmp/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) { | ^~~~~~~~~~~ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:482:29: error: 'absl::string_view' has not been declared 482 | absl::string_view rewrite); | ^~~~~~~~~~~ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:499:34: error: 'absl::string_view' has not been declared 499 | absl::string_view rewrite); | ^~~~~~~~~~~ /tmp/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, | ^~~~~~~~~~~ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:511:29: error: 'absl::string_view' has not been declared 511 | absl::string_view rewrite, | ^~~~~~~~~~~ /tmp/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); | ^~~~~~~~~~~ /tmp/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, | ^~~~~~~~~~~ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:589:20: error: 'absl::string_view' has not been declared 589 | absl::string_view* submatch, | ^~~~~~~~~~~ /tmp/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, | ^~~~~~~~~~~ /tmp/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); | ^~~~~~~~~~~ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:613:22: error: 'absl::string_view' has not been declared 613 | absl::string_view rewrite, | ^~~~~~~~~~~ /tmp/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, | ^~~~~~~~~~~ /tmp/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); | ^~~~~~~~~~~ /tmp/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, | ^~~~~~~~~~~ /tmp/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 {}; | ^~~~~~~~~~~ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:821:36: error: 'string_view' is not a member of 'absl' /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:821:47: error: template argument 1 is invalid 821 | template <> struct Parse3ary : public std::true_type {}; | ^ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:846:45: error: 'optional' is not a member of 'std' 846 | template struct Parse3ary> : public Parse3ary {}; | ^~~~~~~~ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:846:45: note: 'std::optional' is only available from C++17 onwards /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:846:45: error: 'optional' is not a member of 'std' /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:846:45: note: 'std::optional' is only available from C++17 onwards /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:846:54: error: template argument 1 is invalid 846 | template struct Parse3ary> : public Parse3ary {}; | ^ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:846:55: error: expected unqualified-id before '>' token 846 | template struct Parse3ary> : public Parse3ary {}; | ^~ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:847:45: error: 'optional' is not a member of 'std' 847 | template struct Parse4ary> : public Parse4ary {}; | ^~~~~~~~ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:847:45: note: 'std::optional' is only available from C++17 onwards /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:847:45: error: 'optional' is not a member of 'std' /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:847:45: note: 'std::optional' is only available from C++17 onwards /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:847:54: error: template argument 1 is invalid 847 | template struct Parse4ary> : public Parse4ary {}; | ^ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:847:55: error: expected unqualified-id before '>' token 847 | template struct Parse4ary> : public Parse4ary {}; | ^~ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:850:44: error: 'std::optional' has not been declared 850 | bool Parse(const char* str, size_t n, std::optional* dest) { | ^~~~~~~~ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:850:52: error: expected ',' or '...' before '<' token 850 | bool Parse(const char* str, size_t n, std::optional* dest) { | ^ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h: In function 'bool re2::re2_internal::Parse(const char*, size_t, int)': /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:852:9: error: 'dest' was not declared in this scope 852 | if (dest != NULL) | ^~~~ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:858:9: error: 'dest' was not declared in this scope 858 | if (dest != NULL) | ^~~~ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h: At global scope: /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:866:44: error: 'std::optional' has not been declared 866 | bool Parse(const char* str, size_t n, std::optional* dest, int radix) { | ^~~~~~~~ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:866:52: error: expected ',' or '...' before '<' token 866 | bool Parse(const char* str, size_t n, std::optional* dest, int radix) { | ^ /tmp/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, std::optional* dest, int radix) { | ^~~~~ /tmp/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, std::optional* dest) { | ^~~~~ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h: In static member function 'static void re2::LazyRE2::Init(const re2::LazyRE2*)': /tmp/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_); | ^ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:287:3: note: candidate: 're2::RE2::RE2(const string&)' 287 | RE2(const std::string& pattern); | ^~~ /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:287:3: note: candidate expects 1 argument, 2 provided /tmp/devel/cre2/work/.buildlink/include/re2/re2.h:286:3: note: candidate: 're2::RE2::RE2(const char*)' 286 | RE2(const char* pattern); | ^~~ /tmp/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: /tmp/devel/cre2/work/.buildlink/include/re2/set.h: At global scope: /tmp/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); | ^~~~~~~~~~~ /tmp/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; | ^~~~~~~~~~~ /tmp/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:1075: src/libcre2_la-cre2.lo] Error 1 gmake[1]: Leaving directory '/tmp/devel/cre2/work/cre2-0.3.6' gmake: *** [Makefile:816: all] Error 2 *** Error code 2 Stop. make[1]: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/devel/cre2 *** Error code 1 Stop. make: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/devel/cre2