Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39510 - kmymoney2 compile error against libxml++.a
Summary: kmymoney2 compile error against libxml++.a
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-26 15:17 UTC by Elan Ruusamäe
Modified: 2004-04-04 13:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to link agains what libxml++-config --libs outputs (kmymoney2-0.5.1-libxmlpp.patch,388 bytes, patch)
2004-01-27 09:28 UTC, Elan Ruusamäe
Details | Diff
patch for ebuild to use the patch (blah.patch,337 bytes, patch)
2004-01-27 09:29 UTC, Elan Ruusamäe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Elan Ruusamäe 2004-01-26 15:17:01 UTC
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
Comment 1 Elan Ruusamäe 2004-01-27 09:28:02 UTC
Created attachment 24492 [details, diff]
patch to link agains what libxml++-config --libs outputs
Comment 2 Elan Ruusamäe 2004-01-27 09:29:03 UTC
Created attachment 24493 [details, diff]
patch for ebuild to use the patch
Comment 3 Fabio Di Fabio 2004-02-22 13:01:33 UTC
glen: your patch works for me too.
Comment 4 Dominik Stadler (RETIRED) gentoo-dev 2004-03-20 13:31:26 UTC
I have now added Version 0.6rc3. It seems that the configure-script was updated. Please try if this solves the compile-problem. 
Comment 5 Dominik Stadler (RETIRED) gentoo-dev 2004-04-04 13:55:56 UTC
No result since 15 days, seems to be solved with new version, please reopen if not.