Bug 73404 - built-in tests don't pass
Summary: built-in tests don't pass
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kdemultimedia
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact:
URL: http://doc.trolltech.com/3.0/porting....
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-09-04 08:24 UTC by Andrey
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-09-25 19:57:29 UTC
Embargoed:


Attachments (Terms of Use)
Patch for 'dcopplay.cpp' (320 bytes, patch)
2002-09-04 08:25 UTC, Andrey
no flags Details | Diff
patch for spec-file 'kdemultimedia.spec' to run `make check` after `make` (226 bytes, patch)
2002-09-04 08:28 UTC, Andrey
no flags Details | Diff

Description Andrey 2002-09-04 08:24:40 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; T312461)

Description of problem:
I tried to run built-in tests coming with 'kdemultimedia' package but they have 
crashed. 
'Kdemultimedia' from Red Hat 7.3 distribution uses version 3 of QT-library. 
One of built-in tests uses 'debug' function (declared in 'qglobal.h' from QT-
library). 
As it's written in 'Porting to Qt 3.x' document 
(http://doc.trolltech.com/3.0/porting.html) "The name of some debugging macro 
functions has been changed as well but source compatibility should not be 
affected if the macro variable QT_CLEAN_NAMESPACE is not defined". But while 
building the package QT_CLEAN_NAMESPACE macro is defined everywhere. 
Thus 'debug' identifier isn't found and built-in tests crash.
There is 'qDebug' function used in QT-3 instead of 'debug' in earlier versions. 
So we can replace 'debug' to 'qDebug' and tests will pass.
Patch for 'dcopplay.cpp' is attached.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. patch spec-file 'kdemultimedia.spec' using `patch kdemultimedia.spec 
kdemultimedia.spec.patch` (kdemultimedia.spec.patch is attached) to do `make 
check` after `make`
2. start building of package as usual


Actual Results:  Piece of build dump:
.......
g++ -DHAVE_CONFIG_H -I. -I. -I.. `/usr/bin/artsc-config --cflags` -
I/usr/include/kde -I/usr/lib/qt3-gcc2.96/inclu
de -I/usr/X11R6/include  -DDEFAULT_PATH=\"/usr/share/apps/kmidi/config\" -
DKMIDI -DAU_OSS -DQT_THREAD_SUPPORT  -D
_REENTRANT -DQT_THREAD_SUPPORT  -D_REENTRANT  -DNDEBUG -DNO_DEBUG -O2 -O2 -
march=i386 -mcpu=i686 -DNDEBUG -fno-ch
eck-new -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -
O3 -fomit-frame-pointer -ffast-ma
th -c -o dcopplay.o `test -f dcopplay.cpp || echo './'`dcopplay.cpp
dcopplay.cpp: In function `int main (int, char **)':
dcopplay.cpp:22: `debug' undeclared (first use this function)
dcopplay.cpp:22: (Each undeclared identifier is reported only once for
each function it appears in.)
make[3]: *** [dcopplay.o] Error 1
...........

Expected Results:  Here should be no any errors.

Additional info:

Comment 1 Andrey 2002-09-04 08:25:42 UTC
Created attachment 74846 [details]
Patch for 'dcopplay.cpp'

Comment 2 Andrey 2002-09-04 08:28:21 UTC
Created attachment 74847 [details]
patch for spec-file 'kdemultimedia.spec' to run `make check` after `make`

Comment 3 Ngo Than 2002-10-15 13:46:52 UTC
many thanks for your bug report. This bug has been fixed in 3.0.4-1 or newer.



Note You need to log in before you can comment on or make changes to this bug.