configure has difficulty finding libgoffice

Bob Gustafson bobgus at rcn.com
Sun Jan 19 12:16:20 EST 2014


On 01/19/2014 01:35 AM, Mike Alexander wrote:
> --On January 19, 2014 1:21:50 AM -0600 Bob Gustafson <bobgus at rcn.com> 
> wrote:
>
>> I downloaded the source for gnucash about an hour ago.
>>
>> I'm running ./configure and this is the end of the output - showing
>> problem:
>
> What does
>
>   pkg-config --modversion libgoffice-0.8
>
> print?  You may need to set PKG_CONFIG_PATH or possibly PKG_CONFIG in 
> your environment before running config.
>
>             Mike
>

I have lots of .pc files in the normal directory /usr/lib64/pkconfig, 
but the file for goffice is named for the latest library 
libgoffice-0.10, not the previous library libgoffice-0.8

There does seem to be a naming problem here - changing the configure.ac 
file so the library names match:

[user1 at hoho6 gnucash-2.6.0]$ diff configure.ac configure.ac.orig
1009c1009
<   PKG_CHECK_MODULES(GOFFICE, libgoffice-0.10 >= 0.7.0, [goffice=1], 
[AC_MSG_ERROR([Cannot find libgoffice.>= 0.7.0])])
---
 >   PKG_CHECK_MODULES(GOFFICE, libgoffice-0.8 >= 0.7.0, [goffice=1], 
[AC_MSG_ERROR([Cannot find libgoffice.>= 0.7.0])])
[user1 at hoho6 gnucash-2.6.0]$

And then running autoconf to get a corrected configure script allows 
configure to step over that problem.

   The configure script now hangs on webkit-1.0...

This problem is fixed by doing:

   yum install webkitgtk-devel

After this tweek, the configure stage completes with the summary:

   Options detected/selected
   -------------------------
   gnucash version ...... : 2.6.0
   Build for host ....... : x86_64-unknown-linux-gnu
   Optional components... :  dbi
   Extra Warnings ....... :  -Wdeclaration-after-statement
   CPPFLAGS ............. :
   CFLAGS ............... :  -Wdeclaration-after-statement -g -O2 -Wall 
-Wunused -Wmissing-prototypes -Wmissing-declarations -Wno-unused
   LDFLAGS .............. :
   prefix................ : /usr/local

Now running 'make 2>&1 | tee make.out' seems to re-run the configure 
script, but no problem with that.

However, make does end with a problem:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src 
-I../../../src/core-utils -I../../../src/engine 
-I../../../src/gnc-module -I../../../src/app-utils -I../../../src/gnome 
-I../../../src/gnome-utils -I../../../src/import-export 
-I../../../src/libqof/qof -I../../../lib/libc -I../../../lib -pthread 
-I/usr/include/guile/2.0 -pthread -I/usr/include/glib-2.0 
-I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libgoffice-0.10 
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include 
-I/usr/include/libgsf-1 -I/usr/include/libxml2 -I/usr/include/gtk-3.0 
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 
-I/usr/include/at-spi2-atk/2.0 -I/usr/include/gio-unix-2.0/ 
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/harfbuzz 
-I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/libpng15 
-I/usr/include/libdrm -DG_LOG_DOMAIN=\"gnc.import.csv\" 
-Wdeclaration-after-statement -g -O2 -Wall -Wunused -Wmissing-prototypes 
-Wmissing-declarations -Wno-unused -MT assistant-csv-account-import.lo 
-MD -MP -MF .deps/assistant-csv-account-import.Tpo -c 
assistant-csv-account-import.c  -fPIC -DPIC -o 
.libs/assistant-csv-account-import.o
assistant-csv-account-import.c:502:34: error: unknown type name 'GtkObject'
  csv_import_assistant_destroy_cb (GtkObject *object, gpointer user_data)
                                   ^
assistant-csv-account-import.c: In function 'csv_import_assistant_create':
assistant-csv-account-import.c:597:5: warning: 'gtk_hbox_new' is 
deprecated (declared at 
/usr/include/gtk-3.0/gtk/deprecated/gtkhbox.h:62): Use 'gtk_box_new' 
instead [-Wdeprecated-declarations]
      h_box = gtk_hbox_new(TRUE, 0);
      ^
In file included from /usr/include/glib-2.0/gobject/gobject.h:30:0,
                  from /usr/include/glib-2.0/gobject/gbinding.h:31,
                  from /usr/include/glib-2.0/glib-object.h:25,
                  from /usr/include/glib-2.0/gio/gioenums.h:30,
                  from /usr/include/glib-2.0/gio/giotypes.h:30,
                  from /usr/include/glib-2.0/gio/gio.h:28,
                  from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
                  from /usr/include/gtk-3.0/gdk/gdk.h:32,
                  from /usr/include/gtk-3.0/gtk/gtk.h:30,
                  from assistant-csv-account-import.c:30:
assistant-csv-account-import.c:644:35: error: 
'csv_import_assistant_destroy_cb' undeclared (first use in this function)
                        G_CALLBACK (csv_import_assistant_destroy_cb), info);
                                    ^
/usr/include/glib-2.0/gobject/gsignal.h:475:60: note: in definition of 
macro 'g_signal_connect'
      g_signal_connect_data ((instance), (detailed_signal), (c_handler), 
(data), NULL, (GConnectFlags) 0)
                                                             ^
assistant-csv-account-import.c:644:23: note: in expansion of macro 
'G_CALLBACK'
                        G_CALLBACK (csv_import_assistant_destroy_cb), info);
                        ^
assistant-csv-account-import.c:644:35: note: each undeclared identifier 
is reported only once for each function it appears in
                        G_CALLBACK (csv_import_assistant_destroy_cb), info);
                                    ^
/usr/include/glib-2.0/gobject/gsignal.h:475:60: note: in definition of 
macro 'g_signal_connect'
      g_signal_connect_data ((instance), (detailed_signal), (c_handler), 
(data), NULL, (GConnectFlags) 0)
                                                             ^
assistant-csv-account-import.c:644:23: note: in expansion of macro 
'G_CALLBACK'
                        G_CALLBACK (csv_import_assistant_destroy_cb), info);
                        ^
make[5]: *** [assistant-csv-account-import.lo] Error 1
make[5]: Leaving directory 
`/home/user1/Downloads/gnucash-2.6.0/src/import-export/csv-imp'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory 
`/home/user1/Downloads/gnucash-2.6.0/src/import-export/csv-imp'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory 
`/home/user1/Downloads/gnucash-2.6.0/src/import-export'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/user1/Downloads/gnucash-2.6.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user1/Downloads/gnucash-2.6.0'
make: *** [all] Error 2
[user1 at hoho6 gnucash-2.6.0]$

After lunch, I will make the recommended change and see if that allows 
the compile to continue.



More information about the gnucash-devel mailing list