libgsf, goffice and gnucash

Derek Atkins warlord at MIT.EDU
Sun Nov 20 13:02:08 EST 2005


These symbols are from libguile..

-derek

Quoting Neil Williams <linux at codehelp.co.uk>:

> Josh, I'm getting some strange library problems in the goffice-update branch
> and OSX.
>
> in src/gnc-module/test/mod-foo
>
> ld: Undefined symbols:
> _gh_eval_str
> _gh_new_procedure
> _scm_c_make_keyword
> _scm_cons
> _scm_error
> _scm_ints_disabled
> _scm_long2num
> _scm_makfrom0str
> _scm_memory_error
> _scm_misc_error
> _scm_out_of_range
> _scm_permanent_object
> _scm_wrong_num_args
> _scm_wrong_type_arg
> _g_strdup
> _scm_c_eval_string
>
> I fear that your goffice settings are somehow overwriting variables that are
> set OK in trunk. I can't find ANY changes in src/gnc-module/*/* between the
> branch and trunk.
>
> The make (link) output before this error is:
> $ make
> make  all-am
> /bin/sh ../../../../libtool --tag=CC --mode=link gcc -I../../../../src
> -I../../../../src/gnc-module  -I /sw/include/g-wrap -I/sw/include/glib-2.0
> -I/sw/lib/glib-2.0/include   -g -O2 -Wall -Wunused   -Werror  -no-undefined
> -L/sw/lib -o libgncmodfoo.la
> -rpath /opt/branch/goffice-update/src/gnc-module/test/mod-foo  foo-gwrap.lo
> gnc-mod-foo.lo libfoo.la -lpopt -lm  -lm
> gcc -dynamiclib
> -o .libs/libgncmodfoo.0.0.0.dylib  .libs/foo-gwrap.o .libs/gnc-mod-foo.o
> -L/sw/lib ./.libs/libfoo.dylib /sw/lib/libintl.dylib 
> /sw/lib/libiconv.dylib /sw/lib/libpopt.dylib
> -lm
> -install_name  
> /opt/branch/goffice-update/src/gnc-module/test/mod-foo/libgncmodfoo.0.dylib
> -Wl,-compatibility_version -Wl,1 -Wl,-current_version -Wl,1.0
>
> Whereas in trunk, I get:
>
> /bin/sh ../../../../libtool --tag=CC --mode=link gcc -I../../../../src
> -I../../../../src/gnc-module  -I /sw/include/g-wrap -I/sw/include/glib-2.0
> -I/sw/lib/glib-2.0/include   -g -O2 -Wall -Wunused   -Werror  -L/sw/lib -o
> libgncmodfoo.la -rpath /opt/working/gnucash/src/gnc-module/test/mod-foo
> foo-gwrap.lo gnc-mod-foo.lo libfoo.la -lpopt -lm  -lm
> gcc -dynamiclib ${wl}-flat_namespace ${wl}-undefined ${wl}suppress
> -o .libs/libgncmodfoo.0.0.0.dylib  .libs/foo-gwrap.o .libs/gnc-mod-foo.o
> -L/sw/lib ./.libs/libfoo.dylib /sw/lib/libintl.dylib 
> /sw/lib/libiconv.dylib /sw/lib/libpopt.dylib
> -lm
> -install_name  
> /opt/working/gnucash/src/gnc-module/test/mod-foo/libgncmodfoo.0.dylib
> -Wl,-compatibility_version -Wl,1 -Wl,-current_version -Wl,1.0
> (cd .libs && rm -f libgncmodfoo.0.dylib && ln -s libgncmodfoo.0.0.0.dylib
> libgncmodfoo.0.dylib)
> (cd .libs && rm -f libgncmodfoo.dylib && ln -s libgncmodfoo.0.0.0.dylib
> libgncmodfoo.dylib)
> creating libgncmodfoo.la
>
> So that's -no-undefined added and  ${wl}-flat_namespace ${wl}-undefined
> ${wl}suppress removed.
>
> I get the same in other test/ directories - libgncmodbar.la fails too. It's
> the -no-undefined that is the problem, but I can't get rid of it - it's not
> in the Makefile.am and even if I edit Makefile, it still uses the switch. I
> have to copy the make output, paste it as a command and edit the command line
> manually.
>
>
> --
>
> Neil Williams
> =============
> http://www.data-freedom.org/
> http://www.nosoftwarepatents.com/
> http://www.linux.codehelp.co.uk/
>
>



-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available



More information about the gnucash-devel mailing list