After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 792008 - gnucash 2.6.19 fails to build
gnucash 2.6.19 fails to build
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Build system
2.6.19
Other Linux
: Normal major
: ---
Assigned To: gnucash-core-maint
gnucash-core-maint
Depends on:
Blocks:
 
 
Reported: 2017-12-28 12:24 UTC by Elan Weiss
Modified: 2018-06-30 00:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
config.log (108.34 KB, text/plain)
2017-12-28 12:24 UTC, Elan Weiss
Details

Description Elan Weiss 2017-12-28 12:24:13 UTC
Created attachment 366046 [details]
config.log

Hi all,

./configure --disable-dbi runs through w/o errors.
After that make fails with with:

qof/.libs/libgnc-qof.so ../../../src/engine/.libs/libgncmod-engine.so ../.libs/libgncmod-generic-import.so ../../../src/engine/test-core/.libs/libgncmod-test-engine.a /opt/GNUCASH/gnucash-2.6.19/src/engine/.libs/libgncmod-engine.so /opt/GNUCASH/gnucash-2.6.19/src/gnc-module/.libs/libgnc-module.so /opt/GNUCASH/gnucash-2.6.19/src/core-utils/.libs/libgnc-core-utils.so -lguile -lgmp -lcrypt /usr/lib/i386-linux-gnu/libltdl.so -ldl /opt/GNUCASH/gnucash-2.6.19/src/libqof/qof/.libs/libgnc-qof.so ../../../src/test-core/.libs/libtest-core.so -lgio-2.0 -lgthread-2.0 -lgobject-2.0 -lgmodule-2.0 -lrt -lglib-2.0 -lpthread -lm -pthread -Wl,-rpath -Wl,/usr/local/lib/gnucash
test_flat_bayes-test-flat-bayes.o: In function `write_flat_bayes':
/opt/GNUCASH/gnucash-2.6.19/src/import-export/test/test-flat-bayes.c:211: undefined reference to `g_assert_true'
test_flat_bayes-test-flat-bayes.o: In function `read_flat_bayes':
/opt/GNUCASH/gnucash-2.6.19/src/import-export/test/test-flat-bayes.c:194: undefined reference to `g_assert_true'
test_flat_bayes-test-flat-bayes.o: In function `find_normal_bayes_when_non_exists':
/opt/GNUCASH/gnucash-2.6.19/src/import-export/test/test-flat-bayes.c:267: undefined reference to `g_assert_true'
test_flat_bayes-test-flat-bayes.o: In function `find_guid_bayes_account':
/opt/GNUCASH/gnucash-2.6.19/src/import-export/test/test-flat-bayes.c:258: undefined reference to `g_assert_true'
test_flat_bayes-test-flat-bayes.o: In function `find_normal_bayes_account':
/opt/GNUCASH/gnucash-2.6.19/src/import-export/test/test-flat-bayes.c:226: undefined reference to `g_assert_true'
test_flat_bayes-test-flat-bayes.o:/opt/GNUCASH/gnucash-2.6.19/src/import-export/test/test-flat-bayes.c:174: more undefined references to `g_assert_true' follow
collect2: error: ld returned 1 exit status
make[4]: *** [test-flat-bayes] Fehler 1
make[4]: Leaving directory `/opt/GNUCASH/gnucash-2.6.19/src/import-export/test'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/opt/GNUCASH/gnucash-2.6.19/src/import-export'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/opt/GNUCASH/gnucash-2.6.19/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/opt/GNUCASH/gnucash-2.6.19'
Comment 1 John Ralls 2017-12-28 14:52:41 UTC
g_assert_true wasn't introduced until glib-2.38 and the minimum requirement for 2.6.x is 2.32.
Comment 2 lmat 2017-12-28 22:31:55 UTC
I'll get that fixed soon. Thanks for the report.
Comment 3 Geert Janssens 2018-03-01 19:02:30 UTC
Thanks for reporting this issue. It will be fixed for gnucash 2.6.20.

If you want to build gnucash 2.6.19, you can work around this by searching for all occurrences of g_assert_true in the source file and replace it with g_assert instead (the parameters of both functions remain identical).
Comment 4 Elan Weiss 2018-03-04 11:26:56 UTC
Thx Geert!

