GNUCash with Solaris 9

Peter Arnold arnoldpj at optusnet.com.au
Sun Jul 9 21:32:30 EDT 2006


Hi
I've been trying to get GNUCash compiled on Solaris 9 and have come up with the follwing problems and observations. Hopefully this will assist in progession of getting GNUCash working on Solaris.

I'm using Solaris 9 on sparc and my predominant application source is www.blastwave.org. G-Wrap 1.3.4 was compiled and installed. blastwave's slib was installed. I'm using blastwaves gcc3 and probably numerous other packages as well.

1) a) the Australian site is horribly out of date
   b) the Australian download link should be updated to ftp://ftp.planetmirror.com/pub/gnucash
      apart from that the site is also broken (for me anyway) in that I cant list the subdirectories.

2) I had heaps of trouble with the configure glib test even though I disabled it. I have several versions of glib (1.2 and 2) installed as dependancies of other packages. This caused me no end of grief. I ended up seting the following vars at configure time.

LD_LIBRARY_PATH="/usr/lib:${BASEDIR}/lib:${BASEDIR}/lib/sparcv8:/usr/lib" \
GLIB_CFLAGS='-I/opt/csw/include/glib-2.0 -I/opt/csw/lib/glib-2.0/include' \
GLIB_LIBS='-R${BASEDIR}/lib/\$ISALIST -R${BASEDIR}/lib -L/opt/csw/lib -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0' \

Ugly but effective in just getting through configure.


3) There seems to be some anomaly when configure is testing for libgtkhtml-3.x. There are separate packages gtkhtml-3.x and libgtkhtml-2.x. I have libgtkhtml-2.x installed and it didn't find it.
I bypassed this in config by hacking a false positive and it continued to finish configure.

  Options detected/selected
  -------------------------
  gnucash version ...... : 1.9.8
  Build for host ....... : sparc-sun-solaris2.9
  Optional components....:
  Extra Warnings ....... :  -Wdeclaration-after-statement
  CPPFLAGS ............. :  -I
  CFLAGS ............... :  -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations   -Wdeclaration-after-statement
  LDFLAGS .............. :  -L/opt/SUNWspro/lib -R/opt/SUNWspro/lib -lsunmath
  prefix.................: /opt/csw
  Native libgsf..........: no
  Native goffice.........: no
  QOF support ...........: internal
  QOF location ..........: internal
  QOF library dir .......: /opt/csw/lib
  QOF backend config ....: /opt/csw/gnucash/xml/qsf

I'm a little curious where it got the LDFLAGS from but I suspect thats a config problem on my machine somewhere. I don't have SUNWspro installed.

4) Make certainly proceeded for quite some time with lots of repetative "egrep: syntax error" interspersed throughout the output but finally terminating with:
gmake  all-am
gmake[4]: Entering directory `/opt/distribs/packages/devel/gnucash/gnucash-1.9.8/src/core-utils'
if /bin/bash ../../libtool --tag=CC --mode=compile /opt/csw/gcc3/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../..   -I -I /opt/csw/include/g
-wrap  -D_REENTRANT -I/opt/csw/include/glib-2.0 -I/opt/csw/lib/glib-2.0/include   -D_REENTRANT -DORBIT2=1 -I/opt/csw/include/glib-2.0 -I/opt/csw/lib/glib-2
.0/include -I/opt/csw/include/orbit-2.0 -I/opt/csw/include/gconf/2   -I/opt/csw/include/glib-2.0 -I/opt/csw/lib/glib-2.0/include -I/opt/csw/include/cairo -
I/opt/csw/include/pango-1.0 -I/opt/csw/include/gtk-2.0 -I/opt/csw/include/atk-1.0 -I/opt/csw/lib/gtk-2.0/include -Wall -Wunused -Wmissing-prototypes -Wmiss
ing-declarations   -Wdeclaration-after-statement -MT gnc-main.lo -MD -MP -MF ".deps/gnc-main.Tpo" -c -o gnc-main.lo gnc-main.c; \
        then mv -f ".deps/gnc-main.Tpo" ".deps/gnc-main.Plo"; else rm -f ".deps/gnc-main.Tpo"; exit 1; fi
mkdir .libs
 /opt/csw/gcc3/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../.. -I -I /opt/csw/include/g-wrap -D_REENTRANT -I/opt/csw/include/glib-2.0 -I/op
t/csw/lib/glib-2.0/include -D_REENTRANT -DORBIT2=1 -I/opt/csw/include/glib-2.0 -I/opt/csw/lib/glib-2.0/include -I/opt/csw/include/orbit-2.0 -I/opt/csw/incl
ude/gconf/2 -I/opt/csw/include/glib-2.0 -I/opt/csw/lib/glib-2.0/include -I/opt/csw/include/cairo -I/opt/csw/include/pango-1.0 -I/opt/csw/include/gtk-2.0 -I
/opt/csw/include/atk-1.0 -I/opt/csw/lib/gtk-2.0/include -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -MT gnc-ma
in.lo -MD -MP -MF .deps/gnc-main.Tpo -c gnc-main.c  -fPIC -DPIC -o .libs/gnc-main.o
gcc: /opt/csw/include/g-wrap: linker input file unused because linking not done
cc1: /opt/csw/include/g-wrap: No such file or directory
gmake[4]: *** [gnc-main.lo] Error 1
gmake[4]: Leaving directory `/opt/distribs/packages/devel/gnucash/gnucash-1.9.8/src/core-utils'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory `/opt/distribs/packages/devel/gnucash/gnucash-1.9.8/src/core-utils'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/opt/distribs/packages/devel/gnucash/gnucash-1.9.8/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/opt/distribs/packages/devel/gnucash/gnucash-1.9.8'
gmake: *** [all] Error 2


I'm willing to assist where I can to get this going but must warn I'm no programmer. That said I do manage to compile most mainstream opensource software.

Thanks
P


More information about the gnucash-user mailing list