pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: protobuf on NetBSD 9
Stephen Borrill <netbsd%precedence.co.uk@localhost> writes:
> I am trying to build protobuf on NetBSD 9 from pkgsrc-2026Q2 and have
> noted the comments in its Makefile about building with GCC 10 (and it
> did build on NetBSD 10).
I am pretty sure that the comments are about a previous problem and you
have found a new problem.
> It correctly determines it require gcc10 (with gcc10-libs as a runtime
> dependency) to build, but still fails:
USE_CXX_FEATURES=c++17 leads to gcc10, is on plan.
> In file included from /usr/pkg/gcc10/include/c++/ext/string_conversions.h:43,
> from /usr/pkg/gcc10/include/c++/bits/basic_string.h:6557,
> from /usr/pkg/gcc10/include/c++/string:55,
> from /usr/pkg/gcc10/include/c++/bits/locale_classes.h:40,
> from /usr/pkg/gcc10/include/c++/bits/ios_base.h:41,
> from /usr/pkg/gcc10/include/c++/ios:42,
> from /usr/pkg/gcc10/include/c++/istream:38,
> from /pkg_comp/obj/pkgsrc/devel/protobuf/default/protobuf-35.1/src/google/protobuf/io/zero_copy_stream_impl.cc:24:
> /usr/pkg/gcc10/include/c++/cstdio:176:11: error: 'vfscanf' has not been declared in '::'
> 176 | using ::vfscanf;
> | ^~~~~~~
> /usr/pkg/gcc10/include/c++/cstdio:177:11: error: 'vscanf' has not been declared in '::'
> 177 | using ::vscanf;
> | ^~~~~~
> /usr/pkg/gcc10/include/c++/cstdio:179:11: error: 'vsscanf' has not been declared in '::'
> 179 | using ::vsscanf;
> | ^~~~~~~
> /usr/pkg/gcc10/include/c++/cstdio:186:22: error: 'vfscanf' has not been declared in '__gnu_cxx'
> 186 | using ::__gnu_cxx::vfscanf;
> | ^~~~~~~
> /usr/pkg/gcc10/include/c++/cstdio:187:22: error: 'vscanf' has not been declared in '__gnu_cxx'
> 187 | using ::__gnu_cxx::vscanf;
> | ^~~~~~
> /usr/pkg/gcc10/include/c++/cstdio:189:22: error: 'vsscanf' has not been declared in '__gnu_cxx'
> 189 | using ::__gnu_cxx::vsscanf;
> | ^~~~~~~
I have a not-100%-reliable memory that it is up to the compiler whether
or to require std::foo vs accepting foo, in cases when the standard says
std::foo. This feels like a similar situation/problem.
I can reproduce your errors, pretty up-to-date netbsd-9, 2026Q2.
The fix of course is to upgrade from 9, lest you be the last one
standing who cares about making things work on 9, which is increasingly
feeling like pushing a wet noodle uphill, as we are more than 6y since
release, likely 7y since branch, and even more since getting a new
compiler. I personally have mostly given up on 9.
Home |
Main Index |
Thread Index |
Old Index