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 1168

Summary: Build issue: python-tqt FTBFS
Product: TDE Reporter: Darrell <darrella>
Component: non-core programsAssignee: Slávek Banko <slavek.banko>
Status: RESOLVED FIXED    
Severity: critical CC: bugwatch, darrella, michele.calgaro, slavek.banko
Priority: P1    
Version: R14.0.0 [Trinity]   
Hardware: Other   
OS: Other   
Compiler Version: TDE Version String:
Application Version: Application Name:
Attachments: Fix missing tqstyle include

Description Darrell 2012-08-15 13:09:12 CDT
The cause seems to be commit 4b78cab4. The failure messages:

sipqtTQStyleWidgetActionRequestData.cpp:55:29: error: expected type-specifier before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:55:29: error: expected '>' before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:55:29: error: expected '(' before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:55:29: error: 'TQStyleWidgetActionRequestData' was not declared in this scope
sipqtTQStyleWidgetActionRequestData.cpp:55:61: error: expected primary-expression before '>' token
sipqtTQStyleWidgetActionRequestData.cpp:55:71: error: expected ')' before ';' token
sipqtTQStyleWidgetActionRequestData.cpp:62:22: error: expected type-specifier before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:62:22: error: expected '>' before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:62:22: error: expected '(' before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:62:22: error: 'TQStyleWidgetActionRequestData' was not declared in this scope
sipqtTQStyleWidgetActionRequestData.cpp:62:54: error: expected primary-expression before '>' token
sipqtTQStyleWidgetActionRequestData.cpp:62:73: error: 'void*' is not a pointer-to-object type
sipqtTQStyleWidgetActionRequestData.cpp:62:101: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
sipqtTQStyleWidgetActionRequestData.cpp:62:101: error: expected '>' before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:62:101: error: expected '(' before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:62:133: error: expected primary-expression before '>' token
sipqtTQStyleWidgetActionRequestData.cpp:62:142: error: expected ')' before ';' token
sipqtTQStyleWidgetActionRequestData.cpp:62:142: error: expected ')' before ';' token
sipqtTQStyleWidgetActionRequestData.cpp:69:16: error: expected type-specifier before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:69:16: error: expected ';' before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:69:16: error: 'TQStyleWidgetActionRequestData' was not declared in this scope
sipqtTQStyleWidgetActionRequestData.cpp:76:16: error: expected type-specifier before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:76:16: error: expected ';' before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:76:70: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
sipqtTQStyleWidgetActionRequestData.cpp:76:70: error: expected '>' before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:76:70: error: expected '(' before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:76:70: error: 'TQStyleWidgetActionRequestData' was not declared in this scope
sipqtTQStyleWidgetActionRequestData.cpp:76:102: error: expected primary-expression before '>' token
sipqtTQStyleWidgetActionRequestData.cpp:76:121: error: 'const void*' is not a pointer-to-object type
sipqtTQStyleWidgetActionRequestData.cpp:93:5: error: 'TQStyleWidgetActionRequestData' was not declared in this scope
sipqtTQStyleWidgetActionRequestData.cpp:93:37: error: 'sipCpp' was not declared in this scope
sipqtTQStyleWidgetActionRequestData.cpp:98:26: error: expected type-specifier before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:98:26: error: expected ';' before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:110:26: error: expected type-specifier before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:110:26: error: expected ';' before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:123:26: error: expected type-specifier before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:123:26: error: expected ';' before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:136:26: error: expected type-specifier before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:136:26: error: expected ';' before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:147:26: error: expected type-specifier before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:147:26: error: expected ';' before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:154:15: error: 'TQStyleWidgetActionRequestData' does not name a type
sipqtTQStyleWidgetActionRequestData.cpp:156:124: error: 'a0' was not declared in this scope
sipqtTQStyleWidgetActionRequestData.cpp:158:26: error: expected type-specifier before 'TQStyleWidgetActionRequestData'
sipqtTQStyleWidgetActionRequestData.cpp:158:26: error: expected ';' before 'TQStyleWidgetActionRequestData'
Comment 1 Darrell 2012-08-22 12:57:34 CDT
I can build python-tqt by patching qt/sipqtTQStyleWidgetActionRequestData.cpp on-the-fly in my build script, in between the configure and make commands, but I don't know where to patch the sources to ensure the include is created during the configure process.

