[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: Peculiar problem making kdepim
From:       Rik Hemsley <rik () kde ! org>
Date:       2001-04-11 22:15:49
[Download RAW message or body]

Thanks for the info. Forwarded to the kde-pim list so the maintainer
of KOrganizer can have a look. Sorry for the inconvenience.

Rik

#if Michael J. Smith
> Hello -- 
> 
> Sorry to bother you about this; I really tried to figure it out 
> myself. 
> 
> I downloaded all the source tarballs for KDE 2.1.1 and successfully 
> built everything except kdepim, which bails out as follows: 
> 
> 
> 
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/kde/include -I/usr/local/qt/include 
> -I/usr/X11R6/include           -I./versit            -I../libical/src/libical 
>            -I../libical/src/libicalss      -I../libical/src/libical        
> -I../libical/src/libicalss    -O2 -fno-exceptions -fno-check-new -Wall 
> -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings 
> -Wno-long-long -Wnon-virtual-dtor -fno-builtin -DQT_CLEAN_NAMESPACE 
> -DQT_NO_COMPAT -DQT_NO_ASCII_CAST  -c korganizer_meta_unload.cpp
> /bin/sh ../libtool --mode=link --tag=CXX g++  -O2 -fno-exceptions 
> -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes 
> -Wwrite-strings -Wno-long-long -Wnon-virtual-dtor -fno-builtin 
> -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST   -o korganizer 
> -L/usr/X11R6/lib -L/usr/local/qt/lib -L/opt/kde/lib  -L/usr/local/lib -R 
> /opt/kde/lib -R /usr/local/qt/lib -R /usr/X11R6/lib -R /usr/local/lib main.o 
> korganizer_meta_unload.o  libkorganizer.la
> g++ -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith 
> -Wmissing-prototypes -Wwrite-strings -Wno-long-long -Wnon-virtual-dtor 
> -fno-builtin -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -o 
> .libs/korganizer main.o korganizer_meta_unload.o  -L/usr/X11R6/lib 
> -L/usr/local/qt/lib -L/opt/kde/lib -L/usr/local/lib ./.libs/libkorganizer.so 
> /opt/kde/lib/libkparts.so 
> -L/usr/lib/gcc-lib/i386-slackware-linux/egcs-2.91.66 
> -L/usr/i386-slackware-linux/lib /opt/kde/lib/libkfile.so 
> /opt/kde/lib/libksycoca.so /opt/kde/lib/libkio.so /opt/kde/lib/libkdesu.so 
> -lutil /opt/kde/lib/libkab.so /opt/kde/lib/libkdeui.so 
> /opt/kde/lib/libkdecore.so /opt/kde/lib/libkdefakes.so -ldl 
> /opt/kde/lib/libDCOP.so -lqt -lpng -lz /opt/kde/lib/libjpeg.so -lXext -lX11 
> -lSM -lICE -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2 -lstdc++ -lm -lc 
> -lgcc -Wl,--rpath -Wl,/opt/kde/lib -Wl,--rpath -Wl,/usr/local/qt/lib 
> -Wl,--rpath -Wl,/usr/X11R6/lib -Wl,--rpath -Wl,/usr/local/lib
> ./.libs/libkorganizer.so: undefined reference to 
> `KabAPI::getEntryByName(QString const &, list<AddressBook::Entry, 
> allocator<AddressBook::Entry> > &, int)'
> collect2: ld returned 1 exit status
> make[3]: *** [korganizer] Error 1
> make[3]: Leaving directory `/root/kdedist/kdepim-2.1.1/korganizer'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/root/kdedist/kdepim-2.1.1/korganizer'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/kdedist/kdepim-2.1.1'
> make: *** [all-recursive-am] Error 2
> 
> I built kdelibs before trying to build kdepim, and libkab.so.3.0.0 
> is right where it ought to be in /opt/kde/lib, and the symlinks 
> libkab.so and libkab.so.3 point to it. 
> 
> kabapi.h is in /opt/kde/include and the relevant section reads: 
> 
>   AddressBook::ErrorCode getEntryByName(const QString& name,
> 			   std::list<AddressBook::Entry>& entries,
> 			   const int max=5);
>   /** This method also searches for close matches to the pattern,
>     * but it compares the whole entry given. This way you can search for,
>     * for example, nearly similar email addresses. Empty parts of the
>     * entry are not considered as criteria.
>     * @short This method delivers the closest matches to the given entry.
>     * @param name The name, containing "." for abbreviations.
>     * @param entries Reference to a list of entries where matches are stored.
>     * @param max Maximum number of returned entries.
>     * @return NoError if an entry is found or NoEntry.
>     */
>   AddressBook::ErrorCode getEntryByName(const AddressBook::Entry& pattern,
> 			   std::list<AddressBook::Entry>& entries,
> 			   const int max=5);
> 
> 
> 
> 
> When I run nm --demangle against libkab.so.3.0.0 the relevant sections read; 
> 
> 0000d610 T KabAPI::getEntryByName(QString const &, list<AddressBook::Entry, 
> __default_alloc_template<true, 0> > &, int)
> 0000d61c T KabAPI::getEntryByName(AddressBook::Entry const &, 
> list<AddressBook::Entry, __default_alloc_template<true, 0> > &, int)
> 
> 
> 
> I admit that I don't really know C++ well enough to understand what I'm 
> seeing here. 
> 
> If you'd be kind enough to tell me what I'm doing wrong I'd be most grateful. 
> 
> 
> 
#endif

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic