Bug 247350 - sysutils/bareos-server: ld: error: undefined symbol: ToLowerCase
Summary: sysutils/bareos-server: ld: error: undefined symbol: ToLowerCase
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Jose Alonso Cardenas Marquez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-17 18:27 UTC by ev
Modified: 2020-06-17 18:27 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (acm)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ev 2020-06-17 18:27:14 UTC
FreeBSD-12.1-RELEASE-p6
Bareos 19.2.7 (16 April 2020)

bareos-server is configured like this:

===> The following configuration options are available for bareos-server-18.2.6:
     MTX=off: Install mtx for control of autochanger devices
     NDMP=off: Enable build of NDMP support
     NLS=on: Native Language Support
     PYTHON=off: Python bindings or support
     SCSICRYPTO=on: Build LTO AME crypto plugin
====> Cryptographic library: you have to select exactly one of them
     OPENSSL=on: SSL/TLS support via OpenSSL
     GNUTLS=off: SSL/TLS support via GnuTLS
====> Database support: you have to select exactly one of them
     SQLITE3=off: SQLite 3 database support
     MYSQL=on: MySQL database support
     PGSQL=off: PostgreSQL database support
===> Use 'make config' to modify these settings

Which leads to:

[141/205] : && /usr/bin/c++  -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include -Wformat -Werror=format-security -fdebug-prefix-map=/usr/ports/sysutils/bareos-server/work/bareos-Release-19.2.7/core=. -Wno-unknown-pragmas -Wall -Wno-deprecated-register -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include  -L/usr/local/lib -L/usr/local/lib  -fstack-protector-strong core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/dbcopy.cc.o core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/database_table_descriptions.cc.o core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/database_column_descriptions.cc.o core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/column_description.cc.o core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/database_import.cc.o core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/database_import_mysql.cc.o core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/database_export.cc.o core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/database_export_postgresql.cc.o core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/progress.cc.o  -o core/src/dird/dbcopy/bareos-dbcopy -L/usr/local/lib -Wl,-rpath,/usr/local/lib:/usr/ports/sysutils/bareos-server/work/.build/core/src/cats:  -lintl  -lbareos  core/src/dird/libdird_objects.a  -lbareosfind  core/src/cats/libbareossql.so.19.2.7  -lpam  -lssl  -lcrypto  -lpthread  /usr/local/lib/libjansson.so  core/src/cats/libbareoscats.so.19.2.7  -lintl  -lbareos && :
FAILED: core/src/dird/dbcopy/bareos-dbcopy
: && /usr/bin/c++  -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include -Wformat -Werror=format-security -fdebug-prefix-map=/usr/ports/sysutils/bareos-server/work/bareos-Release-19.2.7/core=. -Wno-unknown-pragmas -Wall -Wno-deprecated-register -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include  -L/usr/local/lib -L/usr/local/lib  -fstack-protector-strong core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/dbcopy.cc.o core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/database_table_descriptions.cc.o core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/database_column_descriptions.cc.o core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/column_description.cc.o core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/database_import.cc.o core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/database_import_mysql.cc.o core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/database_export.cc.o core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/database_export_postgresql.cc.o core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/progress.cc.o  -o core/src/dird/dbcopy/bareos-dbcopy -L/usr/local/lib -Wl,-rpath,/usr/local/lib:/usr/ports/sysutils/bareos-server/work/.build/core/src/cats:  -lintl  -lbareos  core/src/dird/libdird_objects.a  -lbareosfind  core/src/cats/libbareossql.so.19.2.7  -lpam  -lssl  -lcrypto  -lpthread  /usr/local/lib/libjansson.so  core/src/cats/libbareoscats.so.19.2.7  -lintl  -lbareos && :
ld: error: undefined symbol: ToLowerCase(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
>>> referenced by database_table_descriptions.cc
>>>               core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/database_table_descriptions.cc.o:(DatabaseTableDescriptions::GetTableDescription(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const)

ld: error: undefined symbol: ToLowerCase(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
>>> referenced by database_table_descriptions.cc
>>>               core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/database_table_descriptions.cc.o:(DatabaseTableDescriptions::GetColumnDescription(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const)

ld: error: undefined symbol: ToLowerCase(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
>>> referenced by database_column_descriptions.cc
>>>               core/src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/database_column_descriptions.cc.o:(DatabaseColumnDescriptions::SelectColumnDescriptions(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int (*)(void*, int, char**))::$_0::operator()(std::__1::unique_ptr<ColumnDescription, std::__1::default_delete<ColumnDescription> > const&, std::__1::unique_ptr<ColumnDescription, std::__1::default_delete<ColumnDescription> > const&) const)
c++: error: linker command failed with exit code 1 (use -v to see invocation)
[142/205] /usr/bin/c++  -D_FILE_OFFSET_BITS=64 -I/usr/ports/sysutils/bareos-server/work/bareos-Release-19.2.7/core/src -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include -Wformat -Werror=format-security -fdebug-prefix-map=/usr/ports/sysutils/bareos-server/work/bareos-Release-19.2.7/core=. -Wno-unknown-pragmas -Wall -Wno-deprecated-register -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include   -std=gnu++11 -MD -MT core/src/stored/CMakeFiles/btape.dir/btape.cc.o -MF core/src/stored/CMakeFiles/btape.dir/btape.cc.o.d -o core/src/stored/CMakeFiles/btape.dir/btape.cc.o -c /usr/ports/sysutils/bareos-server/work/bareos-Release-19.2.7/core/src/stored/btape.cc
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/sysutils/bareos-server
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/bareos-server