tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: databases/mysql80-server not building in 2025Q3



On Tue, 23 Sep 2025, Jonathan Perkin wrote:
* On 2025-09-23 at 09:45 BST, Stephen Borrill wrote:

I'm trying to build databases/mysql80-server on 10.1_STABLE/amd64 from 2025Q3 and getting errors similar to the failures in the bulk build logs:

https://releng.netbsd.org/pkgreports/shadow/HEAD/NetBSD-10.0-x86_64/20250920.0614/mysql-server-8.0.40nb6/build.log

I say "similar" as I'm only getting errors at 11% in the build, i.e.
/pkg_comp/obj/pkgsrc/databases/mysql80-server/default/mysql-8.0.40/plugin/x/protocol/plugin/encoder_file_output.h:100:61: error: cannot convert 'absl::lts_20250814::string_view' {aka 'std::basic_string_view<char>'} to 'std::string' {aka 'std::__cxx11::basic_string<char>'} /pkg_comp/obj/pkgsrc/databases/mysql80-server/default/mysql-8.0.40/plugin/x/protocol/plugin/encoder_file_output.h:132:34: error: no match for 'operator+' (operand types are 'const char [3]' and e'absl::lts_20250814::string_view' {aka 'std::basic_string_view<char>'}) /pkg_comp/obj/pkgsrc/databases/mysql80-server/default/mysql-8.0.40/plugin/x/protocol/plugin/messages_used_by_server.cc:52:66: error: no matching function for call to 'std::set<std::__cxx11::basic_string<char> >::count(absl::lts_20250814::string_view)'

I was seeing these errors in my percona80 packages too, and ended up switching them to use the bundled protobuf.

I tried:
-CMAKE_CONFIGURE_ARGS+= -DWITH_PROTOBUF="system"
+CMAKE_CONFIGURE_ARGS+= -DWITH_PROTOBUF="bundled"

and:
-.include "../../devel/protobuf/buildlink3.mk"
+#.include "../../devel/protobuf/buildlink3.mk"

This leads to a situation where protoc cannot find the shared libraries:
[ 26%] Running C++ protobuf compiler on /usr/work/obj/pkgsrc/databases/mysql80-server/work.builder10/mysql-8.0.40/sql/protobuf/replication_asynchronous_connection_failover.proto - lite version ../../runtime_output_directory/protoc: Shared object "libprotoc.so.24.4.0" not found


/usr/obj/pkgsrc/databases/mysql80-server/work.builder10/mysql-8.0.40/cmake-pkgsrc-build/runtime_output_directory/protoc:
        -lpthread.1 => /usr/lib/libpthread.so.1
        -lc.12 => /usr/lib/libc.so.12
        -lprotoc.24.4.0 => not found
        -lprotobuf.24.4.0 => not found
        -lexecinfo.0 => /usr/lib/libexecinfo.so.0
        -lelf.2 => /usr/lib/libelf.so.2
        -lgcc_s.1 => /usr/lib/libgcc_s.so.1
        -lrt.1 => /usr/lib/librt.so.1
        -lstdc++.9 => /usr/lib/libstdc++.so.9
        -lm.0 => /usr/lib/libm.so.0

They are in:
/usr/obj/pkgsrc/databases/mysql80-server/work.builder10/mysql-8.0.40/cmake-pkgsrc-build/library_output_directory/libprotoc.so.24.4.0

The following is set, but seems irrelevant as that path is used anyway (or perhaps it is only relevant with WITH_PROTOBUF="system"):
MAKE_ENV+=     DYLD_LIBRARY_PATH=${WRKSRC}/${CMAKE_BUILD_DIR}/library_output_directory

--
Stephen



Home | Main Index | Thread Index | Old Index