By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 1465

Summary: Build issue: ktorrent configure and link errors
Product: TDE Reporter: Darrell <darrella>
Component: non-core programsAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: normal CC: bugwatch, darrella, kb9vqf, michele.calgaro
Priority: P5    
Version: R14.0.x [Trinity]   
Hardware: Other   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:

Description Darrell 2013-04-19 17:05:22 CDT
I noticed the following errors in my ktorrent build logs. The package is compiling. According to my old package sets, the first error has existed for a long time. The second error is new, appearing only in the past few days as my ktorrent build log from April 15 does not contain the link error.

=============================

*** Postprocessing Makefile templates
Error: $(am__append_2) is listed in a _SOURCE line in plugins/infowidget/Makefile.in, but doesn't exist yet. Put it in DISTCLEANFILES!

=============================

make[3]: Entering directory `/dev/shm/ktorrent/plugins/rssfeed'
make[4]: Entering directory `/dev/shm/ktorrent/plugins/rssfeed'
 /usr/bin/mkdir -p '/dev/shm/package-ktorrent/opt/trinity/lib/trinity'
 /bin/sh ../../libtool   --mode=install /usr/bin/ginstall -c -p   ktrssfeedplugin.la '/dev/shm/package-ktorrent/opt/trinity/lib/trinity'
