Compile error
Vinay Pai
vinay at vinaypai.com
Mon Nov 21 00:47:32 EST 2005
> > I erased my working directory and checked out the sources again with:
>
> That'll do, but you should find that make distclean saves a lot of downloads.
> :-)
I know... I guess I was just in the mood for a fresh start :)
> > $ svn co http://svn.gnucash.org/repo/gnucash/trunk gnucash
> > Checked out revision 11992.
> > $ ./autogen.sh
> > $ ./configure --enable-error-on-warning --enable-compile-warnings
>
> --enable-maintainer-mode ?
Hmm.. I didn't know about that switch. What does it do?
> > This time I got a different error:
> > -Wl,/usr/local/lib/gnucash /usr/bin/ld: warning: libgoffice-1.so.0, needed
> > by /usr/local/lib/gnucash/libgncmod-gnome-utils.so.0, not found (try
> > using -rpath or
>
> Ooh. That's not good. This should have been picked up in the configure. You
> appear to not have libgoffice installed. On Debian, you can install
> libgoffice-1-1 (v0.1.2-1)
I tried again with libgoffice-1-1 and got hte same error. I definitely
have the -dev package now (I'm reasonably certain I had it before too).
I also have libgsf and it's -dev packages installed.
I had libgsf-1 as well as libgsf-1-113 installed before. I removed
libgsf-1, reconfigured and built and now I've got a couple of additional
errors at the same point
For some reason it seems to insist on libgoffice-1.so.0 seems to belong
to libgoffice version 0.0.4, not 0.1.2. I don't know why it's insisting
on linking against the wrong version. Now that libgsf-1 and
libgsf-gnome-1 are gone it's still trying to link against the old
versions.
gcc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I../../../../src/test-core -I.. -g -O2 -Wall -Wunused
-Wmissing-prototypes -Wmissing-declarations -Werror
-Wdeclaration-after-statement -Wno-pointer-sign
-o .libs/test-link-module
test-link-module.o ../../../../src/engine/.libs/libgncmod-engine.so ../../../../src/app-utils/.libs/libgncmod-app-utils.so ../.libs/libgncmod-register-core.so /usr/lib/libpopt.so -lm -Wl,--rpath -Wl,/usr/local/lib/gnucash
/usr/bin/ld: warning: libgsf-gnome-1.so.1, needed
by /usr/local/lib/gnucash/libgncmod-gnome-utils.so.0, not found (try
using -rpath or -rpath-link)
/usr/bin/ld: warning: libgoffice-1.so.0, needed
by /usr/local/lib/gnucash/libgncmod-gnome-utils.so.0, not found (try
using -rpath or -rpath-link)
/usr/bin/ld: warning: libgsf-1.so.1, needed
by /usr/local/lib/gnucash/libgncmod-gnome-utils.so.0, not found (try
using -rpath or -rpath-link)
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `libgoffice_init'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `gog_object_set_name'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `gog_object_update'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `gog_plot_new_series'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `gog_dataset_set_dim'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `gog_object_find_role_by_name'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `gog_graph_get_type'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `go_data_get_type'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `go_data_vector_str_new'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `gog_dataset_get_type'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `go_data_scalar_str_new'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `gog_renderer_pixbuf_get'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `gog_renderer_pixbuf_update'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `go_data_vector_val_new'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `gog_plot_new_by_name'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `gog_object_get_type'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `go_data_emit_changed'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `gog_series_set_dim'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `gog_renderer_pixbuf_get_type'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `gog_object_get_child_by_role'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `gog_styled_object_get_type'
/usr/local/lib/gnucash/libgncmod-gnome-utils.so.0: undefined reference
to `gog_object_add_by_name'
collect2: ld returned 1 exit status
make[6]: *** [test-link-module] Error 1
make[6]: Leaving directory
`/home/vinay/working-dir/gnucash/src/register/register-core/test'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory
`/home/vinay/working-dir/gnucash/src/register/register-core'
make[4]: *** [all] Error 2
make[4]: Leaving directory
`/home/vinay/working-dir/gnucash/src/register/register-core'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/vinay/working-dir/gnucash/src/register'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/vinay/working-dir/gnucash/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/vinay/working-dir/gnucash'
make: *** [all] Error 2
More information about the gnucash-devel
mailing list