Rev. 2.3.8 compile error with undefined reference in dialog-fincalc.c

Johann Wöckinger j.woeckinger at edumail.at
Wed Jan 27 13:24:54 EST 2010


Johann Wöckinger <j.woeckinger at edumail.at <https://lists.gnucash.org/mailman/listinfo/gnucash-devel>> writes:

>/ Christian Stimming schrieb:
/>>/ Am Dienstag, 26. Januar 2010 schrieb Johann Wöckinger:
/>>/   
/>>>/ Hi,
/>>>/
/>>>/ When I try to compile gnucash 2.3.8, build process fails with following
/>>>/ message:
/>>>/
/>>>/ .libs/dialog-fincalc.o: In function `init_fi':
/>>>/ /home/hans/software/gnucash/gnucash-2.3.8/src/gnome/dialog-fincalc.c:299:
/>>>/ undefined reference to `fi_calc_future_value'
/>>>/     
/>>/
/>>/ Is this fixed when you add the line
/>>/   ${top_builddir}/src/calculation/libgncmod-calculation.la \
/>>/ in src/gnome/Makefile.am to the variable libgnc_gnome_la_LIBADD, i.e. by
/>>/ inserting the above line right after line 5?
/
[snip]

>/ I tried this, but it did not solve the problem - now the undefined
/>/ reference error appears first at line 299 of dialog-fincalc.c (see
/>/ below)
/>/
/>/
/>/ .libs/dialog-fincalc.o: In function `init_fi':
/>/ /home/hans/software/gnucash/gnucash-2.3.8/src/gnome/dialog-fincalc.c:299:
/>/ undefined reference to `fi_calc_future_value'
/>/ .libs/dialog-fincalc.o: In function `calc_value':
/>/ /home/hans/software/gnucash/gnucash-2.3.8/src/gnome/dialog-fincalc.c:423:
/>/ undefined reference to `fi_calc_future_value'
/>/ /home/hans/software/gnucash/gnucash-2.3.8/src/gnome/dialog-fincalc.c:420:
/>/ undefined reference to `fi_calc_payment'
/>/ /home/hans/software/gnucash/gnucash-2.3.8/src/gnome/dialog-fincalc.c:417:
/>/ undefined reference to `fi_calc_present_value'
/>/ /home/hans/software/gnucash/gnucash-2.3.8/src/gnome/dialog-fincalc.c:414:
/>/ undefined reference to `fi_calc_interest'
/>/ /home/hans/software/gnucash/gnucash-2.3.8/src/gnome/dialog-fincalc.c:411:
/>/ undefined reference to `fi_calc_num_payments'
/>/ collect2: ld returned 1 exit status
/>/ make[5]: *** [libgnc-gnome.la] Fehler 1
/>/ make[5]: Leaving directory
/>/ /home/hans/software/gnucash/gnucash-2.3.8/src/gnome'
/
Can you please show more of the log, in particular the link line that
happens just before this error is thrown?

>/ woec
/
-derek


Hi,

ok here is the link line just before the errors listed above:

