This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[fixed] Unable to build ktorrent 2.1beta1

Tags: None
(comma "," separated)
rapsys
Registered Member
Posts
71
Karma
0
Hi I have a problem building latest beta of ktorrent it simply fail :'(

Here is the build log (a bit long: 2MB sry) :
(removed)

Configuration : Mandriva 2007.0 up2date.

Last edited by rapsys on Sun Jan 21, 2007 7:39 am, edited 2 times in total.
George
Moderator
Posts
5421
Karma
1

Tue Dec 19, 2006 3:27 pm
Strange, Qt is not linked, anyway I have made a small fix in the current SVN version, would it be possible to try that.
rapsys
Registered Member
Posts
71
Karma
0

Tue Dec 19, 2006 5:10 pm
I have build the revision 614954

Little better result

If you want to test I may provide you a (temporary) ssh access on my box to fix the build problems...

Last edited by rapsys on Wed Dec 20, 2006 6:08 pm, edited 1 time in total.
George
Moderator
Posts
5421
Karma
1

Wed Dec 20, 2006 10:01 am
That's a lot less then the previous log, anyway try it now, it seems only the KDE libs are not linked now, so I have now added those.

Still strange, that I'm not getting these linker errors.
rapsys
Registered Member
Posts
71
Karma
0

Wed Dec 20, 2006 2:21 pm
Better, but still build problem :'(

I have kde version 3.5.4 (from mandriva) for info.

The build was done on today revision : 615161

