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?

The symbol fi_calc_future_value is defined in src/calculation/fin.c which
means libgncmod-calculation must be linked in where it is used. I wonder why
this didn't cause a problem earlier - especially the windows build is very
sensitive to errors like these...

Regards,

Christian


.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'
make[4]: *** [all-recursive] Fehler 1
make[4]: Leaving directory
`/home/hans/software/gnucash/gnucash-2.3.8/src/gnome'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/home/hans/software/gnucash/gnucash-2.3.8/src'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/hans/software/gnucash/gnucash-2.3.8'
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/home/hans/software/gnucash/gnucash-2.3.8'
make: *** [build-stamp] Fehler 2
dpkg-buildpackage: Fehlschlag: debian/rules build gab Fehler-Exitstatus 2


System: Debian 5 / Lenny
Prepare: dh_make
Configuration (from rules):
./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man
--infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)"
LDFLAGS="-Wl,-z,defs" --enable-dbi --sysconfdir=/etc --enable-ofx
--enable-latex-docs

Remark:
gnucash 2.3.7 compiles successfully under the same environment

Any help for that?

woec
_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


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'
make[4]: *** [all-recursive] Fehler 1
make[4]: Leaving directory `/home/hans/software/gnucash/gnucash-2.3.8/src/gnome'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/home/hans/software/gnucash/gnucash-2.3.8/src'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/hans/software/gnucash/gnucash-2.3.8'
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/home/hans/software/gnucash/gnucash-2.3.8'
make: *** [build-stamp] Fehler 2
dpkg-buildpackage: Fehlschlag: debian/rules build gab Fehler-Exitstatus 2


woec
_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to