Build trouble with gnucash 2.4.2 on openSUSE 11.3

Hi guys,

When trying to build gnucash 2.4.2 on my openSUSE 11.3 system, I am running into the following trouble:


#> make check
...
Making check in test
make[4]: Entering directory `/home/me/Downloads/gnucash-2.4.2/src/core-utils/test'
make  test-gnc-uri-utils test-resolve-file-path
make[5]: Entering directory `/home/me/Downloads/gnucash-2.4.2/src/core-utils/test'
gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../.. -I../../../src -I../../../src/test-core -I../../../src/libqof/qof -I../../../src/core-utils  -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include     -Wdeclaration-after-statement -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations  -Wno-unused -MT test-gnc-uri-utils.o -MD -MP -MF .deps/test-gnc-uri-utils.Tpo -c -o test-gnc-uri-utils.o test-gnc-uri-utils.c
mv -f .deps/test-gnc-uri-utils.Tpo .deps/test-gnc-uri-utils.Po
/bin/sh ../../../libtool --tag=CC   --mode=link gcc -Wdeclaration-after-statement -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations  -Wno-unused   -o test-gnc-uri-utils test-gnc-uri-utils.o ../libgnc-core-utils.la ../../../src/test-core/libtest-core.la ../../../src/libqof/qof/libgnc-qof.la -pthread -Wl,--export-dynamic -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lrt -lglib-2.0   -lm -lpthread  -lm
libtool: link: gcc -Wdeclaration-after-statement -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wno-unused -o .libs/test-gnc-uri-utils test-gnc-uri-utils.o -pthread -Wl,--export-dynamic  ../.libs/libgnc-core-utils.so ../../../src/test-core/.libs/libtest-core.a ../../../src/libqof/qof/.libs/libgnc-qof.so -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lrt -lglib-2.0 -lpthread -lm -pthread
../.libs/libgnc-core-utils.so: undefined reference to `scm_str2symbol'
../.libs/libgnc-core-utils.so: undefined reference to `scm_wrong_type_arg'
../.libs/libgnc-core-utils.so: undefined reference to `scm_makstr'
../.libs/libgnc-core-utils.so: undefined reference to `scm_makfrom0str'
../.libs/libgnc-core-utils.so: undefined reference to `scm_sym2var'
../.libs/libgnc-core-utils.so: undefined reference to `scm_c_resolve_module'
../.libs/libgnc-core-utils.so: undefined reference to `scm_ulong2num'
../.libs/libgnc-core-utils.so: undefined reference to `scm_c_module_lookup'
../.libs/libgnc-core-utils.so: undefined reference to `scm_lfwrite'
../.libs/libgnc-core-utils.so: undefined reference to `scm_must_free'
../.libs/libgnc-core-utils.so: undefined reference to `scm_c_define_module'
../.libs/libgnc-core-utils.so: undefined reference to `scm_i_deprecated_stringp'
../.libs/libgnc-core-utils.so: undefined reference to `scm_permanent_object'
../.libs/libgnc-core-utils.so: undefined reference to `scm_num2ulong'
../.libs/libgnc-core-utils.so: undefined reference to `scm_c_make_keyword'
../.libs/libgnc-core-utils.so: undefined reference to `scm_set_smob_equalp'
../.libs/libgnc-core-utils.so: undefined reference to `scm_i_deprecated_string_length'
../.libs/libgnc-core-utils.so: undefined reference to `scm_wrong_type_arg_msg'
../.libs/libgnc-core-utils.so: undefined reference to `scm_set_smob_print'
../.libs/libgnc-core-utils.so: undefined reference to `scm_module_lookup_closure'
../.libs/libgnc-core-utils.so: undefined reference to `scm_set_smob_free'
../.libs/libgnc-core-utils.so: undefined reference to `scm_c_define_gsubr'
../.libs/libgnc-core-utils.so: undefined reference to `scm_intprint'
../.libs/libgnc-core-utils.so: undefined reference to `scm_i_deprecated_string_chars'
../.libs/libgnc-core-utils.so: undefined reference to `scm_c_export'
../.libs/libgnc-core-utils.so: undefined reference to `scm_make_smob_type'
../.libs/libgnc-core-utils.so: undefined reference to `scm_must_malloc'
../.libs/libgnc-core-utils.so: undefined reference to `scm_variable_ref'
collect2: ld returned 1 exit status
make[5]: *** [test-gnc-uri-utils] Error 1
make[5]: Leaving directory `/home/me/Downloads/gnucash-2.4.2/src/core-utils/test'
make[4]: *** [check-am] Error 2
make[4]: Leaving directory `/home/me/Downloads/gnucash-2.4.2/src/core-utils/test'
make[3]: *** [check-recursive] Error 1
make[3]: Leaving directory `/home/me/Downloads/gnucash-2.4.2/src/core-utils'
make[2]: *** [check] Error 2
make[2]: Leaving directory `/home/me/Downloads/gnucash-2.4.2/src/core-utils'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/me/Downloads/gnucash-2.4.2/src'
make: *** [check-recursive] Error 1 

Please could anybody give me a hint?

TIA
-Rigge

On 02/19/2011 12:36 PM, openRigge wrote:
>
> When trying to build gnucash 2.4.2 on my openSUSE 11.3 system,

i assume you are building for fun, since Gnucash is available via
YaST, and the source <http://www.gnucash.org/download.phtml> says
“Most linux distributions come bundled with a version of GnuCash,
though it’s not always the most recent version and it may not have
been installed by default. Still it is recommended to use the
GnuCash version that comes with your distribution.”

>I am running into the following trouble:
>
> #> make check

couple of things:

first: according to the instructions (INSTALL) in the tar ball ‘make
check’ is an unrequired optional step…so, if it gives you trouble,
try following the recommended way…

second: you are running as root and should NOT! it is always
recommended to run configure and make as a simple user and then revert
to root for ‘make install’–these are standard instructions, do not
get creative (unless you want problems)…

> …
> Making check in test
> …/.libs/libgnc-core-utils.so: undefined reference to `scm_str2symbol’

…/.libs/libgnc-core-utils.so: undefined reference to scm_wrong_type_arg' &gt; ../.libs/libgnc-core-utils.so: undefined reference to scm_makstr’ [SNIP]
>
> Please could anybody give me a hint?

hint: follow recommended procedure…and, let us know how you get on…


DenverD
CAVEAT: http://is.gd/bpoMD
[NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.0.11, nVidia
173.14.28 3D, Athlon 64 3000+]
“It is far easier to read, understand and follow the instructions than
to undo the problems caused by not.” DD 23 Jan 11

Hi
What were your compile options?

If you look on the build service you can see what is done for openSUSE (Including some patches);
https://build.opensuse.org/package/view_file?file=gnucash.spec&package=gnucash&project=openSUSE%3A11.3&srcmd5=c4adb1a5648c71d098ddd747adb0f510

They don’t use the make check…