solved: ld can't resolve all depencies (guile, g-wrap)

Stefan Marx Stefan.Marx@rhein-hacking.de
Mon, 12 Mar 2001 21:17:33 +0100


Hi Peter,

a few days ago you wrote how to set up once - and once & only - 
guile and g-wrap libs. Works! Wonderful! Real screens, no fake.
Thanks a *whole* lot! I've been hacking on that stuff for weeks -
not continious, but indeed, this is the only purpose I use w2k ope-
rative. Now I can use the much more stable Linux Staff - I think
I must ruin my uptime to grab a QIF file.

Thanx again, Stefan

> Hi stefan,
> 
> It appears as if you are using a new version of swig (does something
> for/with Scheme), or is it that you do not use swig at all?
> Try installing swig1.1-883 instead it helped me to get rid of the "undefined
> reference to 'scm...'" compilation messages.
> Furthermore it appears that your /usr/local/lib and usr/lib has pointers to
> the wrong libguile* libs. NOTE that this only happens if for instance you
> tried more than one version of Guille (I am not sure if SuSE installs it per
> default). The only way I could get passed that, was to reinstall guile and
> g-wrap:
> host:/usr/local/lib # rm libguile*
> host:/usr/lib # rm libguile.so   
> host:/usr/lib # rm libguilereadline.a
> host:/usr/lib # rm libguilereadline.la
> host:/usr/lib # rm libguile.a
> host:/usr/lib # rm libguile.la
> host:/usr/lib # rm libguilereadline.so
> host:/usr/lib # rm libguilereadline.so.0
> Then reinstall guile and g-wrap (be sure to make clean before install).
> Do not forget to reinstall slib
> cd /usr/local/share/guile
> cp /usr/src/download/gnucash/slib2c9/slib ./1.4 (or other versions of
> slib/guile you use).
> 
> Hope this helps you to enjoy real pictures not just screenshots.
> 
> Regards
> 
> Peter.....
> 
> 
> -----Oorspronkelijk bericht-----
> Van: Stefan Marx [mailto:Stefan.Marx@rhein-hacking.de]
> Verzonden: zaterdag 3 maart 2001 16:33
> Aan: gnucash-user@lists.gnumatic.com
> Onderwerp: ld can't resolve all depencies
> 
> 
> Hi,
> 
> after the *very* usefull tip from dave (thanx!) to downgrade the g-warp
> stuff to 0.9.12 can compile the gnucash 1.4.10 but I stopped at time 
> when linking is done:
> [..]
> gcc -g -O2 -Wall -I/usr/lib/glib/include -I/opt/gnome/include
> -DNEED_GNOMESUPPORT_H -I/opt/gnome/lib/gnome-libs/include
> -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gnome-xml
> -I/usr/local/include -o .libs/gnucash MultiLedger.o SplitLedger.o Destroy.o
> EuroUtils.o FileDialog.o Refresh.o gnome/libgncgnome.a
> register/libgncregister.a register/gnome/libgncregistergnome.a
> guile/libgncguile.a gnome/libgncgnome.a engine/.libs/libgncengine.so -lm
> -rdynamic -L/opt/gnome/lib -L/usr/lib -L/usr/X11R6/lib -lgnomeui -lart_lgpl
> -lgdk_imlib -lgnome -lgnomesupport
> -lesd -laudiofile -ldb1 -lgtkxmhtml -lXpm -ljpeg -lpng -lSM -lICE -lgtk
> -lgdk -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -lxml -lz
> /usr/local/lib/libgwrapguile.a -L/usr/local/lib -lguile -lm
> ../intl/libintl.a -lm -Wl,--rpath -Wl,/usr/local/lib
> gguile/libgncguile.a(gnc.o): In function `POINTER_TOKEN_to_SCM':
> /opt/soft/gnucash-1.4.10/src/guile/gnc.c:74: undefined reference to
> `scm_master_freelist'
> guile/libgncguile.a(gnc.o): In function `POINTER_ARRAY_to_SCM':
> /opt/soft/gnucash-1.4.10/src/guile/gnc.c:99: undefined reference to
> `scm_master_freelist'
> guile/libgncguile.a(gnc.o): In function `gwrap_xaccSplitGetBalance':
> /opt/soft/gnucash-1.4.10/src/guile/gnc.c:587: undefined reference to
> `scm_make_complex'
> guile/libgncguile.a(gnc.o): In function `gwrap_xaccSplitGetShareBalance':
> /opt/soft/gnucash-1.4.10/src/guile/gnc.c:620: undefined reference to
> `scm_make_complex'
> guile/libgncguile.a(gnc.o): In function `gwrap_xaccSplitGetCostBasis':
> /opt/soft/gnucash-1.4.10/src/guile/gnc.c:653: undefined reference to
> `scm_make_complex'
> guile/libgncguile.a(gnc.o): In function `gwrap_xaccSplitGetShareAmount':
> /opt/soft/gnucash-1.4.10/src/guile/gnc.c:851: undefined reference to
> `scm_make_complex'
> guile/libgncguile.a(gnc.o): In function `gwrap_xaccSplitGetSharePrice':
> /opt/soft/gnucash-1.4.10/src/guile/gnc.c:884: undefined reference to
> `scm_make_complex'
> guile/libgncguile.a(gnc.o):/opt/soft/gnucash-1.4.10/src/guile/gnc.c:917:
> more undefined references to `scm_make_complex' follow
> /usr/lib/libguile.so: undefined reference to `qt_abort'
> /usr/lib/libguile.so: undefined reference to `qt_error'
> /usr/lib/libguile.so: undefined reference to `qt_block'
> collect2: ld returned 1 exit status
> make[3]: *** [gnucash] Error 1
> make[3]: Leaving directory `/opt/soft/gnucash-1.4.10/src'
> [.]
> I tried to avoid using swig cause the directory names pointed in a direction
> that it is optional and I simple don't have it handy at my system. Befor
> starting further efforts with an nm and friends: Anyone a pointer for my
> whats
> missing on a KDE based SuSE 7.0 - fairly generic? Dave, I was so exited to
> see
> these windows I look at from the screenshorts after I conquered that g-wrap
> show-stopper a now get stuck by this ;=)  ... ordenary lib missing blues, I
> assuming?
> 
> Grettings from Cologne, Germany,
> cu Stefan
> -- 
> Stefan.Marx@rhein-hacking.DE          http://www.rhein-hacking.DE
> Eisenachstrasse 29                    cellular 0171-2116079
> 50733 Cologne, Germany                fax +49-221-9123251
> 
> _______________________________________________
> gnucash-user mailing list
> gnucash-user@lists.gnumatic.com
> http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-user
-- 
Stefan.Marx@rhein-hacking.DE          http://www.rhein-hacking.DE
Eisenachstrasse 29                    cellular 0171-2116079
50733 Cologne, Germany                fax +49-221-9123251