trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: May 2012

Odd FTBFS in kdepim 3.5.13

From: Francois Andriot <francois.andriot@...>
Date: Thu, 03 May 2012 14:04:24 +0200
Hello, I'm trying to rebuild kdepim 3.5.13 on redhat-based 
distributions, and on some variants, I get an FTBFS, not on other.
It used to work before, so I'm disappointed.

The FTBFS is: (taken from RHEL 5 x86)

----------
[  1%] Building CXX object 
ktnef/gui/CMakeFiles/ktnef.dir/attachpropertydialogbase.cpp.o
cd /home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui && 
/usr/lib/ccache/c++   -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -O2 -g 
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=generic 
-fasynchronous-unwind-tables   -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE 
-DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT 
-D_REENTRANT -include tqt.h 
-I/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui 
-I/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/ktnef 
-I/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/libkdepim 
-I/opt/trinity/include -I/usr/lib/qt-3.3/include 
-I/opt/trinity/include/tqt   -o 
CMakeFiles/ktnef.dir/attachpropertydialogbase.cpp.o -c 
/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui/attachpropertydialogbase.cpp
/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui/attachpropertydialogbase.cpp: 
In constructor 
'AttachPropertyDialogBase::AttachPropertyDialogBase(QWidget*, const 
char*, bool, uint)':
/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui/attachpropertydialogbase.cpp:101: 
error: invalid use of undefined type 'struct KListView'
/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui/attachpropertydialogbase.h:21: 
error: forward declaration of 'struct KListView'
/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui/attachpropertydialogbase.cpp:102: 
error: invalid use of undefined type 'struct KListView'
/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui/attachpropertydialogbase.h:21: 
error: forward declaration of 'struct KListView'
/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui/attachpropertydialogbase.cpp:103: 
error: invalid use of undefined type 'struct KListView'
/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui/attachpropertydialogbase.h:21: 
error: forward declaration of 'struct KListView'
/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui/attachpropertydialogbase.cpp:104: 
error: invalid use of undefined type 'struct KListView'
/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui/attachpropertydialogbase.h:21: 
error: forward declaration of 'struct KListView'
/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui/attachpropertydialogbase.cpp:105: 
error: invalid use of undefined type 'struct KListView'
/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui/attachpropertydialogbase.h:21: 
error: forward declaration of 'struct KListView'
/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui/attachpropertydialogbase.cpp:105: 
error: incomplete type 'KListView' used in nested name specifier
/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui/attachpropertydialogbase.cpp:107: 
error: no matching function for call to 
'QGridLayout::addMultiCellWidget(KListView*&, int, int, int, int)'
/usr/lib/qt-3.3/include/qlayout.h:336: note: candidates are: void 
QGridLayout::addMultiCellWidget(QWidget*, int, int, int, int, int)
/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui/attachpropertydialogbase.cpp: 
In member function 'virtual void 
AttachPropertyDialogBase::languageChange()':
/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui/attachpropertydialogbase.cpp:149: 
error: invalid use of undefined type 'struct KListView'
/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui/attachpropertydialogbase.h:21: 
error: forward declaration of 'struct KListView'
/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui/attachpropertydialogbase.cpp:150: 
error: invalid use of undefined type 'struct KListView'
/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build/ktnef/gui/attachpropertydialogbase.h:21: 
error: forward declaration of 'struct KListView'
make[2]: *** 
[ktnef/gui/CMakeFiles/ktnef.dir/attachpropertydialogbase.cpp.o] Error 1
make[2]: Leaving directory 
`/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build'
make[1]: *** [ktnef/gui/CMakeFiles/ktnef.dir/all] Error 2
make[1]: Leaving directory 
`/home/albator/rpmbuild/BUILD/BUILD.el5.i386/kdepim/build'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.53807 (%build)
----------

When looking in "attachpropertydialogbase.cpp", I see that it lacks the 
line: "#include <klistview.h> . That's why it fails.
In a working build environment, the same file contains the include, and 
it compiles correctly.

It looks like the "attachpropertydialogbase.cpp" and 
"attachpropertydialogbase.h" are both autogenerated with "uic".
I tried running "uic" manually in both build environment, and I confirm 
that in one case, I get the "#include <klistview.h>", and in another 
case, i do not get it, and then it FTBFS.

What could cause a different behaviour in the uic utility ?
(Note: both build environment have same QT, kdelibs, etc ... versions)

Thanks
Fran├žois