Compilation crash in FreeBSD11-STABLE

Hi Guys,

I have FreeBSD installed and trying to compile Urbackup Server:

root@NAS:~/urbackup-server-2.1.20 # uname -ar
FreeBSD NAS 11.0-STABLE FreeBSD 11.0-STABLE #0 r318134: Wed May 10 15:16:21 UTC 2017 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64

root@NAS:~/urbackup-server-2.1.20 # gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc6/gcc/x86_64-portbld-freebsd11.1/6.4.0/lto-wrapper
Target: x86_64-portbld-freebsd11.1
Configured with: /wrkdirs/usr/ports/lang/gcc6/work/gcc-6.4.0/configure --with-build-config=bootstrap-debug --disable-nls --enable-gnu-indirect-function --libdir=/usr/local/lib/gcc6 --libexecdir=/usr/local/libexec/gcc6 --program-suffix=6 --with-as=/usr/local/bin/as --with-gmp=/usr/local --with-gxx-include-dir=/usr/local/lib/gcc6/include/c++/ --with-ld=/usr/local/bin/ld --with-pkgversion=‘FreeBSD Ports Collection’ --with-system-zlib --with-ecj-jar=/usr/local/share/java/ecj-4.5.jar --enable-languages=c,c++,objc,fortran,java --prefix=/usr/local --localstatedir=/var --mandir=/usr/local/man --infodir=/usr/local/info/gcc6 --build=x86_64-portbld-freebsd11.1
Thread model: posix
gcc version 6.4.0 (FreeBSD Ports Collection)
root@NAS:~/urbackup-server-2.1.20 #

root@NAS:~/urbackup-server-2.1.20 # ./configure
checking build system type… x86_64-unknown-freebsd11.0
checking host system type… x86_64-unknown-freebsd11.0
checking target system type… x86_64-unknown-freebsd11.0
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… ./install-sh -c -d
checking for gawk… no
checking for mawk… no
checking for nawk… nawk
checking whether make sets $(MAKE)… yes
checking whether make supports nested variables… yes
checking whether UID ‘0’ is supported by ustar format… yes
checking whether GID ‘0’ is supported by ustar format… yes
checking how to create a ustar tar archive… gnutar
checking for g++… g++
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 we are using the GNU C++ compiler… yes
checking whether g++ accepts -g… yes
checking for style of include used by make… GNU
checking dependency style of g++… gcc3
checking for gcc… gcc
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking whether gcc understands -c and -o together… yes
checking dependency style of gcc… gcc3
checking whether the compiler implements namespaces… yes
checking how to run the C++ preprocessor… g++ -E
checking for grep that handles long lines and -e… /usr/bin/grep
checking for egrep… /usr/bin/grep -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking sstream usability… yes
checking sstream presence… yes
checking for sstream… yes
checking whether the STL defines stringstream… yes
checking strstream usability… yes
checking strstream presence… yes
checking for strstream… yes
checking whether the STL defines strstream… yes
checking for the pthreads library -lpthreads… no
checking whether pthreads work without any flags… no
checking whether pthreads work with -Kthread… no
checking whether pthreads work with -kthread… no
checking for the pthreads library -llthread… no
checking whether pthreads work with -pthread… yes
checking for joinable pthread attribute… PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads… -D_THREAD_SAFE
checking for ANSI C header files… (cached) yes
checking pthread.h usability… yes
checking pthread.h presence… yes
checking for pthread.h… yes
checking arpa/inet.h usability… yes
checking arpa/inet.h presence… yes
checking for arpa/inet.h… yes
checking fcntl.h usability… yes
checking fcntl.h presence… yes
checking for fcntl.h… yes
checking netdb.h usability… yes
checking netdb.h presence… yes
checking for netdb.h… yes
checking netinet/in.h usability… yes
checking netinet/in.h presence… yes
checking for netinet/in.h… yes
checking for stdlib.h… (cached) yes
checking sys/socket.h usability… yes
checking sys/socket.h presence… yes
checking for sys/socket.h… yes
checking sys/time.h usability… yes
checking sys/time.h presence… yes
checking for sys/time.h… yes
checking for unistd.h… (cached) yes
checking for stdbool.h that conforms to C99… no
checking for _Bool… no
checking for an ANSI C-conforming const… yes
checking for inline… inline
checking for size_t… yes
checking whether time.h and sys/time.h may both be included… yes
checking whether struct tm is in sys/time.h or time.h… time.h
checking whether C++ compiler accepts -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIE… yes
checking whether the linker accepts -Wl,-z,relro… yes
checking for library containing gethostbyname… none required
checking for library containing socket… none required
checking how to run the C preprocessor… gcc -E
checking if zlib is wanted… yes
checking for inflateEnd in -lz… yes
checking zlib.h usability… yes
checking zlib.h presence… yes
checking for zlib.h… yes
checking for operating system… checking sys/select.h usability… yes
checking sys/select.h presence… yes
checking for sys/select.h… yes
checking for sys/socket.h… (cached) yes
checking types of arguments for select… int,fd_set *,struct timeval *
checking for strftime… yes
checking for gettimeofday… yes
checking for memset… yes
checking for select… yes
checking for socket… yes
checking for strstr… yes
checking for syncfs… no
checking for fallocate64… no
checking for utimensat… yes
checking for accept4… yes
checking for dlopen in -ldl… no
checking for gawk… (cached) nawk
checking for curl-config… /usr/local/bin/curl-config
checking for the version of libcurl… 7.54.1
checking for libcurl >= version 7.20.0… yes
checking whether libcurl is usable… yes
checking for curl_free… yes
checking for crypto++ version >= 5.1… yes (version 5.6.5, installed)
checking for library containing clock_gettime… none required
checking that generated files are newer than configure… done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

