exp10() error on winXP svn 15713

Nathan Buchanan nbinont at gmail.com
Wed Mar 14 01:18:17 EDT 2007


Hi Chris!

On 3/14/07, Chris Shoemaker <c.shoemaker at cox.net> wrote:
>
> On Tue, Mar 13, 2007 at 11:04:50PM -0400, Nathan Buchanan wrote:
> > Hello!
> >
> > I ran into the following error when building svn 15713:
> >
> > ../../../repos/src/app-utils/gnc-ui-util.c: In function
> `integer_to_words':
> > ../../../repos/src/app-utils/gnc-ui-util.c:1605: warning: implicit
> > declaration of function `exp10'
> > make[4]: *** [gnc-ui-util.lo] Error 1
> > make[4]: Leaving directory `/c/soft/gnucash/build/src/app-utils'
> > make[3]: *** [all-recursive] Error 1
> > make[3]: Leaving directory `/c/soft/gnucash/build/src/app-utils'
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory `/c/soft/gnucash/build/src'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/c/soft/gnucash/build'
> > make: *** [all] Error 2
> >
> > it looks like exp10() is not defined - at least on my ststem. The call
> to
> > exp10() was added as part of r15677. Related lines:
> >
> >   while (val >= 1000) {
> >     log_val = log10(val) / 3 + FUDGE;
> >     pow_val = exp10(log_val * 3) + FUDGE;
>
> Does it work if you change this line to:
>
>       pow_val = exp(log_val * 3 * G_LN10) + FUDGE;


This solved the error, but I'm running into something else now:

Creating library file: .libs/libgncmod-gnome-utils.dll.a
.libs/dialog-account.o(.text+0xc44): In function `gnc_ui_to_account':
c:/soft/gnucash/build/src/gnome-utils/../../../repos/src/gnome-utils/dialog-
account.c:403: undefined reference to `gnc_reverse_balance'
.libs/dialog-account.o
(.text+0xcf3):c:/soft/gnucash/build/src/gnome-utils/../../../repos/src/gnome-utils/dialog-
account.c:414: undefined reference to `gnc_account_create_opening_balance'
.libs/dialog-account.o(.text+0x1018): In function `gnc_finish_ok':
c:/soft/gnucash/build/src/gnome-utils/../../../repos/src/gnome-utils/dialog-
account.c:486: undefined reference to `gnc_suspend_gui_refresh'
.libs/dialog-account.o
(.text+0x1033):c:/soft/gnucash/build/src/gnome-utils/../../../repos/src/gnome-utils/dialog-
account.c:492: undefined reference to `gnc_resume_gui_refresh'
.
....many many more lines of undefined references....

.libs/window-main-summarybar.o(.text+0x132f): In function
`gnc_main_window_summary_new':
c:/soft/gnucash/build/src/gnome-utils/../../../repos/src/gnome-utils/window-
main-summarybar.c:494: undefined reference to `gnc_register_gui_component'
.libs/window-main-summarybar.o
(.text+0x1350):c:/soft/gnucash/build/src/gnome-utils/../../../repos/src/gnome-utils/window-
main-summarybar.c:497: undefined reference to
`gnc_gui_component_watch_entity_type'
collect2: ld returned 1 exit status
make[5]: *** [libgncmod-gnome-utils.la] Error 1
make[5]: Leaving directory `/c/soft/gnucash/build/src/gnome-utils'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/c/soft/gnucash/build/src/gnome-utils'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/c/soft/gnucash/build/src/gnome-utils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/c/soft/gnucash/build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/soft/gnucash/build'
make: *** [all] Error 2

I'll look at this some more tomorrow/thursday (It's getting late  :( )

Nathan

-chris
>
> >     this_part = val / pow_val;
> >     val -= this_part * pow_val;
> >     tmp = integer_to_words(this_part);
> >     g_string_append_printf(result, "%s %s ", tmp,
> >                            gettext(big_numbers[log_val]));
> >     g_free(tmp);
> >   }
> >
> > Nathan
> >
> > PS: this is with a fresh checkout and after I removed the build
> directory.
> > --
> > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> > A conclusion is the place where you got tired of thinking.
> > _______________________________________________
> > gnucash-devel mailing list
> > gnucash-devel at gnucash.org
> > https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>



-- 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
A conclusion is the place where you got tired of thinking.


More information about the gnucash-devel mailing list