After changing the files:
 
o /src/import-export/test/test-flat-bayes.c
o /src/import-export/test/test-import-pending-matches.c

from "g_assert_true" to "g_assert" make runs into another pitfall

make[4]: Entering directory `/opt/GNUCASH/gnucash-2.6.19/src/bin'
gcc -DHAVE_CONFIG_H -I. -I../..  -I../.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include    -pthread -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -DPKGSYSCONFDIR=\"/usr/local/etc/gnucash\" -DPKGDATADIR=\"/usr/local/share/gnucash\" -I../../src -I../../src -I../../src/core-utils -I../../src/app-utils -I../../src/gnome-utils -I../../src/engine -I../../src/gnome -I../../src -I../../src/gnc-module -I../../src/libqof/qof -I../../src/report/report-system   -DG_LOG_DOMAIN=\"gnc.bin\"   -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -g -O2 -std=gnu99 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations  -Wno-unused -MT gnucash-bin.o -MD -MP -MF .deps/gnucash-bin.Tpo -c -o gnucash-bin.o gnucash-bin.c
mv -f .deps/gnucash-bin.Tpo .deps/gnucash-bin.Po
/bin/sh ../../libtool  --tag=CC   --mode=link gcc  -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -g -O2 -std=gnu99 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations  -Wno-unused   -o gnucash gnucash-bin.o  ../../src/register/ledger-core/libgncmod-ledger-core.la ../../src/report/report-gnome/libgncmod-report-gnome.la ../../src/gnome/libgnc-gnome.la ../../src/gnome-utils/libgncmod-gnome-utils.la ../../src/app-utils/libgncmod-app-utils.la ../../src/engine/libgncmod-engine.la ../../src/gnc-module/libgnc-module.la ../../src/core-utils/libgnc-core-utils.la ../../src/libqof/qof/libgnc-qof.la ../../src/report/report-system/libgncmod-report-system.la -lguile -lgmp -lcrypt -lm -lltdl   -pthread -Wl,--export-dynamic -lgio-2.0 -lgthread-2.0 -lgobject-2.0 -lgmodule-2.0 -lrt -lglib-2.0   -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0   -lpthread  -lm
libtool: link: gcc -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -g -O2 -std=gnu99 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wno-unused -o .libs/gnucash gnucash-bin.o -pthread -Wl,--export-dynamic  ../../src/register/ledger-core/.libs/libgncmod-ledger-core.so ../../src/report/report-gnome/.libs/libgncmod-report-gnome.so ../../src/gnome/.libs/libgnc-gnome.so ../../src/gnome-utils/.libs/libgncmod-gnome-utils.so ../../src/app-utils/.libs/libgncmod-app-utils.so ../../src/engine/.libs/libgncmod-engine.so ../../src/gnc-module/.libs/libgnc-module.so ../../src/core-utils/.libs/libgnc-core-utils.so ../../src/libqof/qof/.libs/libgnc-qof.so ../../src/report/report-system/.libs/libgncmod-report-system.so -lguile -lgmp -lcrypt /usr/lib/i386-linux-gnu/libltdl.so -lgthread-2.0 -lgmodule-2.0 -lrt -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 /usr/lib/i386-linux-gnu/libcairo.so -lpango-1.0 /usr/lib/i386-linux-gnu/libfreetype.so -lfontconfig -lgobject-2.0 -lglib-2.0 -lpthread -lm -pthread -Wl,-rpath -Wl,/usr/local/lib/gnucash
../../src/register/ledger-core/.libs/libgncmod-ledger-core.so: undefined reference to `gnc_recn_cell_set_read_only'
collect2: error: ld returned 1 exit status
make[4]: *** [gnucash] Fehler 1
make[4]: Leaving directory `/opt/GNUCASH/gnucash-2.6.19/src/bin'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/opt/GNUCASH/gnucash-2.6.19/src/bin'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/opt/GNUCASH/gnucash-2.6.19/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/opt/GNUCASH/gnucash-2.6.19'
make: *** [all] Fehler 2

cu,
elan
Comment 5 John Ralls 2018-06-30 00:02:13 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=792008. Please update any external references or bookmarks.