Here is the on-the-fly patch:

diff -urN python-tqt/qt/sipqtTQStyleWidgetActionRequestData.cpp python-tqt.new/qt/sipqtTQStyleWidgetActionRequestData.cpp
--- python-tqt/qt/sipqtTQStyleWidgetActionRequestData.cpp 2012-08-22 12:35:04.638695382 -0500
+++ python-tqt.new/qt/sipqtTQStyleWidgetActionRequestData.cpp 2012-08-22 12:37:34.174946155 -0500
@@ -35,6 +35,7 @@
 #line 93 "/dev/shm/python-tqt/sip/qt/qrect.sip"
 #include <tqrect.h>
 #line 38 "sipqtTQStyleWidgetActionRequestData.cpp"
+#include <ntqstyle.h>


 /* Cast a pointer to a type somewhere in its superclass hierarchy. */
Comment 2 Darrell 2012-09-18 17:36:54 CDT
Bumping to Critical because there is a work-around.
Comment 3 Michele Calgaro 2013-09-27 10:12:18 CDT
Hi Darrell,
is this bug report still applicable?
As of today, I can build python-tqt from GIT repository without problems, at least on Debian/Jessie.
I am asking because this bug is in the list of open bugs for releasing R14.0
If it is no longer applicable, we should consider closing it.
Comment 4 Darrell 2013-09-27 13:48:59 CDT
Yes.

Here is the respective snippet from my build script:

====================================
PYTHONVER=$(python -V 2>&1 | cut -f 2 -d' ' | cut -f 1-2 -d.)
PYTHONLIB=$( python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib()' )

if [ "$PREFIX" = "/usr" ]; then
  FLAGS="$CPUOPT -L${PREFIX}/lib${LIBDIRSUFFIX} -I/usr/include/tqt -I/${QTDIR}/include -I${PREFIX}/include"
else
  FLAGS="$CPUOPT -L${PREFIX}/lib${LIBDIRSUFFIX} -I/usr/include/tqt -I/${QTDIR}/include -I${PREFIX}/include -I/usr/include"
fi

echo "yes" | python configure.py \
  -b "/usr/bin" \
  -d "$PYTHONLIB" \
  -l "/usr/include/python$PYTHONVER" \
  CFLAGS="$FLAGS" \
  CXXFLAGS="$FLAGS"

# The following patch needs to be applied on-the-fly.
# Refer to bug report 1168.
(cd $TMP/$PRGNAM; cat $CWD/python-tqt-kstyle.diff | patch -p1 --verbose --no-backup-if-mismatch || exit 1)

if [ "$TEE_OUTPUT" = "false" ]; then
  make $NUMJOBS --silent || exit 1
else
  make $NUMJOBS VERBOSE=1 || exit 1
fi
====================================

The build still fails if I don't apply the patch noted in comment 1. Otherwise no problems with other packages.

I ran a full build set last night, thus my local GIT tree is current.
Comment 5 Slávek Banko 2013-09-29 12:47:04 CDT
Created attachment 1528 [details]
Fix missing tqstyle include

On Debian / Ubuntu I am unable to reproduce this problem.
Therefore, I have no idea if the patch helps or not.

It's up to you - you have to test it.
Comment 6 Darrell 2013-09-29 17:41:49 CDT
Patch tested. No build failures. The final package is the same except for the expected changes in qstyle.sip.

Thank you!
Comment 7 Slávek Banko 2013-09-29 17:47:50 CDT
Fixed in GIT hash a0afa979.
Thank you for testing.