Compile error

Vinay Pai vinay at vinaypai.com
Sun Nov 20 15:53:44 EST 2005


Ok, I checked my dpkg versions like you describe below and they're all
exactly the same as yours except that I don't have guile1.4 and
guile1.4-slib installed.  You don't need both guile-1.6 and guile1.4,
right?  I used synaptic to find all pacakged with residual config and
purged them all.

I erased my working directory and checked out the sources again with:

$ svn co http://svn.gnucash.org/repo/gnucash/trunk gnucash
.
.
.
Checked out revision 11992.


$ ./autogen.sh

$ ./configure --enable-error-on-warning --enable-compile-warnings
.
.
.
  Options detected/selected
  -------------------------
  gnucash version ...... : 1.9.0
  Build for host ....... : i686-pc-linux-gnu
  Extra Warnings ....... :  -Werror -Wdeclaration-after-statement
-Wno-pointer-sign
  CPPFLAGS ............. :
  CFLAGS ............... : -g -O2 -Wall -Wunused -Wmissing-prototypes
-Wmissing-declarations   -Werror -Wdeclaration-after-statement
-Wno-pointer-sign
  LDFLAGS .............. :
  QOF support ...........: 0.6.0
  QOF location ..........: /usr
  QOF library dir .......: /usr/lib
  QOF backend config ....: /usr/share/xml/qof/qsf

$ make

This time I got a different error:
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: libgoffice-1.so.0, 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

I had goffice-1-1 installed.  I purged libgoffice-1-1,
libgoffice-1-common and libgoffice-1 and then forced version 0.0.4-1
from testing.  Then distclean, autogen and configure and make.  Now I'm
getting the old error again:

gcc -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations
-Werror -Wdeclaration-after-statement -Wno-pointer-sign
-o .libs/test-link
test-link.o  ../.libs/libgncmod-qif-import.so ../../../../src/gnome/.libs/libgncgnome.so ../../../../src/gnome-utils/.libs/libgncmod-gnome-utils.so ../../../../src/app-utils/.libs/libgncmod-app-utils.so /usr/lib/libxml2.so -lz /usr/lib/libpopt.so -lm -Wl,--rpath -Wl,/usr/local/lib/gnucash
../../../../src/gnome/.libs/libgncgnome.so: undefined reference to
`gnc_pricedb_set_bulk_update'
collect2: ld returned 1 exit status
make[5]: *** [test-link] Error 1
make[5]: Leaving directory
`/home/vinay/working-dir/gnucash/src/import-export/qif-import/test'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/home/vinay/working-dir/gnucash/src/import-export/qif-import'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/vinay/working-dir/gnucash/src/import-export'
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


I've got automake 1.9.6, autoconf 2.59, libtool 1.5.20, gcc 4.0.3.  I'm
running Debian Unstable on a 32-bit pentium-4.

Hopefully I haven't omitted any important details this time. Thanks for
your patience :)

Vinay


On Sat, 2005-11-19 at 21:15 +0000, Neil Williams wrote: 
> On Saturday 19 November 2005 8:25 pm, Vinay Pai wrote:
> > I called make as "make CFLAGS=-Wno-error".
> 
> Don't do that. Fix the error, don't skirt around it.
> (I had the same problem and it caused weeks of problems for everyone.)
> 
> > Without it there was a 
> > warning about uninitialized variable in src/engine.
> >
> > I'm running Debian Unstable, and my gcc version is 4.0.3.
> 
> You probably have the wrong version of g-wrap. apt-get --purge remove g-wrap 
> 1.3 and make sure you have g-wrap 1.9, as per:
> https://lists.gnucash.org/pipermail/gnucash-devel/2005-November/014592.html
> 
> Briefly:
> 1. ./autogen.sh && make distclean in the gnucash tree(s) to remove your broken 
> guile wrapping code. (make clean is NOT sufficient!)
> 2. PURGE libgwrapguile-dev
> 3. install libgwrap-runtime0-dev that should bring in most of the dependencies 
> above. If not, make sure g-wrap and guile-g-wrap get installed.
> 4. Rebuild gnucash with ALL ERRORS ENABLED.
> 
> Compare your output with mine (descriptions shortened):
> 
> $ dpkg -l g-wrap
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: 
> uppercase=bad)
> ||/ Name                      Version                   Description
> +++-=========================-=========================-==================================================================
> ii  g-wrap                    1.9.6-3                   scripting interface 
> 
> 
> $ dpkg -l guile*
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: 
> uppercase=bad)
> ||/ Name                      Version                   Description
> +++-=========================-=========================-==================================================================
> un  guile                     <none>                    (no description )
> ii  guile-1.6                 1.6.7-1.1                 The GNU extension 
> ii  guile-1.6-dev             1.6.7-1.1                 Development files for 
> ii  guile-1.6-doc             1.6.7-1.1                 Reference and  
> ii  guile-1.6-libs            1.6.7-1.1                 Main Guile libraries
> ii  guile-1.6-slib            1.6.7-1.1                 Guile SLIB support
> ii  guile-common              1.4-26                    Common files for all 
> pn  guile-db                  <none>                    (no description 
> un  guile-dev                 <none>                    (no description 
> un  guile-doc                 <none>                    (no description 
> ii  guile-g-wrap              1.9.6-3                   scripting interface 
> un  guile-lib                 <none>                    (no description 
> ii  guile-library             0.1.2-1                   Library of useful 
> pn  guile-pg                  <none>                    (no description 
> pn  guile-www                 <none>                    (no description 
> un  guile1.3                  <none>                    (no description )
> un  guile1.3-doc              <none>                    (no description )
> ii  guile1.4                  1.4-26                    The GNU extension 
> pn  guile1.4-doc              <none>                    (no description )
> ii  guile1.4-slib             1.4-26                    SLIB support 
> 
> 
> $ dpkg -l libgwrap*
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: 
> uppercase=bad)
> ||/ Name                      Version                   Description
> +++-=========================-=========================-==================================================================
> ii  libgwrap-runtime0         1.9.6-3                   scripting interface 
> generator for C - runtime
> ii  libgwrap-runtime0-dev     1.9.6-3                   scripting interface 
> generator for C - development files
> pn  libgwrapguile-dev         <none>                    (no description 
> available)
> ii  libgwrapguile1            1.3.4-15                  g-wrap: Tool for 
> exporting C libraries into Scheme interpreters
> 
> Don't worry if some of my installed packages don't show but DO make sure you 
> don't have any installed that I have shown as uninstalled!
> 
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel


More information about the gnucash-devel mailing list