I presume this is a simple package missing problem since it compiles clean in a non-schroot environment but fails in the disco schroot.
I have verified that libpthread-stubs0-dev is installed in the environment. TestEndianess.c: /* A 16 bit integer is required. */ typedef unsigned short cmakeint16; /* On a little endian machine, these 16bit ints will give "THIS IS LITTLE ENDIAN." On a big endian machine the characters will be exchanged pairwise. */ const cmakeint16 info_little[] = {0x4854, 0x5349, 0x4920, 0x2053, 0x494c, 0x5454, 0x454c, 0x4520, 0x444e, 0x4149, 0x2e4e, 0x0000}; /* on a big endian machine, these 16bit ints will give "THIS IS BIG ENDIAN." On a little endian machine the characters will be exchanged pairwise. */ const cmakeint16 info_big[] = {0x5448, 0x4953, 0x2049, 0x5320, 0x4249, 0x4720, 0x454e, 0x4449, 0x414e, 0x2e2e, 0x0000}; #ifdef __CLASSIC_C__ int main(argc, argv) int argc; char *argv[]; #else int main(int argc, char *argv[]) #endif { int require = 0; require += info_little[argc]; require += info_big[argc]; (void)argv; return require; } Performing C SOURCE FILE Test have_mod_mask succeeded with the following output: Change Dir: /home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_58d6e/fast" make[2]: Entering directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_58d6e.dir/build.make CMakeFiles/cmTC_58d6e.dir/build make[3]: Entering directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_58d6e.dir/src.c.o /usr/bin/cc -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/libdrm -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wno-error=deprecated-declarations -std=gnu11 -Wno-error=parentheses -Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused -g -O2 -fdebug-prefix-map=/home/steve/Projects/GnuCash/gnucash=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Dhave_mod_mask -o CMakeFiles/cmTC_58d6e.dir/src.c.o -c /home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_58d6e /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_58d6e.dir/link.txt --verbose=1 /usr/bin/cc -Wno-error=deprecated-declarations -std=gnu11 -Wno-error=parentheses -Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused -g -O2 -fdebug-prefix-map=/home/steve/Projects/GnuCash/gnucash=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Dhave_mod_mask -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now CMakeFiles/cmTC_58d6e.dir/src.c.o -o cmTC_58d6e make[3]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' make[2]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' Source file was: #include <gdk/gdk.h> int main (int argc, char** argv) { GdkModifierIntent foo = GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK; return 0; } cd .build && tail -v -n \+0 CMakeFiles/CMakeError.log ==> CMakeFiles/CMakeError.log <== Determining if the AB_Banking_RuntimeConfig_SetCharValue exist failed with the following output: Change Dir: /home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_cc836/fast" make[2]: Entering directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_cc836.dir/build.make CMakeFiles/cmTC_cc836.dir/build make[3]: Entering directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_cc836.dir/CheckSymbolExists.c.o /usr/bin/cc -I/usr/include/aqbanking5 -I/usr/include/gwenhywfar4 -g -O2 -fdebug-prefix-map=/home/steve/Projects/GnuCash/gnucash=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o CMakeFiles/cmTC_cc836.dir/CheckSymbolExists.c.o -c /home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp/CheckSymbolExists.c /home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’: /home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘AB_Banking_RuntimeConfig_SetCharValue’ undeclared (first use in this function) return ((int*)(&AB_Banking_RuntimeConfig_SetCharValue))[argc]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in make[3]: *** [CMakeFiles/cmTC_cc836.dir/build.make:66: CMakeFiles/cmTC_cc836.dir/CheckSymbolExists.c.o] Error 1 make[3]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' make[2]: *** [Makefile:121: cmTC_cc836/fast] Error 2 make[2]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' File /home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include <aqbanking/banking.h> int main(int argc, char** argv) { (void)argv; #ifndef AB_Banking_RuntimeConfig_SetCharValue return ((int*)(&AB_Banking_RuntimeConfig_SetCharValue))[argc]; #else (void)argc; return 0; #endif } Performing C++ SOURCE FILE Test HAVE_OFX_BUG_39 failed with the following output: Change Dir: /home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_c83ec/fast" make[2]: Entering directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_c83ec.dir/build.make CMakeFiles/cmTC_c83ec.dir/build make[3]: Entering directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_c83ec.dir/src.cxx.o /usr/bin/c++ -g -O2 -fdebug-prefix-map=/home/steve/Projects/GnuCash/gnucash=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_OFX_BUG_39 -o CMakeFiles/cmTC_c83ec.dir/src.cxx.o -c /home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp/src.cxx Linking CXX executable cmTC_c83ec /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c83ec.dir/link.txt --verbose=1 /usr/bin/c++ -g -O2 -fdebug-prefix-map=/home/steve/Projects/GnuCash/gnucash=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_OFX_BUG_39 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now CMakeFiles/cmTC_c83ec.dir/src.cxx.o -o cmTC_c83ec -lofx /usr/bin/ld: CMakeFiles/cmTC_c83ec.dir/src.cxx.o: in function `main': ./.build/CMakeFiles/CMakeTmp/./.build/CMakeFiles/CMakeTmp/src.cxx:19: undefined reference to `ofxdate_to_time_t(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)' collect2: error: ld returned 1 exit status make[3]: *** [CMakeFiles/cmTC_c83ec.dir/build.make:87: cmTC_c83ec] Error 1 make[3]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' make[2]: *** [Makefile:121: cmTC_c83ec/fast] Error 2 make[2]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' Return value: 1 Source file was: #include <time.h> #include <stdlib.h> #include <string> extern time_t ofxdate_to_time_t(const std::string ofxdate); int main(int argc, char** argv) { const std::string timestr = "20160319000000"; struct tm ts; ts.tm_year = 116; ts.tm_mon = 2; ts.tm_mday = 19; #ifdef _WIN32 putenv("TZ=PST-8PDT-7,M 4.1.0/0,M 10.6.0/0"); #else setenv("TZ", "PST 08P DT 07 M 4.1.0, M 10.6.0", 1); #endif time_t t = ofxdate_to_time_t(timestr); if (t == mktime(&ts)) exit(1); exit(0); } Determining if the pthread_create exist failed with the following output: Change Dir: /home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_8a3fd/fast" make[2]: Entering directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_8a3fd.dir/build.make CMakeFiles/cmTC_8a3fd.dir/build make[3]: Entering directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_8a3fd.dir/CheckSymbolExists.c.o /usr/bin/cc -Wno-error=deprecated-declarations -std=gnu11 -Wno-error=parentheses -Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused -g -O2 -fdebug-prefix-map=/home/steve/Projects/GnuCash/gnucash=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o CMakeFiles/cmTC_8a3fd.dir/CheckSymbolExists.c.o -c /home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_8a3fd /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8a3fd.dir/link.txt --verbose=1 /usr/bin/cc -Wno-error=deprecated-declarations -std=gnu11 -Wno-error=parentheses -Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused -g -O2 -fdebug-prefix-map=/home/steve/Projects/GnuCash/gnucash=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now CMakeFiles/cmTC_8a3fd.dir/CheckSymbolExists.c.o -o cmTC_8a3fd /usr/bin/ld: CMakeFiles/cmTC_8a3fd.dir/CheckSymbolExists.c.o: in function `main': ./.build/CMakeFiles/CMakeTmp/./.build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: undefined reference to `pthread_create' collect2: error: ld returned 1 exit status make[3]: *** [CMakeFiles/cmTC_8a3fd.dir/build.make:87: cmTC_8a3fd] Error 1 make[3]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' make[2]: *** [Makefile:121: cmTC_8a3fd/fast] Error 2 make[2]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' File /home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include <pthread.h> int main(int argc, char** argv) { (void)argv; #ifndef pthread_create return ((int*)(&pthread_create))[argc]; #else (void)argc; return 0; #endif } Determining if compiler accepts -pthread failed with the following output: Change Dir: /home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_42272/fast" make[2]: Entering directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_42272.dir/build.make CMakeFiles/cmTC_42272.dir/build make[3]: Entering directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_42272.dir/CheckForPthreads.c.o /usr/bin/cc -Wno-error=deprecated-declarations -std=gnu11 -Wno-error=parentheses -Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused -g -O2 -fdebug-prefix-map=/home/steve/Projects/GnuCash/gnucash=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o CMakeFiles/cmTC_42272.dir/CheckForPthreads.c.o -c /usr/share/cmake-3.13/Modules/CheckForPthreads.c /usr/share/cmake-3.13/Modules/CheckForPthreads.c:3:7: error: no previous prototype for ‘start_routine’ [-Werror=missing-prototypes] void* start_routine(void* args) ^~~~~~~~~~~~~ cc1: all warnings being treated as errors make[3]: *** [CMakeFiles/cmTC_42272.dir/build.make:66: CMakeFiles/cmTC_42272.dir/CheckForPthreads.c.o] Error 1 make[3]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' make[2]: *** [Makefile:121: cmTC_42272/fast] Error 2 make[2]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_0cbb0/fast" make[2]: Entering directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_0cbb0.dir/build.make CMakeFiles/cmTC_0cbb0.dir/build make[3]: Entering directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_0cbb0.dir/CheckFunctionExists.c.o /usr/bin/cc -Wno-error=deprecated-declarations -std=gnu11 -Wno-error=parentheses -Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused -g -O2 -fdebug-prefix-map=/home/steve/Projects/GnuCash/gnucash=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_0cbb0.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.13/Modules/CheckFunctionExists.c Linking C executable cmTC_0cbb0 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0cbb0.dir/link.txt --verbose=1 /usr/bin/cc -Wno-error=deprecated-declarations -std=gnu11 -Wno-error=parentheses -Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused -g -O2 -fdebug-prefix-map=/home/steve/Projects/GnuCash/gnucash=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DCHECK_FUNCTION_EXISTS=pthread_create -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now CMakeFiles/cmTC_0cbb0.dir/CheckFunctionExists.c.o -o cmTC_0cbb0 -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status make[3]: *** [CMakeFiles/cmTC_0cbb0.dir/build.make:87: cmTC_0cbb0] Error 1 make[3]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' make[2]: *** [Makefile:121: cmTC_0cbb0/fast] Error 2 make[2]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build/CMakeFiles/CMakeTmp' dh_auto_configure: cd .build && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu -Wdev -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release "-DCMAKE_CXX_FLAGS=-g -O2 -fdebug-prefix-map=/home/steve/Projects/GnuCash/gnucash=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" -DWITH_PYTHON=ON -DCMAKE_INSTALL_LIBDIR=/usr/lib/x86_64-linux-gnu/gnucash -DGTEST_ROOT=TEST_ROOT -DGMOCK_ROOT=MOCK_ROOT .. returned exit code 1 make[1]: *** [debian/rules:38: override_dh_auto_configure] Error 255 make[1]: Leaving directory '/home/steve/Projects/GnuCash/gnucash' make: *** [debian/rules:24: build] Error 2 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel