it tries to link with wrong library: g++ -DNDEBUG -DNO_DEBUG -O2 -O3 -mcpu=pentium2 -march=pentium2 -funroll-loops -pipe -fomit-frame-pointer -fstack-protector -fno-exceptions -fno-check-new -fexceptions -o kmymoney2 kstartuplogo.o kmymoney2.o main.o kstartuplogo.moc.o kmymoney2.moc.o kmymoney2_meta_unload.o -L/usr/lib /usr/lib/libxml2.so /usr/lib/libxml++.a -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.1/lib ./views/libviews.a ./dialogs/libdialogs.a ./widgets/libwidgets.a ./mymoney/storage/libstorage.a ./mymoney/libmymoney.a ./converter/libconverter.a /usr/kde/3.1/lib/libkhtml.so -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3 -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../.. -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib /usr/lib/libjpeg.so /usr/kde/3.1/lib/libkjs.so /usr/lib/libpcreposix.so /usr/lib/libpcre.so /usr/kde/3.1/lib/libkdeprint.so /usr/kde/3.1/lib/libkparts.so /usr/kde/3.1/lib/libkutils.so /usr/kde/3.1/lib/libkio.so /usr/kde/3.1/lib/libkdesu.so -lutil /usr/lib/libfam.so /usr/kde/3.1/lib/libkdeui.so /usr/kde/3.1/lib/libkdecore.so /usr/kde/3.1/lib/libDCOP.so -ldl -lXinerama /usr/lib/libart_lgpl_2.so /usr/kde/3.1/lib/libkdefx.so -lstdc++ -lXrender /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libstdc++.so -lc -lgcc_s -lqt-mt -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread -lresolv -Wl,--rpath -Wl,/usr/kde/3.1/lib -Wl,--rpath -Wl,/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3 -Wl,--rpath -Wl,/usr/kde/3.1/lib -Wl,--rpath -Wl,/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3 -Wl,--rpath -Wl,/usr/qt/3/lib -Wl,--rpath -Wl,/usr/X11R6/lib g++: /usr/lib/libxml++.a: No such file or directory make[3]: *** [kmymoney2] Error 1 make[3]: Leaving directory `/var/tmp/portage/kmymoney2-0.5.1/work/kmymoney2-0.5.1/kmymoney2' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kmymoney2-0.5.1/work/kmymoney2-0.5.1/kmymoney2' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kmymoney2-0.5.1/work/kmymoney2-0.5.1' make: *** [all] Error 2 !!! ERROR: app-office/kmymoney2-0.5.1 failed. !!! Function kde_src_compile, Line 127, Exitcode 2 !!! died running emake, kde_src_compile:make while my system has versioned libraries: # ls -l /usr/lib/libxml++* -rw-r--r-- 1 root root 149458 Jan 26 21:53 /usr/lib/libxml++-0.1.a -rwxr-xr-x 1 root root 784 Jan 26 21:53 /usr/lib/libxml++-0.1.la* lrwxrwxrwx 1 root root 21 Jan 26 21:53 /usr/lib/libxml++-0.1.so -> libxml++-0.1.so.7.0.0* lrwxrwxrwx 1 root root 21 Jan 26 21:53 /usr/lib/libxml++-0.1.so.7 -> libxml++-0.1.so.7.0.0* -rwxr-xr-x 1 root root 105379 Jan 26 21:53 /usr/lib/libxml++-0.1.so.7.0.0* looking at configure it has especially removed the version, altho xml++-config reports proper library: LIBXMLPP_CFLAGS=`xml++-config --cflags` LIBXMLPP_LIBS=`xml++-config --libs` CPPFLAGS="$LIBXMLPP_CFLAGS $CPPFLAGS" LIBXMLPP_LIBS=`xml++-config --libs | cut -d' ' -f1 | cut -b3-` LDFLAGS="$LDFLAGS $LIBXMLPP_LIBS/libxml++.a" # xml++-config --libs -L/usr/lib -lxml++-0.1 -L/usr/lib -lxml2 -lz -lpthread -lm looks like inconsistency, altho i see no point of linking to nonversioned .a archive, since it gets eventually linked in statically :) why it has to be static link anyway? Reproducible: Always Steps to Reproduce: 1.emerge app-office/kmymoney2-0.5.1
Created attachment 24492 [details, diff] patch to link agains what libxml++-config --libs outputs
Created attachment 24493 [details, diff] patch for ebuild to use the patch
glen: your patch works for me too.
I have now added Version 0.6rc3. It seems that the configure-script was updated. Please try if this solves the compile-problem.
No result since 15 days, seems to be solved with new version, please reopen if not.