Having a problem building on a new install of Linux Mint Ulyana (20). Can anyone make sense of the following? It appears to be a problem with gettext. I have 0.19.8.1-10build1 installed but noted in the cmake initial output when I was installing the dependencies that 2.0 was preferred but only required for building a translation file. I assumed this to mean 0.19.8 would be OK for the app.
Cmake output: $ cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr/local -DWITH_PYTHON=ON .. CMake Warning at CMakeLists.txt:251 (message): Gettext version 0.20 or more recent is required to translate the 'developer_name' tag in gnucash.appdata.xml. All but that tag will be translated in the generated file. -- Using guile-2.0.x -- Using guile SRFI-64 -- Using guile textual-ports -- Checking for GTEST -- Checking for GMOCK -- Configuring done -- Generating done -- Build files have been written to: /home/david/Applications/gnucash-4.0/build ninja output: $ ninja [6/243] Generating ../../lib/x86_64-li...cache/gnucash/app-utils/c-interface.go FAILED: lib/x86_64-linux-gnu/guile/3.0/site-ccache/gnucash/app-utils/c-interface.go cd /home/david/Applications/gnucash-4.0/build/libgnucash/app-utils && /usr/bin/cmake -E env LD_LIBRARY_PATH=/home/david/Applications/gnucash-4.0/build/lib:/home/david/Applications/gnucash-4.0/build/lib/gnucash: GNC_UNINSTALLED=YES GNC_BUILDDIR=/home/david/Applications/gnucash-4.0/build GUILE_LOAD_PATH=/home/david/Applications/gnucash-4.0/libgnucash/app-utils:/home/david/Applications/gnucash- 4.0/build/libgnucash/app-utils:/home/david/Applications/gnucash-4.0/build/libgnucash/app- utils/deprecated:/home/david/Applications/gnucash-4.0/build/share/guile/site/3.0 GUILE_LOAD_COMPILED_PATH=/home/david/Applications/gnucash-4.0/build/libgnucash/app- utils:/home/david/Applications/gnucash-4.0/build/lib/x86_64-linux-gnu/guile/3.0/site- ccache:/home/david/Applications/gnucash-4.0/build/lib/x86_64-linux-gnu/guile/3.0/site-ccache/gnucash/deprecated GNC_MODULE_PATH=/home/david/Applications/gnucash-4.0/build/lib:/home/david/Applications/gnucash-4.0/build/lib/gnucash: /usr/bin/guile -e "(@@ (guild) main)" -s /usr/bin/guild compile -o /home/david/Applications/gnucash- 4.0/build/lib/x86_64-linux-gnu/guile/3.0/site-ccache/gnucash/app-utils/c-interface.go /home/david/Applications/gnucash- 4.0/libgnucash/app-utils/c-interface.scm ice-9/boot-9.scm:1669:16: In procedure raise-exception: Syntax error: c-interface.scm:83:21: _: bad use of '_' syntactic keyword in subform (_ (hash-ref string-hash key)) of (_ (hash-ref string-hash key)) [7/243] Generating ../../lib/x86_64-li...ucash/deprecated/migrate-prefs-user.go wrote `/home/david/Applications/gnucash-4.0/build/lib/x86_64-linux-gnu/guile/3.0/site-ccache/gnucash/deprecated/migrate- prefs-user.go' [8/243] Generating ../../lib/x86_64-li...he/gnucash/deprecated/migrate-prefs.go wrote `/home/david/Applications/gnucash-4.0/build/lib/x86_64-linux-gnu/guile/3.0/site-ccache/gnucash/deprecated/migrate- prefs.go' [12/243] Generating ../../lib/x86_64-l...deprecated/gnucash/unittest-support.go wrote `/home/david/Applications/gnucash-4.0/build/lib/x86_64-linux-gnu/guile/3.0/site- ccache/gnucash/deprecated/gnucash/unittest-support.go' [13/243] Generating ../../lib/x86_64-l.../gnucash/deprecated/gnucash/gettext.go wrote `/home/david/Applications/gnucash-4.0/build/lib/x86_64-linux-gnu/guile/3.0/site- ccache/gnucash/deprecated/gnucash/gettext.go' ninja: build stopped: subcommand failed. cmake error log attached
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /home/david/Applications/gnucash-4.0/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_4c855 && [1/2] Building C object CMakeFiles/cmTC_4c855.dir/src.c.o [2/2] Linking C executable cmTC_4c855 FAILED: cmTC_4c855 : && /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_4c855.dir/src.c.o -o cmTC_4c855 && : /usr/bin/ld: CMakeFiles/cmTC_4c855.dir/src.c.o: in function `main': src.c:(.text+0x46): undefined reference to `pthread_create' /usr/bin/ld: src.c:(.text+0x52): undefined reference to `pthread_detach' /usr/bin/ld: src.c:(.text+0x63): undefined reference to `pthread_join' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Source file was: #include <pthread.h> void* test_func(void* data) { return data; } int main(void) { pthread_t thread; pthread_create(&thread, NULL, test_func, NULL); pthread_detach(thread); pthread_join(thread, NULL); pthread_atfork(NULL, NULL, NULL); pthread_exit(NULL); return 0; } Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /home/david/Applications/gnucash-4.0/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_1ab1b && [1/2] Building C object CMakeFiles/cmTC_1ab1b.dir/CheckFunctionExists.c.o [2/2] Linking C executable cmTC_1ab1b FAILED: cmTC_1ab1b : && /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_1ab1b.dir/CheckFunctionExists.c.o -o cmTC_1ab1b -lpthreads && : /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Determining if the AB_Banking_RuntimeConfig_SetCharValue exist failed with the following output: Change Dir: /home/david/Applications/gnucash-4.0/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_5596a && [1/2] Building C object CMakeFiles/cmTC_5596a.dir/CheckSymbolExists.c.o [2/2] Linking C executable cmTC_5596a FAILED: cmTC_5596a : && /usr/bin/cc CMakeFiles/cmTC_5596a.dir/CheckSymbolExists.c.o -o cmTC_5596a && : /usr/bin/ld: CMakeFiles/cmTC_5596a.dir/CheckSymbolExists.c.o: in function `main': CheckSymbolExists.c:(.text+0x1f): undefined reference to `AB_Banking_RuntimeConfig_SetCharValue' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. File /home/david/Applications/gnucash-4.0/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/david/Applications/gnucash-4.0/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_b9198 && [1/2] Building CXX object CMakeFiles/cmTC_b9198.dir/src.cxx.o [2/2] Linking CXX executable cmTC_b9198 FAILED: cmTC_b9198 : && /usr/bin/c++ -DHAVE_OFX_BUG_39 CMakeFiles/cmTC_b9198.dir/src.cxx.o -o cmTC_b9198 -lofx && : /usr/bin/ld: CMakeFiles/cmTC_b9198.dir/src.cxx.o: in function `main': src.cxx:(.text+0xb5): 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 ninja: build stopped: subcommand failed. ...and run output: 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 compiler accepts -pthread failed with the following output: Change Dir: /home/david/Applications/gnucash-4.0/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_d3166 && [1/2] Building C object CMakeFiles/cmTC_d3166.dir/CheckForPthreads.c.o FAILED: CMakeFiles/cmTC_d3166.dir/CheckForPthreads.c.o /usr/bin/cc -Wno-error=deprecated-declarations -Wno-error=parentheses -Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused -std=gnu11 -o CMakeFiles/cmTC_d3166.dir/CheckForPthreads.c.o -c /usr/share/cmake-3.16/Modules/CheckForPthreads.c /usr/share/cmake-3.16/Modules/CheckForPthreads.c:3:7: error: no previous prototype for ‘start_routine’ [-Werror=missing-prototypes] 3 | void* start_routine(void* args) | ^~~~~~~~~~~~~ cc1: all warnings being treated as errors ninja: build stopped: subcommand failed.
_______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel