Problems building 2.2.1 (svn) on openSuse 10.3

Davide Imbeni davide.imbeni at gmail.com
Mon Oct 15 03:33:16 EDT 2007


Hi list,

I am facing some problems trying to build the svn version of Gnucash
2.2.1on openSuse
10.3 on a x86_64 arch. I believe all dependencies should be ok.

1 -- First issue (solved, maybe in the wrong way): after successful
./configure, make stops with error

/bin/sh ../../../libtool --tag=CC   --mode=link gcc -pthread
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I../../../lib/libc
-Werror -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2
-g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations
-Wno-unused -version-info 1:4:0  -o libgnc-qof.la -rpath /usr/local/lib
deprecated.lo gnc-date.lo gnc-numeric.lo guid.lo kvp_frame.lo kvp-util.lo
md5.lo qofbackend.lo qofclass.lo qofchoice.lo qofid.lo qofinstance.lo
qofquery.lo qofbook.lo qofevent.lo qoflog.lo qofobject.lo qofquerycore.lo
qofreference.lo qofutil.lo qofsession.lo qofbookmerge.lo  -pthread
-Wl,--export-dynamic -lgthread-2.0 -lrt -lgobject-2.0 -lgmodule-2.0 -ldl -
lglib-2.0    ../../../lib/libc/libc-missing.la -lpopt -lm -lpthread  -lm
libtool: link: cannot find the library `/usr/lib64/libpopt.la' or unhandled
argument `/usr/lib64/libpopt.la'
make[5]: *** [libgnc-qof.la] Error 1
make[5]: Leaving directory `/usr/local/src/gnucash-svn/lib/libqof/qof'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/usr/local/src/gnucash-svn/lib/libqof/qof'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/gnucash-svn/lib/libqof'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/gnucash-svn/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/gnucash-svn'
make: *** [all] Error 2

With respect to openSuse 10.2 (where I was able to build gnucash), the
differences in 10.3 are: libpopt.la is missing, and all libpopt.so* are
located in /lib64 instead of /usr/lib64. I just copied the old (10.2)
libpopt.la in /lib64, changed libdir=/usr/lib64 to libdir=/lib64 in its last
line and simlinked it to /usr/lib64.
Since I have a VERY faint idea of what .la files actually do: was this
correct? dirty? any better solutions/suggestions?

2 -- The above allowed make to continue compiling... for a while.
Next error, on which I'm currently stuck, is:

 gcc -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN=\"gnc.engine\"
-I../../lib/libc -I../../src/core-utils -I../../src -I../../src
-I../../src/gnc-module -I../../lib/libqof/qof -I../../lib/libqof/qof
-pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread
-Werror -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2
-g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations
-Wno-unused -MT engine-helpers.lo -MD -MP -MF .deps/engine-helpers.Tpo -c
engine-helpers.c  -fPIC -DPIC -o .libs/engine-helpers.o
cc1: warnings being treated as errors
engine-helpers.c: In function 'gnc_generic_to_scm':
engine-helpers.c:2161: warning: passing argument 1 of
'SWIG_Guile_NewPointerObj' discards qualifiers from pointer target type
make[5]: *** [engine-helpers.lo] Error 1
make[5]: Leaving directory `/usr/local/src/gnucash-svn/src/engine'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/local/src/gnucash-svn/src/engine'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/local/src/gnucash-svn/src/engine'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/gnucash-svn/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/gnucash-svn'
make: *** [all] Error 2

slib and swig are obviously installed.
Any suggestions?

Thanks a lot

Davide


More information about the gnucash-devel mailing list