View Issue Details

IDProjectCategoryView StatusLast Update
0001204bareos-core[All Projects] installer / packagespublic2020-03-10 12:34
Reporterlukas13Assigned Toarogge 
PrioritynormalSeveritymajorReproducibilityalways
Status assignedResolutionopen 
PlatformRaspberry PIOSRaspbianOS Version10
Product Version19.2.6 
Fixed in Version 
Summary0001204: Building source package fails due to missing gmock.h
DescriptionBuilding the debian source package fails due to the missing header file gmock.h. This should be checked during the build configure and raise an exception.
I was able to fix the problem by executing sudo apt-get install libgmock-dev google-mock
I appended the truncated output during the build in additional information
Steps To ReproduceTry to build the debian package from source for the arm architecture following this guide: https://wiki.debian.org/BuildingTutorial (replace fdupes with bareos).
Additional InformationTruncated build output:

make[3]: Entering directory '/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf'
[ 90%] Building CXX object src/stored/CMakeFiles/bscan.dir/bscan.cc.o
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/stored && /usr/bin/c++ -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I/home/pi/Downloads/src/debian/bareos-19.2.6/src -I/usr/include/glusterfs -I/home/pi/Downloads/src/debian/bareos-19.2.6/src/fastlz/include -isystem /usr/include/python2.7 -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -std=gnu++11 -o CMakeFiles/bscan.dir/bscan.cc.o -c /home/pi/Downloads/src/debian/bareos-19.2.6/src/stored/bscan.cc
[ 90%] Linking CXX executable bareos-tray-monitor
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/qt-tray-monitor && /usr/bin/cmake -E cmake_link_script CMakeFiles/bareos-tray-monitor.dir/link.txt --verbose=1
/usr/bin/c++ -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -Wl,-z,relro -rdynamic CMakeFiles/bareos-tray-monitor.dir/tray-monitor.cc.o CMakeFiles/bareos-tray-monitor.dir/authenticate.cc.o CMakeFiles/bareos-tray-monitor.dir/tray_conf.cc.o CMakeFiles/bareos-tray-monitor.dir/traymenu.cc.o CMakeFiles/bareos-tray-monitor.dir/systemtrayicon.cc.o CMakeFiles/bareos-tray-monitor.dir/mainwindow.cc.o CMakeFiles/bareos-tray-monitor.dir/monitoritem.cc.o CMakeFiles/bareos-tray-monitor.dir/monitoritemthread.cc.o CMakeFiles/bareos-tray-monitor.dir/bareos-tray-monitor_autogen/mocs_compilation.cpp.o CMakeFiles/bareos-tray-monitor.dir/bareos-tray-monitor_autogen/EWIEGA46WW/qrc_main.cpp.o -o bareos-tray-monitor -Wl,-rpath,/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/lib:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/fastlz: /usr/lib/arm-linux-gnueabihf/libQt5Widgets.so.5.11.3 ../lib/libbareos.so.19.2.6 /usr/lib/arm-linux-gnueabihf/libQt5Gui.so.5.11.3 /usr/lib/arm-linux-gnueabihf/libQt5Core.so.5.11.3 -ldl ../fastlz/libbareosfastlz.so.19.2.6 -lssl -lcrypto -lpthread -lz -lacl -llzo2 -lcap -ljansson
[ 90%] Building CXX object src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/database_import.cc.o
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/dird/dbcopy && /usr/bin/c++ -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I/home/pi/Downloads/src/debian/bareos-19.2.6/src -I/usr/include/glusterfs -I/home/pi/Downloads/src/debian/bareos-19.2.6/src/fastlz/include -I/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/ndmp -isystem /usr/include/python2.7 -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -std=gnu++11 -o CMakeFiles/bareos-dbcopy.dir/database_import.cc.o -c /home/pi/Downloads/src/debian/bareos-19.2.6/src/dird/dbcopy/database_import.cc
make[3]: Leaving directory '/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf'
[ 90%] Built target bareos-tray-monitor
[ 90%] Building CXX object src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/database_import_mysql.cc.o
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/dird/dbcopy && /usr/bin/c++ -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I/home/pi/Downloads/src/debian/bareos-19.2.6/src -I/usr/include/glusterfs -I/home/pi/Downloads/src/debian/bareos-19.2.6/src/fastlz/include -I/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/ndmp -isystem /usr/include/python2.7 -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -std=gnu++11 -o CMakeFiles/bareos-dbcopy.dir/database_import_mysql.cc.o -c /home/pi/Downloads/src/debian/bareos-19.2.6/src/dird/dbcopy/database_import_mysql.cc
[ 91%] Linking CXX executable bscan
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/stored && /usr/bin/cmake -E cmake_link_script CMakeFiles/bscan.dir/link.txt --verbose=1
/usr/bin/c++ -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -Wl,-z,relro -rdynamic CMakeFiles/bscan.dir/bscan.cc.o -o bscan -Wl,-rpath,/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/stored:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/findlib:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/cats:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/lib:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/fastlz: libbareossd.so ../findlib/libbareosfind.so.19.2.6 ../cats/libbareossql.so.19.2.6 ../cats/libbareoscats.so.19.2.6 ../lib/libbareos.so.19.2.6 -ldl ../fastlz/libbareosfastlz.so.19.2.6 -lssl -lcrypto -lpthread -lz -lacl -llzo2 -lcap -ljansson
[ 91%] Building CXX object src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/database_export.cc.o
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/dird/dbcopy && /usr/bin/c++ -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I/home/pi/Downloads/src/debian/bareos-19.2.6/src -I/usr/include/glusterfs -I/home/pi/Downloads/src/debian/bareos-19.2.6/src/fastlz/include -I/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/ndmp -isystem /usr/include/python2.7 -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -std=gnu++11 -o CMakeFiles/bareos-dbcopy.dir/database_export.cc.o -c /home/pi/Downloads/src/debian/bareos-19.2.6/src/dird/dbcopy/database_export.cc
make[3]: Leaving directory '/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf'
[ 91%] Built target bscan
[ 91%] Building CXX object src/dird/dbcopy/CMakeFiles/bareos-dbcopy.dir/database_export_postgresql.cc.o
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/dird/dbcopy && /usr/bin/c++ -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I/home/pi/Downloads/src/debian/bareos-19.2.6/src -I/usr/include/glusterfs -I/home/pi/Downloads/src/debian/bareos-19.2.6/src/fastlz/include -I/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/ndmp -isystem /usr/include/python2.7 -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -std=gnu++11 -o CMakeFiles/bareos-dbcopy.dir/database_export_postgresql.cc.o -c /home/pi/Downloads/src/debian/bareos-19.2.6/src/dird/dbcopy/database_export_postgresql.cc
[ 91%] Building CXX object src/dird/CMakeFiles/bareos-dbcheck.dir/dird_globals.cc.o
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/dird && /usr/bin/c++ -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I/home/pi/Downloads/src/debian/bareos-19.2.6/src -I/usr/include/glusterfs -I/home/pi/Downloads/src/debian/bareos-19.2.6/src/fastlz/include -isystem /usr/include/python2.7 -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -std=gnu++11 -o CMakeFiles/bareos-dbcheck.dir/dird_globals.cc.o -c /home/pi/Downloads/src/debian/bareos-19.2.6/src/dird/dird_globals.cc
[ 91%] Building CXX object src/dird/CMakeFiles/bareos-dbcheck.dir/ua_acl.cc.o
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/dird && /usr/bin/c++ -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I/home/pi/Downloads/src/debian/bareos-19.2.6/src -I/usr/include/glusterfs -I/home/pi/Downloads/src/debian/bareos-19.2.6/src/fastlz/include -isystem /usr/include/python2.7 -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -std=gnu++11 -o CMakeFiles/bareos-dbcheck.dir/ua_acl.cc.o -c /home/pi/Downloads/src/debian/bareos-19.2.6/src/dird/ua_acl.cc
make -f src/tests/CMakeFiles/show_cmd_available_resources_equals_config_resources.dir/build.make src/tests/CMakeFiles/show_cmd_available_resources_equals_config_resources.dir/depend
make[3]: Entering directory '/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf'
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pi/Downloads/src/debian/bareos-19.2.6 /home/pi/Downloads/src/debian/bareos-19.2.6/src/tests /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/tests /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/tests/CMakeFiles/show_cmd_available_resources_equals_config_resources.dir/DependInfo.cmake --color=
Scanning dependencies of target show_cmd_available_resources_equals_config_resources
make[3]: Leaving directory '/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf'
make -f src/tests/CMakeFiles/show_cmd_available_resources_equals_config_resources.dir/build.make src/tests/CMakeFiles/show_cmd_available_resources_equals_config_resources.dir/build
make[3]: Entering directory '/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf'
[ 91%] Building CXX object src/tests/CMakeFiles/show_cmd_available_resources_equals_config_resources.dir/show_cmd_available_resources_equals_config_resources.cc.o
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/tests && /usr/bin/c++ -DRELATIVE_PROJECT_SOURCE_DIR=\"../../../src/tests\" -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I/home/pi/Downloads/src/debian/bareos-19.2.6/src -I/usr/include/glusterfs -I/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/ndmp -I/home/pi/Downloads/src/debian/bareos-19.2.6/src/fastlz/include -isystem /usr/include/python2.7 -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -std=gnu++11 -o CMakeFiles/show_cmd_available_resources_equals_config_resources.dir/show_cmd_available_resources_equals_config_resources.cc.o -c /home/pi/Downloads/src/debian/bareos-19.2.6/src/tests/show_cmd_available_resources_equals_config_resources.cc
[ 92%] Linking CXX executable bareos-dbcopy
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/dird/dbcopy && /usr/bin/cmake -E cmake_link_script CMakeFiles/bareos-dbcopy.dir/link.txt --verbose=1
/usr/bin/c++ -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -Wl,-z,relro -rdynamic CMakeFiles/bareos-dbcopy.dir/dbcopy.cc.o CMakeFiles/bareos-dbcopy.dir/database_table_descriptions.cc.o CMakeFiles/bareos-dbcopy.dir/database_column_descriptions.cc.o CMakeFiles/bareos-dbcopy.dir/column_description.cc.o CMakeFiles/bareos-dbcopy.dir/database_import.cc.o CMakeFiles/bareos-dbcopy.dir/database_import_mysql.cc.o CMakeFiles/bareos-dbcopy.dir/database_export.cc.o CMakeFiles/bareos-dbcopy.dir/database_export_postgresql.cc.o -o bareos-dbcopy -Wl,-rpath,/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/findlib:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/cats:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/lmdb:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/ndmp:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/lib:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/fastlz: ../libdird_objects.a ../../findlib/libbareosfind.so.19.2.6 ../../cats/libbareossql.so.19.2.6 ../../lmdb/libbareoslmdb.so.19.2.6 ../../ndmp/libbareosndmp.so.19.2.6 ../../cats/libbareoscats.so.19.2.6 ../../lib/libbareos.so.19.2.6 -ldl ../../fastlz/libbareosfastlz.so.19.2.6 -lssl -lcrypto -lpthread -lz -lacl -llzo2 -lcap -ljansson
make[3]: Leaving directory '/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf'
[ 92%] Built target bareos-dbcopy
[ 92%] Building CXX object src/dird/CMakeFiles/bareos-dbcheck.dir/ua_audit.cc.o
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/dird && /usr/bin/c++ -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I/home/pi/Downloads/src/debian/bareos-19.2.6/src -I/usr/include/glusterfs -I/home/pi/Downloads/src/debian/bareos-19.2.6/src/fastlz/include -isystem /usr/include/python2.7 -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -std=gnu++11 -o CMakeFiles/bareos-dbcheck.dir/ua_audit.cc.o -c /home/pi/Downloads/src/debian/bareos-19.2.6/src/dird/ua_audit.cc
make -f src/tests/CMakeFiles/ndmp_address_translate_test.dir/build.make src/tests/CMakeFiles/ndmp_address_translate_test.dir/depend
make[3]: Entering directory '/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf'
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pi/Downloads/src/debian/bareos-19.2.6 /home/pi/Downloads/src/debian/bareos-19.2.6/src/tests /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/tests /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/tests/CMakeFiles/ndmp_address_translate_test.dir/DependInfo.cmake --color=
Scanning dependencies of target ndmp_address_translate_test
make[3]: Leaving directory '/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf'
make -f src/tests/CMakeFiles/ndmp_address_translate_test.dir/build.make src/tests/CMakeFiles/ndmp_address_translate_test.dir/build
make[3]: Entering directory '/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf'
[ 92%] Building CXX object src/tests/CMakeFiles/ndmp_address_translate_test.dir/ndmp_address_translate_test.cc.o
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/tests && /usr/bin/c++ -DRELATIVE_PROJECT_SOURCE_DIR=\"../../../src/tests\" -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I/home/pi/Downloads/src/debian/bareos-19.2.6/src -I/usr/include/glusterfs -I/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/ndmp -I/home/pi/Downloads/src/debian/bareos-19.2.6/src/fastlz/include -isystem /usr/include/python2.7 -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -std=gnu++11 -o CMakeFiles/ndmp_address_translate_test.dir/ndmp_address_translate_test.cc.o -c /home/pi/Downloads/src/debian/bareos-19.2.6/src/tests/ndmp_address_translate_test.cc
make -f src/tests/CMakeFiles/run_on_incoming_connect_interval.dir/build.make src/tests/CMakeFiles/run_on_incoming_connect_interval.dir/depend
make[3]: Entering directory '/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf'
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pi/Downloads/src/debian/bareos-19.2.6 /home/pi/Downloads/src/debian/bareos-19.2.6/src/tests /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/tests /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/tests/CMakeFiles/run_on_incoming_connect_interval.dir/DependInfo.cmake --color=
Scanning dependencies of target run_on_incoming_connect_interval
make[3]: Leaving directory '/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf'
make -f src/tests/CMakeFiles/run_on_incoming_connect_interval.dir/build.make src/tests/CMakeFiles/run_on_incoming_connect_interval.dir/build
make[3]: Entering directory '/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf'
[ 92%] Building CXX object src/tests/CMakeFiles/run_on_incoming_connect_interval.dir/run_on_incoming_connect_interval.cc.o
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/tests && /usr/bin/c++ -DRELATIVE_PROJECT_SOURCE_DIR=\"../../../src/tests\" -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I/home/pi/Downloads/src/debian/bareos-19.2.6/src -I/usr/include/glusterfs -I/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/ndmp -I/home/pi/Downloads/src/debian/bareos-19.2.6/src/fastlz/include -isystem /usr/include/python2.7 -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -std=gnu++11 -o CMakeFiles/run_on_incoming_connect_interval.dir/run_on_incoming_connect_interval.cc.o -c /home/pi/Downloads/src/debian/bareos-19.2.6/src/tests/run_on_incoming_connect_interval.cc
/home/pi/Downloads/src/debian/bareos-19.2.6/src/tests/run_on_incoming_connect_interval.cc:29:10: fatal error: gmock/gmock.h: No such file or directory
 #include "gmock/gmock.h"
          ^~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [src/tests/CMakeFiles/run_on_incoming_connect_interval.dir/build.make:66: src/tests/CMakeFiles/run_on_incoming_connect_interval.dir/run_on_incoming_connect_interval.cc.o] Error 1
