rpmbuild -bb /usr/src/packages/SOURCES/wvstreams.spec
problem to make

gcc -ldb -lpthread -L/usr/lib/qt3/lib -L./xplc -L. -o ipstreams/tests/wsd ipstreams/tests/wsd.o libuniconf.so libwvstreams.so libwvutils.so libwvbase.so libwvtest.a -lxplc-cxx -lxplc -lreadline -lsupc++ -lgcc_eh -lsupc++ -lgcc_eh -lsupc++ -lgcc_eh
moc -o include/wvqthook.moc include/wvqthook.h
g++ -I./include -Iinclude -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIC -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIC -D_BSD_SOURCE -D_GNU_SOURCE -DISLINUX -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDEBUG=0 -DDEBUG=0 -O2 -O2 -Wall -I/usr/include/tcl8.3 -I/usr/lib/qt3/include -I/usr/lib/qt3/include/qt3 -I./xplc/include -I./include -Iinclude -Iinclude -Ignulib -pipe -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIC -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -Wall -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIC -fno-strict-aliasing -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -Wall -Woverloaded-virtual -c qt/wvqthook.cc -o qt/wvqthook.o
In file included from qt/wvqthook.cc:10:0:
./include/wvqthook.moc:12:2: error: #error "The header file 'wvqthook.h' doesn't include <QObject>."
./include/wvqthook.moc:19:1: error: QT_BEGIN_MOC_NAMESPACE does not name a type
./include/wvqthook.moc:40:29: error: const QMetaObject WvQtHook::staticMetaObject is not a static member of class WvQtHook
./include/wvqthook.moc:40:29: error: variable const QMetaObject WvQtHook::staticMetaObject has initializer but incomplete type
./include/wvqthook.moc:42:7: error: qt_meta_data_WvQtHook was not declared in this scope
./include/wvqthook.moc:49:20: error: prototype for const QMetaObject* WvQtHook::metaObject() const does not match any in class WvQtHook
./include/wvqthook.h:23:5: error: candidate is: virtual QMetaObject* WvQtHook::metaObject() const
./include/wvqthook.moc:54:48: error: no void* WvQtHook::qt_metacast(const char*) member function declared in class WvQtHook
./include/wvqthook.moc:62:40: error: int WvQtHook::qt_metacall is not a static member of class WvQtHook
./include/wvqthook.moc:62:27: error: incomplete type QMetaObject used in nested name specifier
./include/wvqthook.moc:62:49: error: expected primary-expression before int
./include/wvqthook.moc:62:58: error: expected primary-expression before void
./include/wvqthook.moc:62:67: error: initializer expression list treated as compound expression
./include/wvqthook.moc:63:1: error: expected , or ; before { token
./include/wvqthook.moc:69:1: error: QT_END_MOC_NAMESPACE does not name a type
qt/wvqthook.cc: In member function void WvQtHook:ost(int, void*):
qt/wvqthook.cc:42:5: error: incomplete type QApplication used in nested name specifier
qt/wvqthook.cc: In member function void WvQtHook::send(int, void*):
qt/wvqthook.cc:50:5: error: incomplete type QApplication used in nested name specifier
make: *** [qt/wvqthook.o] Error 1

opensuse 11.3