=> 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 patchelf-0.18.0 --- all-recursive --- Making all in src --- patchelf.o --- c++ -std=c++17 -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.18.0\" -DPACKAGE_STRING=\"patchelf\ 0.18.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.18.0\" -DHAVE_CXX17=1 -I. -Wall -Wextra -Wcast-qual -std=c++17 -D_FILE_OFFSET_BITS=64 -O2 -fPIC -D_FORTIFY_SOURCE=2 -MT patchelf.o -MD -MP -MF .deps/patchelf.Tpo -c -o patchelf.o patchelf.cc patchelf.cc: In instantiation of 'ElfFile::rebuildGnuHashTable(span, span):: [with auto:5 = span; auto:6 = std::vector; Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]': patchelf.cc:2077:16: required from 'void ElfFile::rebuildGnuHashTable(span, span) [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]' patchelf.cc:2208:28: required from 'void ElfFile::renameDynamicSymbols(const std::unordered_map, std::__cxx11::basic_string >&) [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]' patchelf.cc:2442:9: required from 'void patchElf2(ElfFile&&, const FileContents&, const string&) [with ElfFile = ElfFile; FileContents = std::shared_ptr >; std::__cxx11::string = std::__cxx11::basic_string]' patchelf.cc:2463:256: required from here patchelf.cc:2072:21: error: class template argument deduction failed: std::vector tmp(dst.begin(), dst.end()); ^~~ patchelf.cc:2072:21: error: no matching function for call to 'vector(Elf32_Sym*, Elf32_Sym*)' In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:411:2: note: candidate: template vector(_InputIterator, _InputIterator, const _Alloc&)-> std::vector<_Tp, _Alloc> vector(_InputIterator __first, _InputIterator __last, ^~~~~~ /usr/include/g++/bits/stl_vector.h:411:2: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: couldn't deduce template parameter '_Tp' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:383:7: note: candidate: template vector(std::initializer_list<_Tp>, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(initializer_list __l, ^~~~~~ /usr/include/g++/bits/stl_vector.h:383:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'std::initializer_list<_Tp>' and 'Elf32_Sym*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:358:7: note: candidate: template vector(std::vector<_Tp, _Alloc>&&, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(vector&& __rv, const allocator_type& __m) ^~~~~~ /usr/include/g++/bits/stl_vector.h:358:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'std::vector<_Tp, _Alloc>' and 'Elf32_Sym*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:348:7: note: candidate: template vector(const std::vector<_Tp, _Alloc>&, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(const vector& __x, const allocator_type& __a) ^~~~~~ /usr/include/g++/bits/stl_vector.h:348:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'const std::vector<_Tp, _Alloc>' and 'Elf32_Sym*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:344:7: note: candidate: template vector(std::vector<_Tp, _Alloc>&&)-> std::vector<_Tp, _Alloc> vector(vector&& __x) noexcept ^~~~~~ /usr/include/g++/bits/stl_vector.h:344:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'std::vector<_Tp, _Alloc>' and 'Elf32_Sym*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:326:7: note: candidate: template vector(const std::vector<_Tp, _Alloc>&)-> std::vector<_Tp, _Alloc> vector(const vector& __x) ^~~~~~ /usr/include/g++/bits/stl_vector.h:326:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'const std::vector<_Tp, _Alloc>' and 'Elf32_Sym*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:295:7: note: candidate: template vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(size_type __n, const value_type& __value, ^~~~~~ /usr/include/g++/bits/stl_vector.h:295:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: cannot convert 'dst.span::begin()' (type 'Elf32_Sym*') to type 'std::vector<_Tp, _Alloc>::size_type {aka long unsigned int}' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:283:7: note: candidate: template vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(size_type __n, const allocator_type& __a = allocator_type()) ^~~~~~ /usr/include/g++/bits/stl_vector.h:283:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: couldn't deduce template parameter '_Tp' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:270:7: note: candidate: template vector(const allocator_type&)-> std::vector<_Tp, _Alloc> vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT ^~~~~~ /usr/include/g++/bits/stl_vector.h:270:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: candidate expects 1 argument, 2 provided std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:259:7: note: candidate: template vector()-> std::vector<_Tp, _Alloc> vector() ^~~~~~ /usr/include/g++/bits/stl_vector.h:259:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: candidate expects 0 arguments, 2 provided std::vector tmp(dst.begin(), dst.end()); ^~~ patchelf.cc: In instantiation of 'ElfFile::rebuildGnuHashTable(span, span):: [with auto:5 = span; auto:6 = std::vector; Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]': patchelf.cc:2079:20: required from 'void ElfFile::rebuildGnuHashTable(span, span) [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]' patchelf.cc:2208:28: required from 'void ElfFile::renameDynamicSymbols(const std::unordered_map, std::__cxx11::basic_string >&) [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]' patchelf.cc:2442:9: required from 'void patchElf2(ElfFile&&, const FileContents&, const string&) [with ElfFile = ElfFile; FileContents = std::shared_ptr >; std::__cxx11::string = std::__cxx11::basic_string]' patchelf.cc:2463:256: required from here patchelf.cc:2072:21: error: class template argument deduction failed: patchelf.cc:2072:21: error: no matching function for call to 'vector(short unsigned int*, short unsigned int*)' In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:411:2: note: candidate: template vector(_InputIterator, _InputIterator, const _Alloc&)-> std::vector<_Tp, _Alloc> vector(_InputIterator __first, _InputIterator __last, ^~~~~~ /usr/include/g++/bits/stl_vector.h:411:2: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: couldn't deduce template parameter '_Tp' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:383:7: note: candidate: template vector(std::initializer_list<_Tp>, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(initializer_list __l, ^~~~~~ /usr/include/g++/bits/stl_vector.h:383:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'std::initializer_list<_Tp>' and 'short unsigned int*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:358:7: note: candidate: template vector(std::vector<_Tp, _Alloc>&&, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(vector&& __rv, const allocator_type& __m) ^~~~~~ /usr/include/g++/bits/stl_vector.h:358:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'std::vector<_Tp, _Alloc>' and 'short unsigned int*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:348:7: note: candidate: template vector(const std::vector<_Tp, _Alloc>&, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(const vector& __x, const allocator_type& __a) ^~~~~~ /usr/include/g++/bits/stl_vector.h:348:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'const std::vector<_Tp, _Alloc>' and 'short unsigned int*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:344:7: note: candidate: template vector(std::vector<_Tp, _Alloc>&&)-> std::vector<_Tp, _Alloc> vector(vector&& __x) noexcept ^~~~~~ /usr/include/g++/bits/stl_vector.h:344:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'std::vector<_Tp, _Alloc>' and 'short unsigned int*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:326:7: note: candidate: template vector(const std::vector<_Tp, _Alloc>&)-> std::vector<_Tp, _Alloc> vector(const vector& __x) ^~~~~~ /usr/include/g++/bits/stl_vector.h:326:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'const std::vector<_Tp, _Alloc>' and 'short unsigned int*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:295:7: note: candidate: template vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(size_type __n, const value_type& __value, ^~~~~~ /usr/include/g++/bits/stl_vector.h:295:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: cannot convert 'dst.span::begin()' (type 'short unsigned int*') to type 'std::vector<_Tp, _Alloc>::size_type {aka long unsigned int}' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:283:7: note: candidate: template vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(size_type __n, const allocator_type& __a = allocator_type()) ^~~~~~ /usr/include/g++/bits/stl_vector.h:283:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: couldn't deduce template parameter '_Tp' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:270:7: note: candidate: template vector(const allocator_type&)-> std::vector<_Tp, _Alloc> vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT ^~~~~~ /usr/include/g++/bits/stl_vector.h:270:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: candidate expects 1 argument, 2 provided std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:259:7: note: candidate: template vector()-> std::vector<_Tp, _Alloc> vector() ^~~~~~ /usr/include/g++/bits/stl_vector.h:259:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: candidate expects 0 arguments, 2 provided std::vector tmp(dst.begin(), dst.end()); ^~~ patchelf.cc: In instantiation of 'ElfFile::rebuildGnuHashTable(span, span):: [with auto:5 = span; auto:6 = std::vector; Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]': patchelf.cc:2077:16: required from 'void ElfFile::rebuildGnuHashTable(span, span) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]' patchelf.cc:2208:28: required from 'void ElfFile::renameDynamicSymbols(const std::unordered_map, std::__cxx11::basic_string >&) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]' patchelf.cc:2442:9: required from 'void patchElf2(ElfFile&&, const FileContents&, const string&) [with ElfFile = ElfFile; FileContents = std::shared_ptr >; std::__cxx11::string = std::__cxx11::basic_string]' patchelf.cc:2465:256: required from here patchelf.cc:2072:21: error: class template argument deduction failed: patchelf.cc:2072:21: error: no matching function for call to 'vector(Elf64_Sym*, Elf64_Sym*)' In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:411:2: note: candidate: template vector(_InputIterator, _InputIterator, const _Alloc&)-> std::vector<_Tp, _Alloc> vector(_InputIterator __first, _InputIterator __last, ^~~~~~ /usr/include/g++/bits/stl_vector.h:411:2: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: couldn't deduce template parameter '_Tp' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:383:7: note: candidate: template vector(std::initializer_list<_Tp>, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(initializer_list __l, ^~~~~~ /usr/include/g++/bits/stl_vector.h:383:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'std::initializer_list<_Tp>' and 'Elf64_Sym*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:358:7: note: candidate: template vector(std::vector<_Tp, _Alloc>&&, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(vector&& __rv, const allocator_type& __m) ^~~~~~ /usr/include/g++/bits/stl_vector.h:358:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'std::vector<_Tp, _Alloc>' and 'Elf64_Sym*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:348:7: note: candidate: template vector(const std::vector<_Tp, _Alloc>&, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(const vector& __x, const allocator_type& __a) ^~~~~~ /usr/include/g++/bits/stl_vector.h:348:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'const std::vector<_Tp, _Alloc>' and 'Elf64_Sym*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:344:7: note: candidate: template vector(std::vector<_Tp, _Alloc>&&)-> std::vector<_Tp, _Alloc> vector(vector&& __x) noexcept ^~~~~~ /usr/include/g++/bits/stl_vector.h:344:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'std::vector<_Tp, _Alloc>' and 'Elf64_Sym*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:326:7: note: candidate: template vector(const std::vector<_Tp, _Alloc>&)-> std::vector<_Tp, _Alloc> vector(const vector& __x) ^~~~~~ /usr/include/g++/bits/stl_vector.h:326:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'const std::vector<_Tp, _Alloc>' and 'Elf64_Sym*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:295:7: note: candidate: template vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(size_type __n, const value_type& __value, ^~~~~~ /usr/include/g++/bits/stl_vector.h:295:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: cannot convert 'dst.span::begin()' (type 'Elf64_Sym*') to type 'std::vector<_Tp, _Alloc>::size_type {aka long unsigned int}' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:283:7: note: candidate: template vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(size_type __n, const allocator_type& __a = allocator_type()) ^~~~~~ /usr/include/g++/bits/stl_vector.h:283:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: couldn't deduce template parameter '_Tp' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:270:7: note: candidate: template vector(const allocator_type&)-> std::vector<_Tp, _Alloc> vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT ^~~~~~ /usr/include/g++/bits/stl_vector.h:270:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: candidate expects 1 argument, 2 provided std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:259:7: note: candidate: template vector()-> std::vector<_Tp, _Alloc> vector() ^~~~~~ /usr/include/g++/bits/stl_vector.h:259:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: candidate expects 0 arguments, 2 provided std::vector tmp(dst.begin(), dst.end()); ^~~ patchelf.cc: In instantiation of 'ElfFile::rebuildGnuHashTable(span, span):: [with auto:5 = span; auto:6 = std::vector; Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]': patchelf.cc:2079:20: required from 'void ElfFile::rebuildGnuHashTable(span, span) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]' patchelf.cc:2208:28: required from 'void ElfFile::renameDynamicSymbols(const std::unordered_map, std::__cxx11::basic_string >&) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]' patchelf.cc:2442:9: required from 'void patchElf2(ElfFile&&, const FileContents&, const string&) [with ElfFile = ElfFile; FileContents = std::shared_ptr >; std::__cxx11::string = std::__cxx11::basic_string]' patchelf.cc:2465:256: required from here patchelf.cc:2072:21: error: class template argument deduction failed: patchelf.cc:2072:21: error: no matching function for call to 'vector(short unsigned int*, short unsigned int*)' In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:411:2: note: candidate: template vector(_InputIterator, _InputIterator, const _Alloc&)-> std::vector<_Tp, _Alloc> vector(_InputIterator __first, _InputIterator __last, ^~~~~~ /usr/include/g++/bits/stl_vector.h:411:2: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: couldn't deduce template parameter '_Tp' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:383:7: note: candidate: template vector(std::initializer_list<_Tp>, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(initializer_list __l, ^~~~~~ /usr/include/g++/bits/stl_vector.h:383:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'std::initializer_list<_Tp>' and 'short unsigned int*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:358:7: note: candidate: template vector(std::vector<_Tp, _Alloc>&&, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(vector&& __rv, const allocator_type& __m) ^~~~~~ /usr/include/g++/bits/stl_vector.h:358:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'std::vector<_Tp, _Alloc>' and 'short unsigned int*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:348:7: note: candidate: template vector(const std::vector<_Tp, _Alloc>&, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(const vector& __x, const allocator_type& __a) ^~~~~~ /usr/include/g++/bits/stl_vector.h:348:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'const std::vector<_Tp, _Alloc>' and 'short unsigned int*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:344:7: note: candidate: template vector(std::vector<_Tp, _Alloc>&&)-> std::vector<_Tp, _Alloc> vector(vector&& __x) noexcept ^~~~~~ /usr/include/g++/bits/stl_vector.h:344:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'std::vector<_Tp, _Alloc>' and 'short unsigned int*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:326:7: note: candidate: template vector(const std::vector<_Tp, _Alloc>&)-> std::vector<_Tp, _Alloc> vector(const vector& __x) ^~~~~~ /usr/include/g++/bits/stl_vector.h:326:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: mismatched types 'const std::vector<_Tp, _Alloc>' and 'short unsigned int*' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:295:7: note: candidate: template vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(size_type __n, const value_type& __value, ^~~~~~ /usr/include/g++/bits/stl_vector.h:295:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: cannot convert 'dst.span::begin()' (type 'short unsigned int*') to type 'std::vector<_Tp, _Alloc>::size_type {aka long unsigned int}' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:283:7: note: candidate: template vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&)-> std::vector<_Tp, _Alloc> vector(size_type __n, const allocator_type& __a = allocator_type()) ^~~~~~ /usr/include/g++/bits/stl_vector.h:283:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: couldn't deduce template parameter '_Tp' std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:270:7: note: candidate: template vector(const allocator_type&)-> std::vector<_Tp, _Alloc> vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT ^~~~~~ /usr/include/g++/bits/stl_vector.h:270:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: candidate expects 1 argument, 2 provided std::vector tmp(dst.begin(), dst.end()); ^~~ In file included from /usr/include/g++/vector:64:0, from patchelf.cc:32: /usr/include/g++/bits/stl_vector.h:259:7: note: candidate: template vector()-> std::vector<_Tp, _Alloc> vector() ^~~~~~ /usr/include/g++/bits/stl_vector.h:259:7: note: template argument deduction/substitution failed: patchelf.cc:2072:21: note: candidate expects 0 arguments, 2 provided std::vector tmp(dst.begin(), dst.end()); ^~~ patchelf.cc: In instantiation of 'void ElfFile::rebuildGnuHashTable(span, span) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]': patchelf.cc:2208:28: required from 'void ElfFile::renameDynamicSymbols(const std::unordered_map, std::__cxx11::basic_string >&) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]' patchelf.cc:2442:9: required from 'void patchElf2(ElfFile&&, const FileContents&, const string&) [with ElfFile = ElfFile; FileContents = std::shared_ptr >; std::__cxx11::string = std::__cxx11::basic_string]' patchelf.cc:2465:256: required from here patchelf.cc:2102:37: error: use of 'auto span::size() const [with T = long unsigned int]' before deduction of 'auto' size_t idx = (h / ElfClass) % ght.m_bloomFilters.size(); In file included from patchelf.cc:47:0: patchelf.h:226:10: error: 'void ElfFile::changeRelocTableSymIds(const Elf_Shdr&, RemapFn&&) [with ElfRelType = Elf32_Rel; RemapFn = ElfFile::rebuildGnuHashTable(span, span) [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]::&; Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]', declared using local type 'ElfFile::rebuildGnuHashTable(span, span) [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]::', is used but never defined [-fpermissive] void changeRelocTableSymIds(const Elf_Shdr& shdr, RemapFn&& old2newSymId) ^~~~~~~~~~~~~~~~~~~~~~ patchelf.h:226:10: error: 'void ElfFile::changeRelocTableSymIds(const Elf_Shdr&, RemapFn&&) [with ElfRelType = Elf32_Rela; RemapFn = ElfFile::rebuildGnuHashTable(span, span) [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]::&; Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]', declared using local type 'ElfFile::rebuildGnuHashTable(span, span) [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]::', is used but never defined [-fpermissive] patchelf.h:226:10: error: 'void ElfFile::changeRelocTableSymIds(const Elf_Shdr&, RemapFn&&) [with ElfRelType = Elf64_Rel; RemapFn = ElfFile::rebuildGnuHashTable(span, span) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]::&; Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]', declared using local type 'ElfFile::rebuildGnuHashTable(span, span) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]::', is used but never defined [-fpermissive] patchelf.h:226:10: error: 'void ElfFile::changeRelocTableSymIds(const Elf_Shdr&, RemapFn&&) [with ElfRelType = Elf64_Rela; RemapFn = ElfFile::rebuildGnuHashTable(span, span) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]::&; Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]', declared using local type 'ElfFile::rebuildGnuHashTable(span, span) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]::', is used but never defined [-fpermissive] *** [patchelf.o] Error code 1 make[1]: stopped in /tmp/devel/patchelf/work/patchelf-0.18.0/src 1 error make[1]: stopped in /tmp/devel/patchelf/work/patchelf-0.18.0/src *** [all-recursive] Error code 1 make: stopped in /tmp/devel/patchelf/work/patchelf-0.18.0 1 error make: stopped in /tmp/devel/patchelf/work/patchelf-0.18.0 *** Error code 2 Stop. make[1]: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/devel/patchelf *** Error code 1 Stop. make: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/devel/patchelf