Code: Select all
Making all in rss
make[1]: entrant dans le répertoire « /opt/BUILD/ktorrent-svn/plugins/rssfeed/rss »
make[1]: Rien à faire pour « all ».
make[1]: quittant le répertoire « /opt/BUILD/ktorrent-svn/plugins/rssfeed/rss »
make[1]: entrant dans le répertoire « /opt/BUILD/ktorrent-svn/plugins/rssfeed »
/bin/sh ../../libtool --silent --tag=CXX --mode=link g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fomit-frame-pointer -march=i586 -mtune=pentiumpro -fasynchronous-unwind-tables -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -fexceptions    -o ktrssfeedplugin.la -rpath /usr/lib/kde3 -module -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined   -L/usr/lib/qt3/lib -L/usr/lib    ktrssfeedplugin_la.all_cpp.lo  -lqt-mt  -lz -lpng -lz -lm -lXext -lX11  -lSM -lICE -lpthread rss/librsslocal.la ../../libktorrent/libktorrent.la -lkdecore -lkdeui -lkhtml -lkparts
.libs/ktrssfeedplugin_la.all_cpp.o: In function `RssFeedWidget':
/opt/BUILD/ktorrent-svn/plugins/rssfeed/rssfeedwidget.cpp:76: undefined reference to `KURLRequester::KURLRequester(QWidget*, char const*)'
/opt/BUILD/ktorrent-svn/plugins/rssfeed/rssfeedwidget.cpp:76: undefined reference to `KURLRequester::KURLRequester(QWidget*, char const*)'
.libs/ktrssfeedplugin_la.all_cpp.o: In function `RssLinkDownloader':
/opt/BUILD/ktorrent-svn/plugins/rssfeed/rsslinkdownloader.cpp:43: undefined reference to `KIO::storedGet(KURL const&, bool, bool)'
/opt/BUILD/ktorrent-svn/plugins/rssfeed/rsslinkdownloader.cpp:43: undefined reference to `KIO::storedGet(KURL const&, bool, bool)'
.libs/ktrssfeedplugin_la.all_cpp.o: In function `kt::RssFeedManager::changedFeedUrl()':
/opt/BUILD/ktorrent-svn/plugins/rssfeed/rssfeedmanager.cpp:159: undefined reference to `KURLRequester::url() const'
.libs/ktrssfeedplugin_la.all_cpp.o: In function `kt::RssFeedManager::changedActiveFeed()':
/opt/BUILD/ktorrent-svn/plugins/rssfeed/rssfeedmanager.cpp:849: undefined reference to `KURLRequester::setKURL(KURL const&)'
/opt/BUILD/ktorrent-svn/plugins/rssfeed/rssfeedmanager.cpp:883: undefined reference to `KURLRequester::clear()'
.libs/ktrssfeedplugin_la.all_cpp.o: In function `kt::RssLinkDownloader::processLink(KIO::Job*)':
/opt/BUILD/ktorrent-svn/plugins/rssfeed/rsslinkdownloader.cpp:58: undefined reference to `KMimeType::findByContent(QMemArray<char> const&, int*)'
.libs/ktrssfeedplugin_la.all_cpp.o: In function `KServiceType':
/usr/include/kservicetype.h:46: undefined reference to `vtable for KServiceType'
.libs/ktrssfeedplugin_la.all_cpp.o: In function `KMimeType':
/usr/include/kmimetype.h:48: undefined reference to `vtable for KMimeType'
.libs/ktrssfeedplugin_la.all_cpp.o: In function `kt::RssLinkDownloader::processLink(KIO::Job*)':
/opt/BUILD/ktorrent-svn/plugins/rssfeed/rsslinkdownloader.cpp:59: undefined reference to `KMimeType::is(QString const&) const'
/opt/BUILD/ktorrent-svn/plugins/rssfeed/rsslinkdownloader.cpp:157: undefined reference to `KMimeType::~KMimeType()'
/opt/BUILD/ktorrent-svn/plugins/rssfeed/rsslinkdownloader.cpp:157: undefined reference to `KMimeType::~KMimeType()'
/opt/BUILD/ktorrent-svn/plugins/rssfeed/rsslinkdownloader.cpp:157: undefined reference to `KMimeType::~KMimeType()'
/opt/BUILD/ktorrent-svn/plugins/rssfeed/rsslinkdownloader.cpp:182: undefined reference to `KIO::storedGet(KURL const&, bool, bool)'
rss/.libs/librsslocal.a(librsslocal_la.all_cpp.o): In function `RSS::Image::getPixmap()':
/opt/BUILD/ktorrent-svn/plugins/rssfeed/rss/image.cpp:114: undefined reference to `KIO::get(KURL const&, bool, bool)'
rss/.libs/librsslocal.a(librsslocal_la.all_cpp.o): In function `RSS::FileRetriever::retrieveData(KURL const&)':
/opt/BUILD/ktorrent-svn/plugins/rssfeed/rss/loader.cpp:83: undefined reference to `KIO::get(KURL const&, bool, bool)'
collect2: ld returned 1 exit status
make[1]: *** [ktrssfeedplugin.la] Erreur 1
make[1]: quittant le répertoire « /opt/BUILD/ktorrent-svn/plugins/rssfeed »
make: *** [all-recursive] Erreur 1
rapsys
Registered Member
Posts
71
Karma
0

Wed Dec 20, 2006 2:28 pm
Il fact it was just missing explicit :
-lkio

To make it build.

plz fix and thx :)

Code: Select all
diff -urNp plugins/rssfeed/Makefile.am.orig plugins/rssfeed/Makefile.am
--- plugins/rssfeed/Makefile.am.orig    2006-12-20 15:30:57.787505641 +0100
+++ plugins/rssfeed/Makefile.am 2006-12-20 15:31:11.389273482 +0100
@@ -24,7 +24,7 @@ noinst_HEADERS = rssfeedplugin.h rssfeed
 ktrssfeedplugin_la_SOURCES = rssfeedplugin.cpp rssfeedmanager.cpp \
                        rssfeedwidget.ui rssfeed.cpp rssfilter.cpp rssarticle.cpp rsslinkdownloader.cpp
 ktrssfeedplugin_la_LIBADD = $(LIB_QT) rss/librsslocal.la \
-       ../../libktorrent/libktorrent.la $(LIB_KDECORE) $(LIB_KDEUI) $(LIB_KHTML) $(LIB_KPARTS)
+       ../../libktorrent/libktorrent.la $(LIB_KDECORE) $(LIB_KDEUI) $(LIB_KHTML) $(LIB_KPARTS) $(LIB_KIO)

 SUBDIRS = rss
 KDE_CXXFLAGS = $(USE_EXCEPTIONS) $(USE_RTTI)
George
Moderator
Posts
5421
Karma
1

Wed Dec 20, 2006 5:39 pm
Ah KIO is also needed.

Did you pass any special linker options to the configure script ?
rapsys
Registered Member
Posts
71
Karma
0

Wed Dec 20, 2006 5:52 pm
I followed exactly the procudure to build svn on the faq

Except I patched before make -f Makefile.cvs and don't do the ./configure

Then I remove all the .svn dir from the ktorrent tree and builded a tar.bz2

Then I builded it with this spec file :
Code: Select all
%define name    ktorrent
%define version svn
%define release %mkrel 0.1

%define major   0
%define libname %mklibname %{name} %{major}

Summary:        BitTorrent program for KDE
Name:           %{name}
Version:        %{version}
Release:        %{release}
Group:          Networking/File transfer
License:        GPL
Url:            http://ktorrent.org/
Source0:        %{name}-%{version}.tar.bz2
BuildRequires:  kdelibs-devel
Requires:       %{libname} = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires:  gmp-devel

%description
KTorrent is a BitTorrent program for KDE. It's main features are:
 o Downloads torrent files
 o Upload speed capping, seeing that most people can't upload
   infinite amounts of data.
 o Internet searching using  The Bittorrent website's search engine
 o UDP Trackers

%package -n     %{libname}
Group:          System/Libraries
Summary:        Libraries for %{name}

%description -n %{libname}
The libraries from %{name} package


%prep
%setup -q -n %{name}-%{version}

%build
%configure2_5x  --disable-debug \
                --enable-mt \
                --enable-shared \
                --disable-static \
                --disable-objprelink \
                --with-pic \
                --with-gnu-ld \
                --disable-rpath \
                --disable-embedded \
                --enable-fast-install=yes \
%if "%{_lib}" != "lib"
    --enable-libsuffix="%(A=%{_lib}; echo ${A/lib/})" \
%endif
                --with-qt-dir=%{_prefix}/lib/qt3 \
                --with-xinerama \
                --enable-final
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

install -d $RPM_BUILD_ROOT%{_menudir}
#kdedesktop2mdkmenu.pl %{name} "Internet/File transfer" $RPM_BUILD_ROOT%{_datadir}/applnk/Internet/kde/%{name}.desktop $RPM_BUILD_ROOT%{_menudir}/%{name} kde
kdedesktop2mdkmenu.pl %{name} "Internet/File transfer" $RPM_BUILD_ROOT%{_datadir}/applications/kde/%{name}.desktop $RPM_BUILD_ROOT%{_menudir}/%{name} kde

install -m644 apps/ktorrent/hi16-app-ktorrent.png -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
install -m644 apps/ktorrent/hi32-app-ktorrent.png -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
install -m644 apps/ktorrent/hi48-app-ktorrent.png -D $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png

%find_lang %{name}
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.{so,la}

#Fix Conflictss with kdelibs-common
rm -f $RPM_BUILD_ROOT%{_datadir}/mimelnk/application/x-bittorrent.desktop

%clean
rm -rf $RPM_BUILD_ROOT

%post
%{update_menus}

%postun
%{clean_menus}

%post -n %{libname} -p /sbin/ldconfig

%postun -n %{libname} -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS README
%{_bindir}/*

%{_datadir}/config.kcfg/*
%{_datadir}/services/*
%{_datadir}/servicetypes/*
%{_datadir}/apps/%{name}
#%{_datadir}/applnk/Internet/%{name}.desktop
%{_datadir}/applications/kde/%{name}.desktop
%{_menudir}/%{name}
%{_datadir}/applications/kde/%{name}.desktop
%{_datadir}/config.kcfg/%{name}.kcfg
%{_iconsdir}/hicolor/scalable/apps/%{name}.svgz
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_iconsdir}/hicolor/*/apps/*.png
%{_iconsdir}/hicolor/*/mimetypes/*.png
%{_iconsdir}/hicolor/*/mimetypes/*.svgz

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/lib*.so.*
%{_libdir}/kde3

%changelog
* Tue Dec 19 2006 Raphaël Gertz <rapsys@free.fr> svn-0.1
- svn


Log of build here :
http://rapsys.free.fr/ktorrent/ktorrent_build.log


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]