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

[r618630&2.1rc1]ktorrent don't build (zeroconf fail)

Tags: None
(comma "," separated)
rapsys
Registered Member
Posts
71
Karma
0
Making all in zeroconf
make[3]: entrant dans le répertoire « /opt/BUILD/ktorrent-svn/plugins/zeroconf »
make[3]: *** Pas de règle pour fabriquer la cible « lo », nécessaire pour « ktzeroconfplugin.la ». Arrêt.
make[3]: quittant le répertoire « /opt/BUILD/ktorrent-svn/plugins/zeroconf »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /opt/BUILD/ktorrent-svn/plugins »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /opt/BUILD/ktorrent-svn »
make: *** [all] Erreur 2

In fact I don't understand where it fail :'(

It seems there is some problem in the Makefile generation.

Cause on line 77 of the zeroconf Makefile I have :
am_ktzeroconfplugin_la_final_OBJECTS = lo am_ktzeroconfplugin_la.all_cpp.lo

May you fix it ?

ps : I have crash with previous build svn and I would want test with latest version.

Last edited by rapsys on Sun Jan 21, 2007 5:15 am, edited 3 times in total.
George
Moderator
Posts
5421
Karma
1

Tue Jan 02, 2007 6:27 pm
If this was a updated with svn up, instead of a fresh checkout, make sure you rerun make -f Makefile.cvs and configure. Usually when a new directory is added, you need to do this.
rapsys
Registered Member
Posts
71
Karma
0

Sat Jan 20, 2007 6:39 pm
There is still the problem on 2.1rc1.

And this was a checkout
(for some reason update seems to not work so i checkout everytime)

I workaround the problem by removing the zeroconf plugin from tree :'(

The error remain the same :
Making all in zeroconf
make[3]: entrant dans le répertoire « /opt/BUILD/ktorrent-2.1rc1/plugins/zeroconf »
make[3]: *** Pas de règle pour fabriquer la cible « lo », nécessaire pour « ktzeroconfplugin.la ». Arrêt.
make[3]: quittant le répertoire « /opt/BUILD/ktorrent-2.1rc1/plugins/zeroconf »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /opt/BUILD/ktorrent-2.1rc1/plugins »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /opt/BUILD/ktorrent-2.1rc1 »
make: *** [all] Erreur 2
rapsys
Registered Member
Posts
71
Karma
0

Sun Jan 21, 2007 4:40 am
I fixed the problem (at least now it build) by apply that patch :
Code: Select all
diff -urNp ktorrent-2.1rc1.orig/plugins/zeroconf/Makefile.am ktorrent-2.1rc1/plugins/zeroconf/Makefile.am
--- ktorrent-2.1rc1.orig/plugins/zeroconf/Makefile.am 2007-01-02 19:44:27.000000000 +0100
+++ ktorrent-2.1rc1/plugins/zeroconf/Makefile.am 2007-01-21 06:08:15.736377122 +0100

 METASOURCES = AUTO

-if COMPILE_ZEROCONF
-
 kde_module_LTLIBRARIES = ktzeroconfplugin.la
 ktzeroconfplugin_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries) $(AVAHI_LIBS)
 ktzeroconfplugin_la_SOURCES = localbrowser.cpp avahiservice.cpp \
    zeroconfplugin.cpp

 ktzeroconfplugin_la_LIBADD = ../../libktorrent/libktorrent.la \
-              $(LIB_KPARTS) $(LIB_QT) \
+              $(LIB_KPARTS) $(LIB_QT) $(LIB_KDEUI) \
               $(LIB_KDECORE) $(LIB_KFILE)

 noinst_HEADERS = zeroconfplugin.h
@@ -19,4 +17,3 @@ noinst_HEADERS = zeroconfplugin.h
 kde_services_DATA = ktzeroconfplugin.desktop
 KDE_CXXFLAGS = $(USE_EXCEPTIONS) $(USE_RTTI)

-endif


The problem seems in avahi detection, but configure find that it should build it :
checking for pkg-config... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for avahi-client >= 0.6.10... yes
checking AVAHI_CFLAGS... -D_REENTRANT
checking AVAHI_LIBS... -lavahi-common -lavahi-client
checking if apps should be compiled... yes
checking if libktorrent should be compiled... yes
checking if plugins should be compiled... yes
checking if scripts should be compiled... yes
checking if translations should be compiled... yes
checking if utests should be compiled... yes
George
Moderator
Posts
5421
Karma
1

Sun Jan 21, 2007 12:15 pm
We need to find a better way to do conditional compilation, of the zeroconf plugin. Your solution doesn't address the problem that we want zeroconf to be optional, so that if no avahi is found, it is not compiled.


Bookmarks



Who is online

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