View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001607 | bareos-core | General | public | 2024-02-28 20:34 | 2024-02-29 10:58 |
Reporter | MSK | Assigned To | bruno-at-bareos | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | x86 | OS | SLES | OS Version | 15 |
Summary | 0001607: Compilation fails | ||||
Description | Compilation of bareos version 23.0.2 fails | ||||
Steps To Reproduce | build with these variables: + CC=gcc-13 + export CC + CXX=g++-13 + export CXX + CFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g0' + export CFLAGS + CXXFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g0' + export CXXFLAGS + cmake .. -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DBUILD_SHARED_LIBS:BOOL=ON -DDEBUG_PREFIX_MAP:BOOL=OFF -Dprefix=/usr -Dlibdir=/usr/lib64/bareos -Dsbindir=/usr/sbin -Dsbin-perm=755 -Dsysconfdir=/etc -Dconfdir=/etc/bareos -Dmandir=/usr/share/man -Ddocdir=/usr/share/doc/packages/bareos -Darchivedir=/var/lib/bareos/storage -Dbackenddir=/usr/lib64/bareos/backends -Dscriptdir=/usr/lib/bareos/scripts -Dworkingdir=/var/lib/bareos -Dplugindir=/usr/lib64/bareos/plugins -Dbsrdir=/var/lib/bareos -Dlogdir=/var/log/bareos -Dsubsysdir=/var/lock -Dreadline=yes -Dbatch-insert=yes -Ddynamic-cats-backends=yes -Ddynamic-storage-backends=yes -Dscsi-crypto=yes -Dlmdb=yes -Dndmp=yes -Dacl=yes -Dxattr=yes -Dpostgresql=yes -Ddir-user=bareos -Ddir-group=bareos -Dsd-user=bareos -Dsd-group=bareos -Dfd-user=root -Dfd-group=bareos -Ddir-password=XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX -Dfd-password=XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX -Dsd-password=XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX -Dmon-dir-password=XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX -Dmon-fd-password=XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX -Dmon-sd-password=XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX -Dopenssl=yes -Dbasename=XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX -Dhostname=XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX -Dsystemd=yes -Dincludes=yes -Dwebuiconfdir=/etc/bareos-webui -DVERSION_STRING=23.0.2 | ||||
Additional Information | [ 74%] Linking CXX executable addresses_and_ports_config cd /usr/src/packages/BUILD/bareos/cmake-build/core/src/tests && /usr/bin/cmake -E cmake_link_script CMakeFiles/addresses_and_ports_config.dir/link.txt --verbose=1 ccache /usr/bin/g++-13 -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g0 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/usr/src/packages/BUILD/bareos/core=. -Wno-invalid-offsetof -Werror -Wall -Wextra -Wl,--as-needed -fPIE -pie CMakeFiles/addresses_and_ports_config.dir/addresses_and_ports_config.cc.o -o addresses_and_ports_config -Wl,-rpath,/opt/intel/oneapi_2023/intelpython3/lib:/usr/src/packages/BUILD/bareos/cmake-build/core/src/lmdb:/usr/src/packages/BUILD/bareos/cmake-build/core/src/findlib:/usr/src/packages/BUILD/bareos/cmake-build/core/src/cats:/usr/src/packages/BUILD/bareos/cmake-build/core/src/ndmp:/usr/src/packages/BUILD/bareos/cmake-build/core/src/stored:/usr/src/packages/BUILD/bareos/cmake-build/core/src/lib:/usr/src/packages/BUILD/bareos/cmake-build/core/src/fastlz ../dird/libdird_objects.a libtesting_common.a /usr/lib64/libpam.so /opt/intel/oneapi_2023/intelpython3/lib/libgtest_main.so.1.14.0 ../dird/libdird_objects.a /usr/lib64/libssl.so /usr/lib64/libcrypto.so ../lmdb/libbareoslmdb.so.23.0.2 ../findlib/libbareosfind.so.23.0.2 ../cats/libbareossql.so.23.0.2 /usr/lib64/libpq.so /usr/lib64/libpam.so /opt/intel/oneapi_2023/intelpython3/lib/libgtest.so.1.14.0 ../stored/libstored_objects.a -lpthread ../ndmp/libbareosndmp.so.23.0.2 /usr/lib64/libtirpc.so ../console/libconsole_objects.a ../stored/libbareossd.so.23.0.2 ../lib/libbareos.so.23.0.2 /usr/lib64/libjansson.so -Wl,-rpath-link,/usr/src/packages/BUILD/bareos/cmake-build/core/src/fastlz /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/addresses_and_ports_config.dir/addresses_and_ports_config.cc.o: in function `create_and_bind_v6socket(int, int) [clone .constprop.0]': addresses_and_ports_config.cc:(.text+0x68b): undefined reference to `testing::internal::GetBoolAssertionFailureMessage(testing::AssertionResult const&, char const*, char const*, char const*)' /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/addresses_and_ports_config.dir/addresses_and_ports_config.cc.o: in function `create_and_bind_v4socket(int, int) [clone .constprop.0]': addresses_and_ports_config.cc:(.text+0x890): undefined reference to `testing::internal::GetBoolAssertionFailureMessage(testing::AssertionResult const&, char const*, char const*, char const*)' /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/addresses_and_ports_config.dir/addresses_and_ports_config.cc.o: in function `try_binding_director_port(std::string, int, int)': addresses_and_ports_config.cc:(.text+0xad4): undefined reference to `testing::internal::GetBoolAssertionFailureMessage(testing::AssertionResult const&, char const*, char const*, char const*)' /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/addresses_and_ports_config.dir/addresses_and_ports_config.cc.o: in function `check_addresses_list(std::string, std::vector<std::string, std::allocator<std::string> >)': addresses_and_ports_config.cc:(.text+0x1680): undefined reference to `testing::internal::GetBoolAssertionFailureMessage(testing::AssertionResult const&, char const*, char const*, char const*)' /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/addresses_and_ports_config.dir/addresses_and_ports_config.cc.o: in function `AddressesAndPortsConfigurationSetup_default_config_values_Test::TestBody()': addresses_and_ports_config.cc:(.text+0x1bb9): undefined reference to `testing::internal::GetBoolAssertionFailureMessage(testing::AssertionResult const&, char const*, char const*, char const*)' /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/addresses_and_ports_config.dir/addresses_and_ports_config.cc.o:addresses_and_ports_config.cc:(.text+0x2209): more undefined references to `testing::internal::GetBoolAssertionFailureMessage(testing::AssertionResult const&, char const*, char const*, char const*)' follow /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/addresses_and_ports_config.dir/addresses_and_ports_config.cc.o: in function `std::string testing::PrintToString<std::vector<std::string, std::allocator<std::string> > >(std::vector<std::string, std::allocator<std::string> > const&)': addresses_and_ports_config.cc:(.text._ZN7testing13PrintToStringISt6vectorISsSaISsEEEESsRKT_[_ZN7testing13PrintToStringISt6vectorISsSaISsEEEESsRKT_]+0x1d9): undefined reference to `testing::internal::PrintStringTo(std::string const&, std::ostream*)' /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/addresses_and_ports_config.dir/addresses_and_ports_config.cc.o: in function `testing::AssertionResult testing::internal::CmpHelperEQ<std::vector<std::string, std::allocator<std::string> >, std::vector<std::string, std::allocator<std::string> > >(char const*, char const*, std::vector<std::string, std::allocator<std::string> > const&, std::vector<std::string, std::allocator<std::string> > const&)': addresses_and_ports_config.cc:(.text._ZN7testing8internal11CmpHelperEQISt6vectorISsSaISsEES4_EENS_15AssertionResultEPKcS7_RKT_RKT0_[_ZN7testing8internal11CmpHelperEQISt6vectorISsSaISsEES4_EENS_15AssertionResultEPKcS7_RKT_RKT0_]+0x6b): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::string const&, std::string const&, bool)' /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: libtesting_common.a(testing_dir_common.cc.o): in function `DirectorPrepareResources(std::string const&)': testing_dir_common.cc:(.text+0x232): undefined reference to `testing::Message::GetString() const' /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: testing_dir_common.cc:(.text+0x2c0): undefined reference to `testing::Message::GetString() const' /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: testing_dir_common.cc:(.text+0x347): undefined reference to `testing::Message::GetString() const' /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: testing_dir_common.cc:(.text+0x3ce): undefined reference to `testing::Message::GetString() const' /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: testing_dir_common.cc:(.text+0x455): undefined reference to `testing::Message::GetString() const' /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: libtesting_common.a(testing_dir_common.cc.o):testing_dir_common.cc:(.text+0x4dc): more undefined references to `testing::Message::GetString() const' follow /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: libtesting_common.a(testing_dir_common.cc.o): in function `DirectorPrepareResources(std::string const&)': testing_dir_common.cc:(.text+0xb70): undefined reference to `testing::internal::GetBoolAssertionFailureMessage(testing::AssertionResult const&, char const*, char const*, char const*)' collect2: error: ld returned 1 exit status make[2]: *** [core/src/tests/CMakeFiles/addresses_and_ports_config.dir/build.make:120: core/src/tests/addresses_and_ports_config] Error 1 make[2]: Leaving directory '/usr/src/packages/BUILD/bareos/cmake-build' make[1]: *** [CMakeFiles/Makefile2:4012: core/src/tests/CMakeFiles/addresses_and_ports_config.dir/all] Error 2 make[1]: Leaving directory '/usr/src/packages/BUILD/bareos/cmake-build' make: *** [Makefile:169: all] Error 2 | ||||
Tags | No tags attached. | ||||
Issue can be closed. Reason was some kind of incompatibility with Intel Compiler in $PATH | |
see last remarks | |
Date Modified | Username | Field | Change |
---|---|---|---|
2024-02-28 20:34 | MSK | New Issue | |
2024-02-28 21:24 | MSK | Note Added: 0005821 | |
2024-02-29 10:58 | bruno-at-bareos | Assigned To | => bruno-at-bareos |
2024-02-29 10:58 | bruno-at-bareos | Status | new => closed |
2024-02-29 10:58 | bruno-at-bareos | Resolution | open => no change required |
2024-02-29 10:58 | bruno-at-bareos | Note Added: 0005822 |