/bin/sh ../../libtool --tag=CC   --mode=link gcc  -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations  -Wno-unused  -Wl,-z,defs -o libgnc-gnome.la -rpath /usr/lib swig-gnome.lo dialog-chart-export.lo dialog-commodities.lo dialog-fincalc.lo dialog-find-transactions.lo dialog-new-user.lo dialog-price-editor.lo dialog-price-edit-db.lo dialog-print-check.lo dialog-progress.lo dialog-sx-editor.lo dialog-sx-from-trans.lo dialog-sx-since-last-run.lo dialog-tax-info.lo dialog-userpass.lo druid-acct-period.lo druid-hierarchy.lo druid-merge.lo druid-loan.lo druid-stock-split.lo gnc-plugin-account-tree.lo gnc-plugin-basic-commands.lo gnc-plugin-budget.lo gnc-plugin-register.lo gnc-plugin-page-account-tree.lo gnc-plugin-page-budget.lo gnc-plugin-page-sx-list.lo gnc-plugin-page-register.lo gnc-split-reg.lo lot-viewer.lo reconcile-list.lo top-level.lo window-reconcile.lo ../../src/register/ledger-core/libgncmod-ledger-core.la ../../src/register/register-gnome/libgncmod-register-gnome.la ../../src/register/register-core/libgncmod-register-core.la ../../src/report/report-gnome/libgncmod-report-gnome.la ../../src/report/report-system/libgncmod-report-system.la ../../src/gnome-search/libgncmod-gnome-search.la ../../src/gnome-utils/libgncmod-gnome-utils.la ../../src/backend/xml/libgnc-backend-xml-utils.la ../../src/app-utils/libgncmod-app-utils.la ../../src/html/libgncmod-html.la ../../src/engine/libgncmod-engine.la ../../src/core-utils/libgnc-core-utils.la ../../src/libqof/qof/libgnc-qof.la -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   -lguile -lltdl  -lgmp -lcrypt -lm -lltdl -pthread -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnomevfs-2 -lgnomecanvas-2 -lgnome-2 -lpopt -lbonobo-2 -lbonobo-activation -lORBit-2 -lart_lgpl_2 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgconf-2 -lgthread-2.0 -lrt -lgmodule-2.0 -ldl -lgobject-2.0 -lglib-2.0   -pthread -Wl,--export-dynamic -lgthread-2.0 -lrt -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   ../../src/libqof/qof/libgnc-qof.la -lpopt -lm  -lm
libtool: link: gcc -shared  .libs/swig-gnome.o .libs/dialog-chart-export.o .libs/dialog-commodities.o .libs/dialog-fincalc.o .libs/dialog-find-transactions.o .libs/dialog-new-user.o .libs/dialog-price-editor.o .libs/dialog-price-edit-db.o .libs/dialog-print-check.o .libs/dialog-progress.o .libs/dialog-sx-editor.o .libs/dialog-sx-from-trans.o .libs/dialog-sx-since-last-run.o .libs/dialog-tax-info.o .libs/dialog-userpass.o .libs/druid-acct-period.o .libs/druid-hierarchy.o .libs/druid-merge.o .libs/druid-loan.o .libs/druid-stock-split.o .libs/gnc-plugin-account-tree.o .libs/gnc-plugin-basic-commands.o .libs/gnc-plugin-budget.o .libs/gnc-plugin-register.o .libs/gnc-plugin-page-account-tree.o .libs/gnc-plugin-page-budget.o .libs/gnc-plugin-page-sx-list.o .libs/gnc-plugin-page-register.o .libs/gnc-split-reg.o .libs/lot-viewer.o .libs/reconcile-list.o .libs/top-level.o .libs/window-reconcile.o   -Wl,-rpath -Wl,/home/hans/software/gnucash/gnucash-2.3.8/src/register/ledger-core/.libs -Wl,-rpath -Wl,/home/hans/software/gnucash/gnucash-2.3.8/src/register/register-gnome/.libs -Wl,-rpath -Wl,/home/hans/software/gnucash/gnucash-2.3.8/src/register/register-core/.libs -Wl,-rpath -Wl,/home/hans/software/gnucash/gnucash-2.3.8/src/report/report-gnome/.libs -Wl,-rpath -Wl,/home/hans/software/gnucash/gnucash-2.3.8/src/report/report-system/.libs -Wl,-rpath -Wl,/home/hans/software/gnucash/gnucash-2.3.8/src/gnome-search/.libs -Wl,-rpath -Wl,/home/hans/software/gnucash/gnucash-2.3.8/src/gnome-utils/.libs -Wl,-rpath -Wl,/home/hans/software/gnucash/gnucash-2.3.8/src/backend/xml/.libs -Wl,-rpath -Wl,/home/hans/software/gnucash/gnucash-2.3.8/src/app-utils/.libs -Wl,-rpath -Wl,/home/hans/software/gnucash/gnucash-2.3.8/src/html/.libs -Wl,-rpath -Wl,/home/hans/software/gnucash/gnucash-2.3.8/src/engine/.libs -Wl,-rpath -Wl,/home/hans/software/gnucash/gnucash-2.3.8/src/core-utils/.libs -Wl,-rpath -Wl,/home/hans/software/gnucash/gnucash-2.3.8/src/libqof/qof/.libs -Wl,-rpath -Wl,/usr/lib/gnucash ../../src/register/ledger-core/.libs/libgncmod-ledger-core.so ../../src/register/register-gnome/.libs/libgncmod-register-gnome.so ../../src/register/register-core/.libs/libgncmod-register-core.so ../../src/report/report-gnome/.libs/libgncmod-report-gnome.so ../../src/report/report-system/.libs/libgncmod-report-system.so ../../src/gnome-search/.libs/libgncmod-gnome-search.so ../../src/gnome-utils/.libs/libgncmod-gnome-utils.so ../../src/backend/xml/.libs/libgnc-backend-xml-utils.so ../../src/app-utils/.libs/libgncmod-app-utils.so ../../src/html/.libs/libgncmod-html.so ../../src/engine/.libs/libgncmod-engine.so ../../src/core-utils/.libs/libgnc-core-utils.so /usr/lib/libglade-2.0.so /usr/lib/libxml2.so /usr/lib/libguile.so /usr/lib/libgmp.so -lcrypt /usr/lib/libltdl.so /usr/lib/libgnomeui-2.so -lSM -lICE /usr/lib/libbonoboui-2.so /usr/lib/libgnomevfs-2.so /usr/lib/libgnomecanvas-2.so /usr/lib/libgnome-2.so /usr/lib/libbonobo-2.so /usr/lib/libbonobo-activation.so /usr/lib/libORBit-2.so /usr/lib/libart_lgpl_2.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libgconf-2.so /usr/lib/libgthread-2.0.so -lrt /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so ../../src/libqof/qof/.libs/libgnc-qof.so /usr/lib/libpopt.so -lm  -Wl,-z -Wl,defs -pthread -pthread -Wl,--export-dynamic   -pthread -Wl,-soname -Wl,libgnc-gnome.so.0 -o .libs/libgnc-gnome.so.0.0.0

Regards,

woec


More information about the gnucash-devel mailing list