KMyMoney2 keeps failing during the compile process after a simple emerge kmymoney2 However, this also occurs when I manually tried to compile the source directly off the app's homepage. The error occurs quite a ways into the compile process and seems to involve libxml, which the emerge process installed (libxml2) as a dep for kmymoney2. This is the error I received on both attempts: 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 137, Exitcode 2 !!! died running emake, kde_src_compile:make I've also attempted to compile the CVS version, which results in the same error.
Not a doc's bug.. reassigned to bug-wranglers
DO you have libxml2 and libxmlpp installed on your system? Maybe a reemerge of those packages will help?
You don't happen to have the static use flag set do you? Did you have it set when you emerged libxml? What do you see when do you an ls /usr/lib/libxml*
Guessing you may have some older libxml++ floating around. I'd recommend deleting /usr/ lib/libxml++* and then reemerging libxmlpp a run of /sbin/fix_libtool_files.sh may help too
Turns out to be because of weird code in kmymoney's configure taken from what is probably old version of libxml++.m4. It doesn't add `xml++-config --libs` to LDFLAGS but instead extracts library path from xml++-config's output and then adds $(this_extracted_path)/libxml++.a to LDFLAGS. dev-cpp/libxmlpp contains /usr/lib/libxml++-0.1.a, so this fails. Running aclocal && autoconf before configure would fix it, but I can't make it work: configure.in:130: error: m4_popdef: undefined macro: AC_Dest autoconf/status.m4:844: AC_CONFIG_FILES is expanded from... configure.in:130: the top level autom4te-2.58: /usr/bin/m4 failed with exit status: 1 So I modified the ebuild to patch configure instead and now it works. Can the patch please be applied to Portage?
Created attachment 21687 [details, diff] kmymoney2-0.5.1.ebuild.patch
Created attachment 21688 [details, diff] kmymoney2-0.5.1-configure.patch