make[3]: Leaving directory '/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf'
make[2]: *** [CMakeFiles/Makefile2:2822: src/tests/CMakeFiles/run_on_incoming_connect_interval.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 93%] Building CXX object src/dird/CMakeFiles/bareos-dbcheck.dir/run_conf.cc.o
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/dird && /usr/bin/c++ -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I/home/pi/Downloads/src/debian/bareos-19.2.6/src -I/usr/include/glusterfs -I/home/pi/Downloads/src/debian/bareos-19.2.6/src/fastlz/include -isystem /usr/include/python2.7 -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -std=gnu++11 -o CMakeFiles/bareos-dbcheck.dir/run_conf.cc.o -c /home/pi/Downloads/src/debian/bareos-19.2.6/src/dird/run_conf.cc
[ 93%] Building CXX object src/tests/CMakeFiles/ndmp_address_translate_test.dir/__/dird/ndmp_slot2elemaddr.cc.o
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/tests && /usr/bin/c++ -DRELATIVE_PROJECT_SOURCE_DIR=\"../../../src/tests\" -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I/home/pi/Downloads/src/debian/bareos-19.2.6/src -I/usr/include/glusterfs -I/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/ndmp -I/home/pi/Downloads/src/debian/bareos-19.2.6/src/fastlz/include -isystem /usr/include/python2.7 -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -std=gnu++11 -o CMakeFiles/ndmp_address_translate_test.dir/__/dird/ndmp_slot2elemaddr.cc.o -c /home/pi/Downloads/src/debian/bareos-19.2.6/src/dird/ndmp_slot2elemaddr.cc
[ 93%] Linking CXX executable show_cmd_available_resources_equals_config_resources
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/tests && /usr/bin/cmake -E cmake_link_script CMakeFiles/show_cmd_available_resources_equals_config_resources.dir/link.txt --verbose=1
/usr/bin/c++ -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -Wl,-z,relro CMakeFiles/show_cmd_available_resources_equals_config_resources.dir/show_cmd_available_resources_equals_config_resources.cc.o -o show_cmd_available_resources_equals_config_resources -Wl,-rpath,/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/findlib:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/cats:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/ndmp:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/lib:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/fastlz ../dird/libdird_objects.a ../findlib/libbareosfind.so.19.2.6 ../cats/libbareossql.so.19.2.6 /usr/lib/arm-linux-gnueabihf/libgtest.a /usr/lib/arm-linux-gnueabihf/libgtest_main.a ../ndmp/libbareosndmp.so.19.2.6 ../cats/libbareoscats.so.19.2.6 ../lib/libbareos.so.19.2.6 -ldl ../fastlz/libbareosfastlz.so.19.2.6 /usr/lib/arm-linux-gnueabihf/libssl.so /usr/lib/arm-linux-gnueabihf/libcrypto.so /usr/lib/arm-linux-gnueabihf/libpthread.so /usr/lib/arm-linux-gnueabihf/libz.so /usr/lib/arm-linux-gnueabihf/libacl.so /usr/lib/arm-linux-gnueabihf/liblzo2.so /usr/lib/arm-linux-gnueabihf/libcap.so /usr/lib/arm-linux-gnueabihf/libjansson.so
[ 93%] Building CXX object src/dird/CMakeFiles/bareos-dbcheck.dir/inc_conf.cc.o
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/dird && /usr/bin/c++ -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I/home/pi/Downloads/src/debian/bareos-19.2.6/src -I/usr/include/glusterfs -I/home/pi/Downloads/src/debian/bareos-19.2.6/src/fastlz/include -isystem /usr/include/python2.7 -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -std=gnu++11 -o CMakeFiles/bareos-dbcheck.dir/inc_conf.cc.o -c /home/pi/Downloads/src/debian/bareos-19.2.6/src/dird/inc_conf.cc
make[3]: Leaving directory '/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf'
[ 93%] Built target show_cmd_available_resources_equals_config_resources
[ 93%] Linking CXX executable ndmp_address_translate_test
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/tests && /usr/bin/cmake -E cmake_link_script CMakeFiles/ndmp_address_translate_test.dir/link.txt --verbose=1
/usr/bin/c++ -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -Wl,-z,relro CMakeFiles/ndmp_address_translate_test.dir/ndmp_address_translate_test.cc.o CMakeFiles/ndmp_address_translate_test.dir/__/dird/ndmp_slot2elemaddr.cc.o -o ndmp_address_translate_test -Wl,-rpath,/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/stored:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/cats:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/findlib:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/lmdb:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/ndmp:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/lib:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/fastlz ../stored/libstored_objects.a ../dird/libdird_objects.a ../console/libconsole_objects.a ../stored/libbareossd.so ../cats/libbareossql.so.19.2.6 ../findlib/libbareosfind.so.19.2.6 ../lmdb/libbareoslmdb.so.19.2.6 ../ndmp/libbareosndmp.so.19.2.6 /usr/lib/arm-linux-gnueabihf/libjansson.so /usr/lib/arm-linux-gnueabihf/libgtest.a /usr/lib/arm-linux-gnueabihf/libgtest_main.a ../cats/libbareoscats.so.19.2.6 ../lib/libbareos.so.19.2.6 -ldl ../fastlz/libbareosfastlz.so.19.2.6 /usr/lib/arm-linux-gnueabihf/libssl.so /usr/lib/arm-linux-gnueabihf/libcrypto.so /usr/lib/arm-linux-gnueabihf/libpthread.so /usr/lib/arm-linux-gnueabihf/libz.so /usr/lib/arm-linux-gnueabihf/libacl.so /usr/lib/arm-linux-gnueabihf/liblzo2.so /usr/lib/arm-linux-gnueabihf/libcap.so /usr/lib/arm-linux-gnueabihf/libjansson.so
make[3]: Leaving directory '/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf'
[ 93%] Built target ndmp_address_translate_test
[ 93%] Linking CXX executable bareos-dbcheck
cd /home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/dird && /usr/bin/cmake -E cmake_link_script CMakeFiles/bareos-dbcheck.dir/link.txt --verbose=1
/usr/bin/c++ -g -O2 -fdebug-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/home/pi/Downloads/src/debian/bareos-19.2.6=. -Wno-unknown-pragmas -Wall -Wl,-z,relro -rdynamic CMakeFiles/bareos-dbcheck.dir/dbcheck.cc.o CMakeFiles/bareos-dbcheck.dir/dird_conf.cc.o CMakeFiles/bareos-dbcheck.dir/dird_globals.cc.o CMakeFiles/bareos-dbcheck.dir/ua_acl.cc.o CMakeFiles/bareos-dbcheck.dir/ua_audit.cc.o CMakeFiles/bareos-dbcheck.dir/run_conf.cc.o CMakeFiles/bareos-dbcheck.dir/inc_conf.cc.o -o bareos-dbcheck -Wl,-rpath,/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/cats:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/findlib:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/lib:/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf/src/fastlz: ../cats/libbareossql.so.19.2.6 ../findlib/libbareosfind.so.19.2.6 ../cats/libbareoscats.so.19.2.6 ../lib/libbareos.so.19.2.6 -ldl ../fastlz/libbareosfastlz.so.19.2.6 -lssl -lcrypto -lpthread -lz -lacl -llzo2 -lcap -ljansson
make[3]: Leaving directory '/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf'
[ 93%] Built target bareos-dbcheck
make[2]: Leaving directory '/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf'
make[1]: *** [Makefile:144: all] Error 2
make[1]: Leaving directory '/home/pi/Downloads/src/debian/bareos-19.2.6/obj-arm-linux-gnueabihf'
dh_auto_build: cd obj-arm-linux-gnueabihf && make -j4 returned exit code 2
make: *** [debian/rules:137: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -b failed
TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-19.2: impact
bareos-19.2: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action

Activities

arogge

arogge

2020-03-10 12:31

developer   ~0003893

This should have been fixed with 796d53bd672cfbd7427eb54d08d12322a5fa21cb, so the current nightly should build correctly.
The issue you're seeing happens when you have gtest, but not gmock installed. Please make sure to read the header of debian/control and set the correct build-profiles for your system.
If you don't set them correctly, you can still build packages, but the build-dependencies will not be 100% correct and you may miss a feature or two.
lukas13

lukas13

2020-03-10 12:34

reporter   ~0003894

Thank you for looking into this and the advice.

Issue History

Date Modified Username Field Change
2020-02-26 13:13 lukas13 New Issue
2020-03-10 12:31 arogge Assigned To => arogge
2020-03-10 12:31 arogge Status new => feedback
2020-03-10 12:31 arogge Note Added: 0003893
2020-03-10 12:34 lukas13 Note Added: 0003894
2020-03-10 12:34 lukas13 Status feedback => assigned