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

autoreconf causes make to fail

Tags: None
(comma "," separated)
HyperQuantum
Registered Member
Posts
3
Karma
0

autoreconf causes make to fail

Wed Nov 08, 2006 10:37 am
It seems that running autoreconf causes the build process to fail. I downloaded KTorrent 2.0.3 and did the following:

Code: Select all
 $ autoreconf
 $ ./configure
 $ make

(...)

if /bin/sh ../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I./../../libktorrent -I/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions  -MT httprequest.lo -MD -MP -MF ".deps/httprequest.Tpo" -c -o httprequest.lo httprequest.cpp; \
then mv -f ".deps/httprequest.Tpo" ".deps/httprequest.Plo"; else rm -f ".deps/httprequest.Tpo"; exit 1; fi
httprequest.cpp:119:27: httprequest.moc: No such file or directory
make[3]: *** [httprequest.lo] Error 1
make[3]: Leaving directory `/home/uauser/ktorrent-2.0.3/libktorrent/util'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/uauser/ktorrent-2.0.3/libktorrent'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/uauser/ktorrent-2.0.3'
make: *** [all] Error 2


The reason I need to run autoreconf is because I need to change configure.in. For a student project we were instructed to enhance KTorrent with zeroconf functionality, so I need to link it with the Avahi library. But it seems that even running autoreconf on the standard KTorrent 2.0.3 doesn't work. Anybody who knows why this error occurs?
HyperQuantum
Registered Member
Posts
3
Karma
0

Wed Nov 08, 2006 12:03 pm
I have reduced the failure to something that doesn't use autoreconf:

Code: Select all
 (start from the default KTorrent 2.0.3 codebase)
 $ aclocal
 $ automake
 $ ./configure
 $ make


This produces the same error.

I have discovered this because running automake without first running aclocal gave a warning message saying that on this system automake-1.6 was not present and that I needed to run aclocal first and then automake. The automake version here is 1.9.5.
[/code]
HyperQuantum
Registered Member
Posts
3
Karma
0

Wed Nov 08, 2006 2:20 pm
The problem seems to be solved now. I discovered that I needed to run am_edit after I did automake. It was the first time I used autotools and the first time I needed to mess with the sources of a KDE app. I have learned a few things now.
George
Moderator
Posts
5421
Karma
1

Wed Nov 08, 2006 7:43 pm
OK, nice to hear that KTorrent is used as an educational project.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar