pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
protobuf-c fails to build
With pkgsrc HEAD from an hour or two ago, devel/protobuf-c fails to
build on NetBSD 10 amd64. Looks like it could be abseil update fallout
- but I'm just guessing.
Out of 1300+ packages installed, everything else needing to rebuilt was
ok, except
- asterisk
- mapserver
- merkaartor
- postgresql16-postgis
which I suspect depend on protobuf-c.
Are others seeing this also?
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for protobuf-c-1.5.0.tar.gz
=> Checksum SHA512 OK for protobuf-c-1.5.0.tar.gz
work -> /tmp/work/devel/protobuf-c/work
===> Installing dependencies for protobuf-c-1.5.0nb10
=> Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.7nb1
=> Tool dependency mktools-[0-9]*: found mktools-20250213
=> Tool dependency gmake>=3.81: found gmake-4.4.1
=> Tool dependency pkgconf-[0-9]*: found pkgconf-2.4.3nb1
=> Tool dependency ccache-[0-9]*: found ccache-4.11.3
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Full dependency protobuf>=31.1nb1: found protobuf-31.1nb1
===> Checking for vulnerabilities in protobuf-c-1.5.0nb10
===> Overriding tools for protobuf-c-1.5.0nb10
===> Extracting for protobuf-c-1.5.0nb10
===> Patching for protobuf-c-1.5.0nb10
=> Applying pkgsrc patches for protobuf-c-1.5.0nb10
=> Verifying /n0/gdt/pkgsrc-current/pkgsrc/devel/protobuf-c/patches/patch-protoc-c_c__file.cc
=> Applying pkgsrc patch /n0/gdt/pkgsrc-current/pkgsrc/devel/protobuf-c/patches/patch-protoc-c_c__file.cc
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-protoc-c_c__file.cc,v 1.5 2024/04/07 20:53:13 adam Exp $
|
|Chase compatibility issues with Google protobuf 26.0
|https://github.com/protobuf-c/protobuf-c/pull/711
|
|--- protoc-c/c_file.cc.orig 2024-04-07 20:32:42.583909649 +0000
|+++ protoc-c/c_file.cc
--------------------------
Patching file protoc-c/c_file.cc using Plan A...
Hunk #1 succeeded at 117.
done
=> Verifying /n0/gdt/pkgsrc-current/pkgsrc/devel/protobuf-c/patches/patch-protoc-c_c__generator.h
=> Applying pkgsrc patch /n0/gdt/pkgsrc-current/pkgsrc/devel/protobuf-c/patches/patch-protoc-c_c__generator.h
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-protoc-c_c__generator.h,v 1.5 2024/07/07 15:54:15 wiz Exp $
|
|Chase compatibility issues with Google protobuf 26.0
|https://github.com/protobuf-c/protobuf-c/pull/711
|
|--- protoc-c/c_generator.h.orig 2024-04-07 20:33:52.951908700 +0000
|+++ protoc-c/c_generator.h
--------------------------
Patching file protoc-c/c_generator.h using Plan A...
Hunk #1 succeeded at 93.
done
=> Verifying /n0/gdt/pkgsrc-current/pkgsrc/devel/protobuf-c/patches/patch-protoc-c_c__helpers.h
=> Applying pkgsrc patch /n0/gdt/pkgsrc-current/pkgsrc/devel/protobuf-c/patches/patch-protoc-c_c__helpers.h
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-protoc-c_c__helpers.h,v 1.3 2024/04/07 20:53:13 adam Exp $
|
|Chase compatibility issues with Google protobuf 26.0
|https://github.com/protobuf-c/protobuf-c/pull/711
|
|--- protoc-c/c_helpers.h.orig 2024-04-07 20:35:11.315221523 +0000
|+++ protoc-c/c_helpers.h
--------------------------
Patching file protoc-c/c_helpers.h using Plan A...
Hunk #1 succeeded at 70.
Hunk #2 succeeded at 169.
done
===> Creating toolchain wrappers for protobuf-c-1.5.0nb10
===> Configuring for protobuf-c-1.5.0nb10
/bin/ln -s /tmp/work/devel/protobuf-c/work/.buildlink/include/google /tmp/work/devel/protobuf-c/work/protobuf-c-1.5.0/google
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
=> Adding run-time search paths to pkg-config files.
=> Checking for portability problems in extracted files
checking for a BSD-compatible install... /usr/bin/install -c -o gdt -g users
checking whether build environment is sane... yes
checking for a race-free mkdir -p... ./build-aux/install-sh -c -d
checking for gawk... /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for x86_64--netbsd-gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking whether the compiler supports GNU C++... yes
checking whether c++ accepts -g... yes
checking for c++ option to enable C++11 features... none needed
checking dependency style of c++... gcc3
checking whether ln -s works... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64--netbsd
checking host system type... x86_64--netbsd
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /tmp/work/devel/protobuf-c/work/.cwrapper/bin/ld
checking if the linker (/tmp/work/devel/protobuf-c/work/.cwrapper/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... (cached) 262144
checking how to convert x86_64--netbsd file names to x86_64--netbsd format... func_convert_file_noop
checking how to convert x86_64--netbsd file names to toolchain format... func_convert_file_noop
checking for /tmp/work/devel/protobuf-c/work/.cwrapper/bin/ld option to reload object files... -r
checking for x86_64--netbsd-file... no
checking for file... file
checking for x86_64--netbsd-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... match_pattern /lib[^/]+(\.so|_pic\.a)$
checking for x86_64--netbsd-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64--netbsd-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for x86_64--netbsd-strip... no
checking for strip... strip
checking for x86_64--netbsd-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for x86_64--netbsd-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... rm: conftest*: No such file or directory
yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/tmp/work/devel/protobuf-c/work/.cwrapper/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... rm: conftest*: No such file or directory
no
checking dynamic linker characteristics... NetBSD ld.elf_so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... c++ -E
checking for ld used by c++... /tmp/work/devel/protobuf-c/work/.cwrapper/bin/ld
checking if the linker (/tmp/work/devel/protobuf-c/work/.cwrapper/bin/ld) is GNU ld... yes
checking whether the c++ linker (/tmp/work/devel/protobuf-c/work/.cwrapper/bin/ld) supports shared libraries... yes
checking for c++ option to produce PIC... -fPIC -DPIC
checking if c++ PIC flag -fPIC -DPIC works... yes
checking if c++ static flag -static works... yes
checking if c++ supports -c -o file.o... rm: conftest*: No such file or directory
yes
checking if c++ supports -c -o file.o... (cached) yes
checking whether the c++ linker (/tmp/work/devel/protobuf-c/work/.cwrapper/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... NetBSD ld.elf_so
checking how to hardcode library paths into programs... immediate
checking whether C compiler accepts "-Werror=incompatible-pointer-types"... yes
checking whether C compiler accepts "-Werror=int-conversion"... yes
checking whether C compiler accepts "-Wnull-dereference"... yes
checking for doxygen... no
checking pkg-config is at least version 0.9.0... yes
checking whether c++ supports C++17 features with -std=c++17... yes
checking for protobuf... yes
checking for google/protobuf/compiler/command_line_interface.h... yes
checking for protoc... /usr/pkg/bin/protoc
checking if LD -Wl,--version-script works... yes
checking whether self tests are run under valgrind... no
checking whether to build with code coverage support... no
checking whether byte ordering is bigendian... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating protobuf-c/libprotobuf-c.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
rm: libtoolT: No such file or directory
protobuf-c 1.5.0
CC: gcc
CFLAGS: -O2 -I/usr/pkg/include -I/usr/include
CXX: c++ -std=c++17
CXXFLAGS: -O2 -I/usr/pkg/include -I/usr/include
LDFLAGS: -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib
LIBS:
prefix: /usr/pkg
sysconfdir: ${prefix}/etc
libdir: ${exec_prefix}/lib
includedir: ${prefix}/include
pkgconfigdir: ${libdir}/pkgconfig
bigendian: no
protobuf version: libprotoc 31.1
=> Modifying libtool scripts to use pkgsrc libtool
=> Modifying libtool scripts to use pkgsrc depcomp
===> Building for protobuf-c-1.5.0nb10
GEN protobuf-c/protobuf-c.pb.cc
CXX protoc-c/protoc_gen_c-c_bytes_field.o
protoc-c/c_bytes_field.cc: In function 'void google::protobuf::compiler::c::SetBytesVariables(const google::protobuf::FieldDescriptor*, std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >*)':
protoc-c/c_bytes_field.cc:80:52: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string<char>&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view<char>'}
80 | "\"" + CEscape(descriptor->default_value_string()) + "\"";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from protoc-c/c_bytes_field.cc:64:
./protoc-c/c_helpers.h:88:40: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::CEscape(const string&)'
88 | std::string CEscape(const std::string& src);
| ~~~~~~~~~~~~~~~~~~~^~~
protoc-c/c_bytes_field.cc: In member function 'virtual void google::protobuf::compiler::c::BytesFieldGenerator::GenerateStructMembers(google::protobuf::io::Printer*) const':
protoc-c/c_bytes_field.cc:99:30: warning: 'google::protobuf::internal::FieldDescriptorLite::Label google::protobuf::FieldDescriptor::label() const' is deprecated: Use is_required() or is_repeated() instead. [-Wdeprecated-declarations]
99 | switch (descriptor_->label()) {
| ^
In file included from ./protoc-c/c_field.h:68,
from ./protoc-c/c_bytes_field.h:68,
from protoc-c/c_bytes_field.cc:63:
./google/protobuf/descriptor.h:2900:31: note: declared here
2900 | inline FieldDescriptor::Label FieldDescriptor::label() const {
| ^~~~~~~~~~~~~~~
protoc-c/c_bytes_field.cc: In member function 'virtual void google::protobuf::compiler::c::BytesFieldGenerator::GenerateDefaultValueDeclarations(google::protobuf::io::Printer*) const':
protoc-c/c_bytes_field.cc:117:70: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string<char>&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view<char>'}
117 | vars["default_value_data"] = FullNameToLower(descriptor_->full_name(), descriptor_->file())
| ~~~~~~~~~~~~~~~~~~~~~~^~
In file included from protoc-c/c_bytes_field.cc:64:
./protoc-c/c_helpers.h:124:48: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FullNameToLower(const string&, const google::protobuf::FileDescriptor*)'
124 | std::string FullNameToLower(const std::string &full_name, const FileDescriptor *file);
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
protoc-c/c_bytes_field.cc: In member function 'virtual void google::protobuf::compiler::c::BytesFieldGenerator::GenerateDefaultValueImplementations(google::protobuf::io::Printer*) const':
protoc-c/c_bytes_field.cc:125:70: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string<char>&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view<char>'}
125 | vars["default_value_data"] = FullNameToLower(descriptor_->full_name(), descriptor_->file())
| ~~~~~~~~~~~~~~~~~~~~~~^~
In file included from protoc-c/c_bytes_field.cc:64:
./protoc-c/c_helpers.h:124:48: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FullNameToLower(const string&, const google::protobuf::FileDescriptor*)'
124 | std::string FullNameToLower(const std::string &full_name, const FileDescriptor *file);
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
protoc-c/c_bytes_field.cc:127:62: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string<char>&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view<char>'}
127 | vars["escaped"] = CEscape(descriptor_->default_value_string());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from protoc-c/c_bytes_field.cc:64:
./protoc-c/c_helpers.h:88:40: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::CEscape(const string&)'
88 | std::string CEscape(const std::string& src);
| ~~~~~~~~~~~~~~~~~~~^~~
protoc-c/c_bytes_field.cc: In member function 'virtual std::string google::protobuf::compiler::c::BytesFieldGenerator::GetDefaultValue() const':
protoc-c/c_bytes_field.cc:135:42: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string<char>&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view<char>'}
135 | + FullNameToLower(descriptor_->full_name(), descriptor_->file())
| ~~~~~~~~~~~~~~~~~~~~~~^~
In file included from protoc-c/c_bytes_field.cc:64:
./protoc-c/c_helpers.h:124:48: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FullNameToLower(const string&, const google::protobuf::FileDescriptor*)'
124 | std::string FullNameToLower(const std::string &full_name, const FileDescriptor *file);
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
protoc-c/c_bytes_field.cc: In member function 'virtual void google::protobuf::compiler::c::BytesFieldGenerator::GenerateStaticInit(google::protobuf::io::Printer*) const':
protoc-c/c_bytes_field.cc:140:30: warning: 'google::protobuf::internal::FieldDescriptorLite::Label google::protobuf::FieldDescriptor::label() const' is deprecated: Use is_required() or is_repeated() instead. [-Wdeprecated-declarations]
140 | switch (descriptor_->label()) {
| ^
In file included from ./protoc-c/c_field.h:68,
from ./protoc-c/c_bytes_field.h:68,
from protoc-c/c_bytes_field.cc:63:
./google/protobuf/descriptor.h:2900:31: note: declared here
2900 | inline FieldDescriptor::Label FieldDescriptor::label() const {
| ^~~~~~~~~~~~~~~
gmake: *** [Makefile:1563: protoc-c/protoc_gen_c-c_bytes_field.o] Error 1
*** Error code 2
Stop.
make[1]: stopped in /n0/gdt/pkgsrc-current/pkgsrc/devel/protobuf-c
*** Error code 1
Stop.
make: stopped in /n0/gdt/pkgsrc-current/pkgsrc/devel/protobuf-c
Home |
Main Index |
Thread Index |
Old Index