root@NAS:~/urbackup-server-2.1.20 # make
[skipped]
cryptoplugin/urbackupsrv-ZlibDecompression.o cryptoplugin/urbackupsrv-AESGCMDecryption.o cryptoplugin/urbackupsrv-AESGCMEncryption.o cryptoplugin/urbackupsrv-ECDHKeyExchange.o -L/usr/local/lib -lcurl -lcryptopp -lz
cryptoplugin/urbackupsrv-CryptoFactory.o: In function CryptoPP::StringSinkTemplate<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::StringSinkTemplate(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)': /usr/local/include/cryptopp/filters.h:977: undefined reference to vtable for CryptoPP::StringSinkTemplate<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >’
cryptoplugin/urbackupsrv-CryptoFactory.o: In function CryptoFactory::encryptAuthenticatedAES(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long)': /root/urbackup-server-2.1.20/cryptoplugin/CryptoFactory.cpp:356: undefined reference to CryptoPP::DEFAULT_CHANNEL[abi:cxx11]’
/root/urbackup-server-2.1.20/cryptoplugin/CryptoFactory.cpp:356: undefined reference to CryptoPP::AuthenticatedEncryptionFilter::AuthenticatedEncryptionFilter(CryptoPP::AuthenticatedSymmetricCipher&, CryptoPP::BufferedTransformation*, bool, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, CryptoPP::BlockPaddingSchemeDef::BlockPaddingScheme)' cryptoplugin/urbackupsrv-CryptoFactory.o: In function CryptoPP::StringSinkTemplate<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >::StringSinkTemplate(std::__cxx11::basic_string<char, std::char_traits, std::allocator >&)’:
/usr/local/include/cryptopp/filters.h:977: undefined reference to vtable for CryptoPP::StringSinkTemplate<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >' /usr/local/include/cryptopp/filters.h:977: undefined reference to vtable for CryptoPP::StringSinkTemplate<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >’
/usr/local/include/cryptopp/filters.h:977: undefined reference to vtable for CryptoPP::StringSinkTemplate<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >' cryptoplugin/urbackupsrv-CryptoFactory.o: In function CryptoPP::SourceTemplateCryptoPP::FileStore::PumpAll2(bool)’:
/usr/local/include/cryptopp/filters.h:1247: undefined reference to CryptoPP::DEFAULT_CHANNEL[abi:cxx11]' /usr/local/include/cryptopp/filters.h:1247: undefined reference to CryptoPP::BufferedTransformation::TransferAllTo2(CryptoPP::BufferedTransformation&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool)’
cryptoplugin/urbackupsrv-CryptoFactory.o: In function CryptoPP::SourceTemplate<CryptoPP::StringStore>::PumpAll2(bool)': /usr/local/include/cryptopp/filters.h:1247: undefined reference to CryptoPP::DEFAULT_CHANNEL[abi:cxx11]’
/usr/local/include/cryptopp/filters.h:1247: undefined reference to CryptoPP::BufferedTransformation::TransferAllTo2(CryptoPP::BufferedTransformation&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' cryptoplugin/urbackupsrv-CryptoFactory.o: In function CryptoPP::SourceTemplateCryptoPP::FileStore::PumpMessages2(unsigned int&, bool)’:
/usr/local/include/cryptopp/filters.h:1245: undefined reference to CryptoPP::DEFAULT_CHANNEL[abi:cxx11]' /usr/local/include/cryptopp/filters.h:1245: undefined reference to CryptoPP::BufferedTransformation::TransferMessagesTo2(CryptoPP::BufferedTransformation&, unsigned int&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool)’
cryptoplugin/urbackupsrv-CryptoFactory.o: In function CryptoPP::SourceTemplate<CryptoPP::StringStore>::PumpMessages2(unsigned int&, bool)': /usr/local/include/cryptopp/filters.h:1245: undefined reference to CryptoPP::DEFAULT_CHANNEL[abi:cxx11]’
/usr/local/include/cryptopp/filters.h:1245: undefined reference to CryptoPP::BufferedTransformation::TransferMessagesTo2(CryptoPP::BufferedTransformation&, unsigned int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' cryptoplugin/urbackupsrv-CryptoFactory.o: In function CryptoPP::SourceTemplateCryptoPP::FileStore::Pump2(unsigned long&, bool)’:
/usr/local/include/cryptopp/filters.h:1243: undefined reference to CryptoPP::DEFAULT_CHANNEL[abi:cxx11]' /usr/local/include/cryptopp/filters.h:1243: undefined reference to CryptoPP::FileStore::TransferTo2(CryptoPP::BufferedTransformation&, unsigned long&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool)’
cryptoplugin/urbackupsrv-CryptoFactory.o: In function CryptoPP::SourceTemplate<CryptoPP::StringStore>::Pump2(unsigned long&, bool)': /usr/local/include/cryptopp/filters.h:1243: undefined reference to CryptoPP::DEFAULT_CHANNEL[abi:cxx11]’
/usr/local/include/cryptopp/filters.h:1243: undefined reference to CryptoPP::StringStore::TransferTo2(CryptoPP::BufferedTransformation&, unsigned long&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' cryptoplugin/urbackupsrv-CryptoFactory.o: In function CryptoPP::SourceTemplateCryptoPP::FileStore::PumpAll2(bool)’:
/usr/local/include/cryptopp/filters.h:1247: undefined reference to CryptoPP::DEFAULT_CHANNEL[abi:cxx11]' /usr/local/include/cryptopp/filters.h:1247: undefined reference to CryptoPP::BufferedTransformation::TransferAllTo2(CryptoPP::BufferedTransformation&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool)’
cryptoplugin/urbackupsrv-CryptoFactory.o: In function CryptoPP::SourceTemplate<CryptoPP::StringStore>::PumpAll2(bool)': /usr/local/include/cryptopp/filters.h:1247: undefined reference to CryptoPP::DEFAULT_CHANNEL[abi:cxx11]’
/usr/local/include/cryptopp/filters.h:1247: undefined reference to CryptoPP::BufferedTransformation::TransferAllTo2(CryptoPP::BufferedTransformation&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP17SimpleProxyFilterE[_ZTVN8CryptoPP17SimpleProxyFilterE]+0x120): undefined reference to CryptoPP::Filter::TransferTo2(CryptoPP::BufferedTransformation&, unsigned long&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool)’
cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP17SimpleProxyFilterE[_ZTVN8CryptoPP17SimpleProxyFilterE]+0x128): undefined reference to CryptoPP::Filter::CopyRangeTo2(CryptoPP::BufferedTransformation&, unsigned long&, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) const' cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP17SimpleProxyFilterE[_ZTVN8CryptoPP17SimpleProxyFilterE]+0x130): undefined reference to CryptoPP::BufferedTransformation::ChannelCreatePutSpace(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned long&)’
cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP17SimpleProxyFilterE[_ZTVN8CryptoPP17SimpleProxyFilterE]+0x138): undefined reference to CryptoPP::BufferedTransformation::ChannelPut2(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char const*, unsigned long, int, bool)' cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP17SimpleProxyFilterE[_ZTVN8CryptoPP17SimpleProxyFilterE]+0x140): undefined reference to CryptoPP::BufferedTransformation::ChannelPutModifiable2(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned char*, unsigned long, int, bool)’
cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP17SimpleProxyFilterE[_ZTVN8CryptoPP17SimpleProxyFilterE]+0x148): undefined reference to CryptoPP::BufferedTransformation::ChannelFlush(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, int, bool)' cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP17SimpleProxyFilterE[_ZTVN8CryptoPP17SimpleProxyFilterE]+0x150): undefined reference to CryptoPP::BufferedTransformation::ChannelMessageSeriesEnd(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int, bool)’
cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP17SimpleProxyFilterE[_ZTVN8CryptoPP17SimpleProxyFilterE]+0x158): undefined reference to CryptoPP::BufferedTransformation::SetRetrievalChannel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP14SourceTemplateINS_11StringStoreEEE[_ZTVN8CryptoPP14SourceTemplateINS_11StringStoreEEE]+0x120): undefined reference to CryptoPP::Filter::TransferTo2(CryptoPP::BufferedTransformation&, unsigned long&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool)’
cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP14SourceTemplateINS_11StringStoreEEE[_ZTVN8CryptoPP14SourceTemplateINS_11StringStoreEEE]+0x128): undefined reference to CryptoPP::Filter::CopyRangeTo2(CryptoPP::BufferedTransformation&, unsigned long&, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) const' cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP14SourceTemplateINS_11StringStoreEEE[_ZTVN8CryptoPP14SourceTemplateINS_11StringStoreEEE]+0x130): undefined reference to CryptoPP::BufferedTransformation::ChannelCreatePutSpace(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned long&)’
cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP14SourceTemplateINS_11StringStoreEEE[_ZTVN8CryptoPP14SourceTemplateINS_11StringStoreEEE]+0x140): undefined reference to CryptoPP::BufferedTransformation::ChannelPutModifiable2(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*, unsigned long, int, bool)' cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP14SourceTemplateINS_11StringStoreEEE[_ZTVN8CryptoPP14SourceTemplateINS_11StringStoreEEE]+0x148): undefined reference to CryptoPP::BufferedTransformation::ChannelFlush(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool, int, bool)’
cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP14SourceTemplateINS_11StringStoreEEE[_ZTVN8CryptoPP14SourceTemplateINS_11StringStoreEEE]+0x158): undefined reference to CryptoPP::BufferedTransformation::SetRetrievalChannel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP12StringSourceE[_ZTVN8CryptoPP12StringSourceE]+0x120): undefined reference to CryptoPP::Filter::TransferTo2(CryptoPP::BufferedTransformation&, unsigned long&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool)’
cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP12StringSourceE[_ZTVN8CryptoPP12StringSourceE]+0x128): undefined reference to CryptoPP::Filter::CopyRangeTo2(CryptoPP::BufferedTransformation&, unsigned long&, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) const' cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP12StringSourceE[_ZTVN8CryptoPP12StringSourceE]+0x130): undefined reference to CryptoPP::BufferedTransformation::ChannelCreatePutSpace(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned long&)’
cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP12StringSourceE[_ZTVN8CryptoPP12StringSourceE]+0x140): undefined reference to CryptoPP::BufferedTransformation::ChannelPutModifiable2(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*, unsigned long, int, bool)' cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP12StringSourceE[_ZTVN8CryptoPP12StringSourceE]+0x148): undefined reference to CryptoPP::BufferedTransformation::ChannelFlush(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool, int, bool)’
cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP12StringSourceE[_ZTVN8CryptoPP12StringSourceE]+0x158): undefined reference to CryptoPP::BufferedTransformation::SetRetrievalChannel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP20AutoSeededRandomPoolE[_ZTVN8CryptoPP20AutoSeededRandomPoolE]+0x60): undefined reference to CryptoPP::RandomPool::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned long)’
cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP14SourceTemplateINS_9FileStoreEEE[_ZTVN8CryptoPP14SourceTemplateINS_9FileStoreEEE]+0x120): undefined reference to CryptoPP::Filter::TransferTo2(CryptoPP::BufferedTransformation&, unsigned long&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP14SourceTemplateINS_9FileStoreEEE[_ZTVN8CryptoPP14SourceTemplateINS_9FileStoreEEE]+0x128): undefined reference to CryptoPP::Filter::CopyRangeTo2(CryptoPP::BufferedTransformation&, unsigned long&, unsigned long, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool) const’
cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP14SourceTemplateINS_9FileStoreEEE[_ZTVN8CryptoPP14SourceTemplateINS_9FileStoreEEE]+0x130): undefined reference to CryptoPP::BufferedTransformation::ChannelCreatePutSpace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long&)' cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP14SourceTemplateINS_9FileStoreEEE[_ZTVN8CryptoPP14SourceTemplateINS_9FileStoreEEE]+0x140): undefined reference to CryptoPP::BufferedTransformation::ChannelPutModifiable2(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned char*, unsigned long, int, bool)’
cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP14SourceTemplateINS_9FileStoreEEE[_ZTVN8CryptoPP14SourceTemplateINS_9FileStoreEEE]+0x148): undefined reference to CryptoPP::BufferedTransformation::ChannelFlush(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, int, bool)' cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP14SourceTemplateINS_9FileStoreEEE[_ZTVN8CryptoPP14SourceTemplateINS_9FileStoreEEE]+0x158): undefined reference to CryptoPP::BufferedTransformation::SetRetrievalChannel(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’
cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP10FileSourceE[_ZTVN8CryptoPP10FileSourceE]+0x120): undefined reference to CryptoPP::Filter::TransferTo2(CryptoPP::BufferedTransformation&, unsigned long&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP10FileSourceE[_ZTVN8CryptoPP10FileSourceE]+0x128): undefined reference to CryptoPP::Filter::CopyRangeTo2(CryptoPP::BufferedTransformation&, unsigned long&, unsigned long, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool) const’
cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP10FileSourceE[_ZTVN8CryptoPP10FileSourceE]+0x130): undefined reference to CryptoPP::BufferedTransformation::ChannelCreatePutSpace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long&)' cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP10FileSourceE[_ZTVN8CryptoPP10FileSourceE]+0x140): undefined reference to CryptoPP::BufferedTransformation::ChannelPutModifiable2(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned char*, unsigned long, int, bool)’
cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP10FileSourceE[_ZTVN8CryptoPP10FileSourceE]+0x148): undefined reference to CryptoPP::BufferedTransformation::ChannelFlush(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, int, bool)' cryptoplugin/urbackupsrv-CryptoFactory.o:(.data.rel.ro._ZTVN8CryptoPP10FileSourceE[_ZTVN8CryptoPP10FileSourceE]+0x158): undefined reference to CryptoPP::BufferedTransformation::SetRetrievalChannel(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’
cryptoplugin/urbackupsrv-ZlibCompression.o:(.data.rel.ro._ZTVN8CryptoPP17LowFirstBitWriterE[_ZTVN8CryptoPP17LowFirstBitWriterE]+0x120): undefined reference to CryptoPP::Filter::TransferTo2(CryptoPP::BufferedTransformation&, unsigned long&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' cryptoplugin/urbackupsrv-ZlibCompression.o:(.data.rel.ro._ZTVN8CryptoPP17LowFirstBitWriterE[_ZTVN8CryptoPP17LowFirstBitWriterE]+0x128): undefined reference to CryptoPP::Filter::CopyRangeTo2(CryptoPP::BufferedTransformation&, unsigned long&, unsigned long, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool) const’
cryptoplugin/urbackupsrv-ZlibCompression.o:(.data.rel.ro._ZTVN8CryptoPP17LowFirstBitWriterE[_ZTVN8CryptoPP17LowFirstBitWriterE]+0x130): undefined reference to CryptoPP::BufferedTransformation::ChannelCreatePutSpace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long&)' cryptoplugin/urbackupsrv-ZlibCompression.o:(.data.rel.ro._ZTVN8CryptoPP17LowFirstBitWriterE[_ZTVN8CryptoPP17LowFirstBitWriterE]+0x138): undefined reference to CryptoPP::BufferedTransformation::ChannelPut2(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned char const*, unsigned long, int, bool)’
cryptoplugin/urbackupsrv-ZlibCompression.o:(.data.rel.ro._ZTVN8CryptoPP17LowFirstBitWriterE[_ZTVN8CryptoPP17LowFirstBitWriterE]+0x140): undefined reference to CryptoPP::BufferedTransformation::ChannelPutModifiable2(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*, unsigned long, int, bool)' cryptoplugin/urbackupsrv-ZlibCompression.o:(.data.rel.ro._ZTVN8CryptoPP17LowFirstBitWriterE[_ZTVN8CryptoPP17LowFirstBitWriterE]+0x148): undefined reference to CryptoPP::BufferedTransformation::ChannelFlush(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool, int, bool)’
cryptoplugin/urbackupsrv-ZlibCompression.o:(.data.rel.ro._ZTVN8CryptoPP17LowFirstBitWriterE[_ZTVN8CryptoPP17LowFirstBitWriterE]+0x150): undefined reference to CryptoPP::BufferedTransformation::ChannelMessageSeriesEnd(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, bool)' cryptoplugin/urbackupsrv-ZlibCompression.o:(.data.rel.ro._ZTVN8CryptoPP17LowFirstBitWriterE[_ZTVN8CryptoPP17LowFirstBitWriterE]+0x158): undefined reference to CryptoPP::BufferedTransformation::SetRetrievalChannel(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’
cryptoplugin/urbackupsrv-AESGCMEncryption.o: In function AESGCMEncryption::AESGCMEncryption(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)': /root/urbackup-server-2.1.20/cryptoplugin/AESGCMEncryption.cpp:31: undefined reference to CryptoPP::DEFAULT_CHANNEL[abi:cxx11]’
/root/urbackup-server-2.1.20/cryptoplugin/AESGCMEncryption.cpp:31: undefined reference to `CryptoPP::AuthenticatedEncryptionFilter::AuthenticatedEncryptionFilter(CryptoPP::AuthenticatedSymmetricCipher&, CryptoPP::BufferedTransformation*, bool, int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, CryptoPP::BlockPaddingSchemeDef::BlockPaddingScheme)’
collect2: error: ld returned 1 exit status
*** Error code 1

Stop.
make[2]: stopped in /root/urbackup-server-2.1.20
*** Error code 1

Stop.
make[1]: stopped in /root/urbackup-server-2.1.20
*** Error code 1

Stop.
make: stopped in /root/urbackup-server-2.1.20
root@NAS:~/urbackup-server-2.1.20 #

Did somebody successfully compile it in FreeBSD?

Thanks

PS I have installed cryptopp-5.6.5_3

Hi All,

SOLVED! Cryptopp must be compiled the same GCC version as Urbackup.

If you used crytpopp from pkg repository do make deinstall clean from /usr/ports/security/cryptopp
and then make install.