Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 26443

Summary: kmymoney2 compile fails on emerge and manual compile from official source
Product: [OLD] Docs-developer Reporter: Clark Torgerson <clark_torgerson>
Component: OtherAssignee: Gentoo KDE team <kde>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://kmymoney2.sourceforge.net
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 26487    
Bug Blocks:    
Attachments: kmymoney2-0.5.1.ebuild.patch
kmymoney2-0.5.1-configure.patch

Description Clark Torgerson 2003-08-11 18:45:22 UTC
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.
Comment 1 Erwin (RETIRED) gentoo-dev 2003-08-11 21:22:53 UTC
Not a doc's bug..
reassigned to bug-wranglers
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2003-08-12 07:23:14 UTC
DO you have libxml2 and libxmlpp installed on your system? 
 
Maybe a reemerge of those packages will help? 
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2003-08-12 09:03:16 UTC
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* 
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2003-08-27 19:07:07 UTC
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 
Comment 5 Vaclav Slavik 2003-12-04 05:06:05 UTC
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?
Comment 6 Vaclav Slavik 2003-12-04 05:07:24 UTC
Created attachment 21687 [details, diff]
kmymoney2-0.5.1.ebuild.patch
Comment 7 Vaclav Slavik 2003-12-04 05:08:16 UTC
Created attachment 21688 [details, diff]
kmymoney2-0.5.1-configure.patch