libtool: install: warning: relinking `ktrssfeedplugin.la'
libtool: install: (cd /dev/shm/ktorrent/plugins/rssfeed; /bin/sh /dev/shm/ktorrent/libtool  --tag CXX --mode=relink g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -fno-builtin -g3 -fno-inline -O2 -march=i486 -mtune=i686 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt -fexceptions -module -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -R /opt/trinity/lib -R /opt/trinity/lib -R /opt/trinity/lib -L/opt/trinity/lib -o ktrssfeedplugin.la -rpath /opt/trinity/lib/trinity rssfeedplugin.lo rssfeedmanager.lo rssfeed.lo rssfilter.lo rssarticle.lo rsslinkdownloader.lo rssfeedwidget.lo rssfeed.moc.lo rssfilter.moc.lo rssfeedplugin.moc.lo rssfeedmanager.moc.lo rsslinkdownloader.moc.lo -ltdeio -ltqt-mt -lz -lpng -lz -lm -lXext -lX11 -lSM -lICE -ltqt -lpthread rss/librsslocal.la ../../libktorrent/libktorrent.la -ltdecore -ltdeui -ltdehtml -ltdeparts -inst-prefix-dir /dev/shm/package-ktorrent)
libtool: relink: g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/i486-slackware-linux/4.7.1/../../../crti.o /usr/lib/gcc/i486-slackware-linux/4.7.1/crtbeginS.o  .libs/rssfeedplugin.o .libs/rssfeedmanager.o .libs/rssfeed.o .libs/rssfilter.o .libs/rssarticle.o .libs/rsslinkdownloader.o .libs/rssfeedwidget.o .libs/rssfeed.moc.o .libs/rssfilter.moc.o .libs/rssfeedplugin.moc.o .libs/rssfeedmanager.moc.o .libs/rsslinkdownloader.moc.o  -Wl,--whole-archive rss/.libs/librsslocal.a -Wl,--no-whole-archive  -Wl,-rpath -Wl,/opt/trinity/lib -L/opt/trinity/lib -L/usr/lib -L/usr/X11R6/lib -L/dev/shm/package-ktorrent/opt/trinity/lib -lktorrent -L/usr/lib/gcc/i486-slackware-linux/4.7.1/../../.. -L/dev/shm/package-ktorrent/usr/lib -lgmp -ltdeio -ltqt-mt -ljpeg -lXi -lXrandr -lXcursor -lXfixes -lXinerama -lXft -lXrender -lfontconfig -lfreetype -lbz2 -lexpat -lpng -lz -lXext -lX11 -lxcb -lXau -lXdmcp -ldl -lSM -luuid -lICE -ltqt -lpthread -ltdecore -ltdeui -ltdehtml -ltdeparts -L/opt/trinity/lib/trinity -L/usr/lib/gcc/i486-slackware-linux/4.7.1 -L/usr/lib/gcc/i486-slackware-linux/4.7.1/../../../../i486-slackware-linux/lib -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i486-slackware-linux/4.7.1/crtendS.o /usr/lib/gcc/i486-slackware-linux/4.7.1/../../../crtn.o  -O2 -march=i486 -mtune=i686 -Wl,--no-undefined -Wl,--allow-shlib-undefined   -Wl,-soname -Wl,ktrssfeedplugin.so -o .libs/ktrssfeedplugin.so
.libs/rssfeedplugin.o: In function `kt::RssFeedPlugin::RssFeedPlugin(TQObject*, char const*, TQStringList const&)':
/dev/shm/ktorrent/plugins/rssfeed/rssfeedplugin.cpp:51: undefined reference to `kt::Plugin::Plugin(TQObject*, char const*, TQStringList const&, TQString const&, TQString const&, TQString const&, TQString const&, TQString const&, TQString const&)'
.libs/rssfeedplugin.o: In function `kt::RssFeedPlugin::RssFeedPlugin(TQObject*, char const*, TQStringList const&)':
/dev/shm/ktorrent/plugins/rssfeed/rssfeedplugin.cpp:51: undefined reference to `kt::Plugin::Plugin(TQObject*, char const*, TQStringList const&, TQString const&, TQString const&, TQString const&, TQString const&, TQString const&, TQString const&)'
.libs/rssfeedplugin.o: In function `kt::RssFeedPlugin::~RssFeedPlugin()':
/dev/shm/ktorrent/plugins/rssfeed/rssfeedplugin.cpp:57: undefined reference to `kt::Plugin::~Plugin()'
.libs/rssfeedplugin.o: In function `kt::RssFeedPlugin::~RssFeedPlugin()':
/dev/shm/ktorrent/plugins/rssfeed/rssfeedplugin.cpp:57: undefined reference to `kt::Plugin::~Plugin()'
.libs/rssfeedplugin.moc.o: In function `kt::RssFeedPlugin::tqt_invoke(int, TQUObject*)':
/dev/shm/ktorrent/plugins/rssfeed/rssfeedplugin.moc.cpp:75: undefined reference to `kt::Plugin::tqt_invoke(int, TQUObject*)'
.libs/rssfeedplugin.moc.o: In function `kt::RssFeedPlugin::tqt_emit(int, TQUObject*)':
/dev/shm/ktorrent/plugins/rssfeed/rssfeedplugin.moc.cpp:80: undefined reference to `kt::Plugin::tqt_emit(int, TQUObject*)'
.libs/rssfeedplugin.moc.o: In function `kt::RssFeedPlugin::tqt_property(int, int, TQVariant*)':
/dev/shm/ktorrent/plugins/rssfeed/rssfeedplugin.moc.cpp:86: undefined reference to `kt::Plugin::tqt_property(int, int, TQVariant*)'
.libs/rssfeedplugin.moc.o: In function `kt::RssFeedPlugin::staticMetaObject()':
/dev/shm/ktorrent/plugins/rssfeed/rssfeedplugin.moc.cpp:52: undefined reference to `kt::Plugin::staticMetaObject()'
.libs/rssfeedplugin.moc.o: In function `kt::RssFeedPlugin::tqt_cast(char const*)':
/dev/shm/ktorrent/plugins/rssfeed/rssfeedplugin.moc.cpp:70: undefined reference to `kt::Plugin::tqt_cast(char const*)'
.libs/rssfeedplugin.moc.o: In function `kt::Plugin::metaObject() const':
/dev/shm/ktorrent/plugins/rssfeed/./../../libktorrent/interfaces/plugin.h:50: undefined reference to `kt::Plugin::staticMetaObject()'
.libs/rssfeedplugin.moc.o:(.data.rel.ro._ZTIN2kt13RssFeedPluginE[_ZTIN2kt13RssFeedPluginE]+0x8): undefined reference to `typeinfo for kt::Plugin'
.libs/rssfeedplugin.moc.o:(.data.rel.ro._ZTCN2kt13RssFeedPluginE0_NS_6PluginE[_ZTVN2kt13RssFeedPluginE]+0x8): undefined reference to `typeinfo for kt::Plugin'
.libs/rssfeedplugin.moc.o:(.data.rel.ro._ZTCN2kt13RssFeedPluginE0_NS_6PluginE[_ZTVN2kt13RssFeedPluginE]+0x10): undefined reference to `kt::Plugin::className() const'
.libs/rssfeedplugin.moc.o:(.data.rel.ro._ZTCN2kt13RssFeedPluginE0_NS_6PluginE[_ZTVN2kt13RssFeedPluginE]+0x14): undefined reference to `kt::Plugin::tqt_cast(char const*)'
.libs/rssfeedplugin.moc.o:(.data.rel.ro._ZTCN2kt13RssFeedPluginE0_NS_6PluginE[_ZTVN2kt13RssFeedPluginE]+0x18): undefined reference to `kt::Plugin::tqt_invoke(int, TQUObject*)'
.libs/rssfeedplugin.moc.o:(.data.rel.ro._ZTCN2kt13RssFeedPluginE0_NS_6PluginE[_ZTVN2kt13RssFeedPluginE]+0x1c): undefined reference to `kt::Plugin::tqt_emit(int, TQUObject*)'
.libs/rssfeedplugin.moc.o:(.data.rel.ro._ZTCN2kt13RssFeedPluginE0_NS_6PluginE[_ZTVN2kt13RssFeedPluginE]+0x20): undefined reference to `kt::Plugin::tqt_property(int, int, TQVariant*)'
.libs/rssfeedplugin.moc.o:(.data.rel.ro._ZTCN2kt13RssFeedPluginE0_NS_6PluginE[_ZTVN2kt13RssFeedPluginE]+0x24): undefined reference to `kt::Plugin::~Plugin()'
.libs/rssfeedplugin.moc.o:(.data.rel.ro._ZTCN2kt13RssFeedPluginE0_NS_6PluginE[_ZTVN2kt13RssFeedPluginE]+0x28): undefined reference to `kt::Plugin::~Plugin()'
.libs/rssfeedplugin.moc.o:(.data.rel.ro._ZTCN2kt13RssFeedPluginE0_NS_6PluginE[_ZTVN2kt13RssFeedPluginE]+0x74): undefined reference to `kt::Plugin::guiUpdate()'
.libs/rssfeedplugin.moc.o:(.data.rel.ro._ZTCN2kt13RssFeedPluginE0_NS_6PluginE[_ZTVN2kt13RssFeedPluginE]+0x78): undefined reference to `kt::Plugin::shutdown(bt::WaitJob*)'
.libs/rssfeedplugin.moc.o:(.data.rel.ro._ZTCN2kt13RssFeedPluginE0_NS_6PluginE[_ZTVN2kt13RssFeedPluginE]+0xc0): undefined reference to `typeinfo for kt::Plugin'
.libs/rssfeedplugin.moc.o:(.data.rel.ro._ZTCN2kt13RssFeedPluginE0_NS_6PluginE[_ZTVN2kt13RssFeedPluginE]+0xc4): undefined reference to `virtual thunk to kt::Plugin::~Plugin()'
.libs/rssfeedplugin.moc.o:(.data.rel.ro._ZTCN2kt13RssFeedPluginE0_NS_6PluginE[_ZTVN2kt13RssFeedPluginE]+0xc8): undefined reference to `virtual thunk to kt::Plugin::~Plugin()'
.libs/rssfeedplugin.moc.o:(.data.rel.ro._ZTVN2kt13RssFeedPluginE[_ZTVN2kt13RssFeedPluginE]+0x74): undefined reference to `kt::Plugin::guiUpdate()'
.libs/rssfeedplugin.moc.o:(.data.rel.ro._ZTVN2kt13RssFeedPluginE[_ZTVN2kt13RssFeedPluginE]+0x78): undefined reference to `kt::Plugin::shutdown(bt::WaitJob*)'
.libs/rsslinkdownloader.o: In function `kt::RssLinkDownloader::processLink(TDEIO::Job*)':
/dev/shm/ktorrent/plugins/rssfeed/rsslinkdownloader.cpp:136: undefined reference to `bt::BDecoder::BDecoder(TQMemArray<char> const&, bool, unsigned int)'
collect2: error: ld returned 1 exit status

=============================
Comment 1 Darrell 2013-05-05 14:31:46 CDT
Bumping to Critical and adding to R14.0.0 check list. None of the bin files are being packaged.
Comment 2 Timothy Pearson 2013-05-08 20:30:29 CDT
I can't replicate this on my Ubuntu Raring test box.  Did you set --with-no-undefined or a similar compiler flag?  If so, that might be causing the failure.

Can you confirm that this failure still occurs when built against TDE from the latest GIT sources?  If so, please attach a full build log.

Thanks!
Comment 3 Darrell 2013-05-08 20:50:52 CDT
> Did you set --with-no-undefined or a similar compiler flag?

Nope. My ktorrent build script is unchanged.

I updated GIT this morning and built a new package set including ktorrent. Same set of failures. I don't know what changed after April 15, which was the last time I built ktorrent without incident.

Do you see the DISTCLEANFILES message?
Comment 4 Darrell 2013-05-08 20:58:32 CDT
Is ktorrent dependent upon having avahi and avahi-tqt installed?

I do not have either installed and I noticed the following in the configure output:

checking for avahi-client >= 0.6.10... checking for avahi-tqt >= 0.6.10... checking if apps should be compiled... yes
Comment 5 Darrell 2013-05-08 21:17:38 CDT
I installed libdaemon and avahi, built avahi-tqt, and then built ktorrent. Same errors.

Although the bin files are not in the final package, the binaries are compiled. I can see them in the build directory.
Comment 6 Darrell 2013-05-08 21:39:54 CDT
Interesting. I added --enable-closure to the ktorrent configure options. The errors disappeared and the package built completely as expected. What changed after April 15 that could cause this?
Comment 7 Timothy Pearson 2013-05-08 22:52:05 CDT
(In reply to comment #6)
> Interesting. I added --enable-closure to the ktorrent configure options. The
> errors disappeared and the package built completely as expected. What changed
> after April 15 that could cause this?

I don't know.  I take it nothing changed in the way you were building packages near that date?

If there is a way to set enable-closure by default I would recommend that be done and this report closed.
Comment 8 Darrell 2013-05-09 10:52:20 CDT
Exactly what does --enable-closure do? Perhaps understanding that might provide a clue.
Comment 9 Darrell 2013-05-09 18:02:48 CDT
I am marking this report as resolved in the R14.0.0 etherpad road map but I am leaving the report open here. That I have to use --enable-closure and nobody else does is peculiar (irritating! :-) ).

As there is a work-around, I am downgrading here from Critical to Normal. If nothing obvious appears over the next several weeks then I'll close the report.
Comment 10 Michele Calgaro 2018-07-30 08:41:36 CDT
According to comments, the bug is basically resolved.