Compiling 1.6.7 with sql

Klaus Dahlke klaus.dahlke@gmx.de
25 Aug 2002 22:59:56 +0200


On Thu, 2002-08-22 at 23:07, Klaus Dahlke wrote:
> On Thu, 2002-08-22 at 04:21, Chris Lyttle wrote:
> > On Wed, 2002-08-21 at 13:15, Klaus Dahlke wrote:
> > > Hi all,
> > > 
> > > I downloaded gnucash-1.6.7, updated also g-wrap to 1.2.1 an did a 
> > > 
> > > ./configure --prefix=/opt/gnome --with-gnome=/opt/gnome
> > > 
> > > and configure runs fine, except some warning messages, that one or two
> > > of Makefiles.in are not accessible.
> > > 
> > > Compilation stops in src/engine/sql with
> > > 
> > > 
> > > gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I.. -I/usr/lib/glib/include
> > > -I/opt/gnome/include -g -O2 -Wall -Wunused -Wall -Wno-unused
> > > -Werror-implicit-function-declaration -I/usr/include/pgsql
> > > -I/usr/include/pgsql -I/app/gnome/include/glib-1.2
> > > -I/app/gnome/lib/glib/include -c txnmass.c -o txnmass.o >/dev/null 2>&1
> > > mv -f .libs/txnmass.lo txnmass.lo
> > > make: *** No rule to make target `../libgncengine.la', needed by
> > > `libgnc_postgres.la'.  Stop.
> > > 
> > You're missing some vital information here. There is no way you could be
> > compiling in src/engine/sql without using the --enable-sql switch to
> > configure. Please provide more info on what distro you are compiling on
> > and exactly what commands you are running to get these errors.
> > 
> > Chris
> > -- 
> 
> Chris,
> 
> I downloaded gnucash 1.6.8 and did './configure --prefix=/opt/gnome
> --enable-sql' which workout fine, the only thing mentioned was that
> system could not read makefile.in in src/optional/swig and
> src/optional/swig/examples. I want to run gnucash with sql-support.
> 
> Again compilation stops with
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I.. -I/usr/lib/glib/include -g
> -O2 -Wall -Wunused -Wall -Wno-unused
> -Werror-implicit-function-declaration -I/usr/include/pgsql
> -I/usr/include/pgsql -I/app/gnome/include/glib-1.2
> -I/app/gnome/lib/glib/include -c txnmass.c  -fPIC -DPIC -o
> .libs/txnmass.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I.. -I/usr/lib/glib/include -g
> -O2 -Wall -Wunused -Wall -Wno-unused
> -Werror-implicit-function-declaration -I/usr/include/pgsql
> -I/usr/include/pgsql -I/app/gnome/include/glib-1.2
> -I/app/gnome/lib/glib/include -c txnmass.c -o txnmass.o >/dev/null 2>&1
> mv -f .libs/txnmass.lo txnmass.lo
> make[4]: *** No rule to make target `../libgncengine.la', needed by
> `libgnc_postgres.la'.  Stop.
> make[4]: Leaving directory `/opt/work/gnucash-1.6.8/src/engine/sql'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/opt/work/gnucash-1.6.8/src/engine'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/opt/work/gnucash-1.6.8/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/opt/work/gnucash-1.6.8'
> make: *** [all-recursive-am] Error 2
> 
> I have a SuSE 7.3 with kernel 2.4-10, gnome-1.4 and gnome2 in parallel. 
> Even if I delete the path to the gnome2-libs from ld.so.conf, the error 
> occurs.
> 
> Thanks,
> Klaus
> 
I stil cannot manage to get gnucash-1.6.8 compiled in a staight forward
manner. For gnucash-1.6.6 everything is fine. I do a './configure
--prefix=/opt/gnome --enable-sql' and it runs through fine. Also during
compilation no errors. For gnucash-1.6.8 and './configure
--prefix=/opt/gnome --enable-sql' the compilation stops with the error
mentioned above. To by-pass this, I did a ./configure
--prefix=/opt/gnome', then 'make' and the compilation ended successful.
Then, I created new Makefiles by ./configure --prefix=/opt/gnome
--enable-sql' and compiled again. As 'libgncengine.la' is now present,
the compilation is successful and it seems, gnucash-1.6.8 seems to work.

Cheers,
Klaus