upgrade from gnucash-2.0.5 fails looking for libraries. I recompiled guile-1.8.3 and slib-3.1.5-r1. Still fails. Reproducible: Always Steps to Reproduce: 1. emerge gnucash 2. 3. Actual Results: /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: warning: libguile.so.12, needed by /usr/lib/gnucash/libgncmod-register-core.so.0, may conflict with libguile.so.17 /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: warning: libguile-ltdl.so.1, needed by /usr/lib/gnucash/libgncmod-register-core.so.0, not found (try using -rpath or -rpath-link) /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: warning: libqthreads.so.12, needed by /usr/lib/gnucash/libgncmod-register-core.so.0, not found (try using -rpath or -rpath-link) /usr/lib/libgwrap-guile-runtime.so.0: undefined reference to `scm_freelist' /usr/lib/gnucash/libgw-engine.so.0: undefined reference to `scm_ints_disabled' /usr/lib/gnucash/libgw-engine.so.0: undefined reference to `coop_yield' /usr/lib/libgwrap-guile-runtime.so.0: undefined reference to `scm_master_freelist' /usr/lib/gnucash/libgw-engine.so.0: undefined reference to `scm_thread_count' /usr/lib/gnucash/libgw-engine.so.0: undefined reference to `scm_switch_counter' /usr/lib/gnucash/libgw-engine.so.0: undefined reference to `scm_block_gc' collect2: ld returned 1 exit status distcc[13002] ERROR: compile (null) on localhost failed make[4]: *** [gnucash-bin] Error 1 Expected Results: successful emerge gnucash # These settings were set by the catalyst build script that automatically built this stage # Please consult /etc/make.conf.example for a more detailed example CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CXXFLAGS="${CFLAGS}" DISTCC_HOSTS="localhost " FEATURES="distcc" **Output from emerge gnucash /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: warning: libguile.so.12, needed by /usr/lib/gnucash/libgncmod-register-core.so.0, may conflict with libguile.so.17 /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: warning: libguile-ltdl.so.1, needed by /usr/lib/gnucash/libgncmod-register-core.so.0, not found (try using -rpath or -rpath-link) /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: warning: libqthreads.so.12, needed by /usr/lib/gnucash/libgncmod-register-core.so.0, not found (try using -rpath or -rpath-link) /usr/lib/libgwrap-guile-runtime.so.0: undefined reference to `scm_freelist' /usr/lib/gnucash/libgw-engine.so.0: undefined reference to `scm_ints_disabled' /usr/lib/gnucash/libgw-engine.so.0: undefined reference to `coop_yield' /usr/lib/libgwrap-guile-runtime.so.0: undefined reference to `scm_master_freelist' /usr/lib/gnucash/libgw-engine.so.0: undefined reference to `scm_thread_count' /usr/lib/gnucash/libgw-engine.so.0: undefined reference to `scm_switch_counter' /usr/lib/gnucash/libgw-engine.so.0: undefined reference to `scm_block_gc' collect2: ld returned 1 exit status distcc[13002] ERROR: compile (null) on localhost failed make[4]: *** [gnucash-bin] Error 1 make[4]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.2.3/work/gnucash-2.2.3/src/bin' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.2.3/work/gnucash-2.2.3/src/bin' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.2.3/work/gnucash-2.2.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.2.3/work/gnucash-2.2.3' make: *** [all] Error 2 * ** Tail of build.log mkdir .libs i686-pc-linux-gnu-gcc -I../.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DORBIT2=1 -pthread -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libbonobo-2.0 -I/usr/include/orbit-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2 -I/usr/include/libart-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gconf/2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I../../lib/libqof/qof -I../../lib/libqof/qof -DPKGSYSCONFDIR=\"/etc/gnucash\" -DPKGDATADIR=\"/usr/share/gnucash\" -DGNC_HELPDIR=\"/usr/share\" -I../../src -I../../src -I../../src/core-utils -I../../src/app-utils -I../../src/gnome-utils -I../../src/engine -I../../src/gnome -I../../src/gnome-utils -I../../src/gnc-module -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -march=i686 -pipe -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wno-unused -g -o .libs/gnucash-bin gnucash-bin.o -pthread -pthread -Wl,--export-dynamic -pthread /usr/lib/libguile.so /usr/lib/libgmp.so -lcrypt /usr/lib/libltdl.so /usr/lib/libgnomeui-2.so /usr/lib/libSM.so /usr/lib/libICE.so /usr/lib/libbonoboui-2.so /usr/lib/libgnomevfs-2.so /usr/lib/libxml2.so -lz /usr/lib/libgnomecanvas-2.so /usr/lib/libgnome-2.so /usr/lib/libbonobo-2.so /usr/lib/libbonobo-activation.so /usr/lib/libart_lgpl_2.so /usr/lib/libpangoft2-1.0.so /usr/lib/libgconf-2.so /usr/lib/libORBit-2.so /usr/lib/libgthread-2.0.so -lrt /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so ../../lib/libqof/qof/.libs/libgnc-qof.so ../../src/engine/.libs/libgncmod-engine.so ../../src/gnome/.libs/libgnc-gnome.so ../../src/gnome-utils/.libs/libgncmod-gnome-utils.so ../../src/app-utils/.libs/libgncmod-app-utils.so ../../src/core-utils/.libs/libgnc-core-utils.so ../../src/gnc-module/.libs/libgnc-module.so /usr/lib/libpopt.so -lm -Wl,--rpath -Wl,/usr/lib/gnucash /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: warning: libguile.so.12, needed by /usr/lib/gnucash/libgncmod-register-core.so.0, may conflict with libguile.so.17 /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: warning: libguile-ltdl.so.1, needed by /usr/lib/gnucash/libgncmod-register-core.so.0, not found (try using -rpath or -rpath-link) /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: warning: libqthreads.so.12, needed by /usr/lib/gnucash/libgncmod-register-core.so.0, not found (try using -rpath or -rpath-link) /usr/lib/libgwrap-guile-runtime.so.0: undefined reference to `scm_freelist' /usr/lib/gnucash/libgw-engine.so.0: undefined reference to `scm_ints_disabled' /usr/lib/gnucash/libgw-engine.so.0: undefined reference to `coop_yield' /usr/lib/libgwrap-guile-runtime.so.0: undefined reference to `scm_master_freelist' /usr/lib/gnucash/libgw-engine.so.0: undefined reference to `scm_thread_count' /usr/lib/gnucash/libgw-engine.so.0: undefined reference to `scm_switch_counter' /usr/lib/gnucash/libgw-engine.so.0: undefined reference to `scm_block_gc' collect2: ld returned 1 exit status distcc[13002] ERROR: compile (null) on localhost failed make[4]: *** [gnucash-bin] Error 1 make[4]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.2.3/work/gnucash-2.2.3/src/bin' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.2.3/work/gnucash-2.2.3/src/bin' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.2.3/work/gnucash-2.2.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.2.3/work/gnucash-2.2.3' make: *** [all] Error 2 [31;01m*[0m [31;01m*[0m ERROR: app-office/gnucash-2.2.3 failed. [31;01m*[0m Call stack: [31;01m*[0m ebuild.sh, line 49: Called src_compile [31;01m*[0m environment, line 2698: Called die [31;01m*[0m The specific snippet of code: [31;01m*[0m emake -j1 || die "emake failed" [31;01m*[0m The die message: [31;01m*[0m emake failed [31;01m*[0m [31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant. [31;01m*[0m A complete build log is located at '/var/tmp/portage/app-office/gnucash-2.2.3/temp/build.log'. [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/app-office/gnucash-2.2.3/temp/environment'. [31;01m*[0m environment is huge, not sure what you want. I emerged the latest guile (1.8.3) after the first error, then I looked at the build description of fixes and emerged slib (3.1.5-r1), then I reemerged guile. I still do not have libguile-ltdl*, and libqthreads* anywhere that I can find them. Not sure what to do with the libguile.so.[17|12] concern. I also cannot re-emerge gnucash 2.0.5, so nothing is working now. I am not near a guru level, so please be specific when asking for more information.
Run revdep-rebuild...
I just had a similar issue with dev-scheme/guile-1.8.3-r25 and app-office/gnucash-2.2.4. Seems as if the guile install produced borked symlinks of some variables in /usr/lib/ that were pointing towards library nirvana by reading "lib/foo" instead of "/lib/foo" I simply re-created the symlinks with the correct leading slash. Gnucash compiled happily. Sadly, I don't know enough about ebuilds to correct the typo there.