[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#507453: qt4-x11: webkit example FTBFS



Package: qt4-x11
Version: 4.4.3-1
Severity: serious

Compiling qt from source results in

g++ -c -g -O2 -g -Wall -O2 -g -I/usr/include/freetype2 -O2 -Wall -W -D_REENTRANT -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NAMESPACE=QtCppIntegration -DQT_SHARED -I../../../mkspecs/linux-g++ -I. -I../../../include/QtCore -I../../../include/QtCore -I../../../include/QtGui -I../../../include/QtGui -I../../../include/QtWebKit -I../../../include/QtWebKit -I../../../include -I.moc/release-shared -I.uic/release-shared -o .obj/release-shared/main.o main.cpp
In file included from main.cpp:39:
mainwindow.h:59: error: reference to 'QMenu' is ambiguous
mainwindow.h:45: error: candidates are: struct QMenu
../../../include/QtGui/../../src/gui/widgets/qmainwindow.h:56: error:                 struct QtCppIntegration::QMenu
mainwindow.h:59: error: ISO C++ forbids declaration of 'QMenu' with no type
mainwindow.h:59: error: expected ';' before '*' token
mainwindow.h:60: error: reference to 'QMenu' is ambiguous
mainwindow.h:45: error: candidates are: struct QMenu
../../../include/QtGui/../../src/gui/widgets/qmainwindow.h:56: error:                 struct QtCppIntegration::QMenu
mainwindow.h:60: error: ISO C++ forbids declaration of 'QMenu' with no type
mainwindow.h:60: error: expected ';' before '*' token
mainwindow.h:61: error: reference to 'QAction' is ambiguous
mainwindow.h:44: error: candidates are: struct QAction
../../../include/QtGui/../../src/gui/kernel/qaction.h:60: error:                 class QtCppIntegration::QAction
mainwindow.h:61: error: ISO C++ forbids declaration of 'QAction' with no type
mainwindow.h:61: error: expected ';' before '*' token
mainwindow.h:62: error: reference to 'QAction' is ambiguous
mainwindow.h:44: error: candidates are: struct QAction
../../../include/QtGui/../../src/gui/kernel/qaction.h:60: error:                 class QtCppIntegration::QAction
mainwindow.h:62: error: ISO C++ forbids declaration of 'QAction' with no type
mainwindow.h:62: error: expected ';' before '*' token
mainwindow.h:63: error: reference to 'QAction' is ambiguous
mainwindow.h:44: error: candidates are: struct QAction
../../../include/QtGui/../../src/gui/kernel/qaction.h:60: error:                 class QtCppIntegration::QAction
mainwindow.h:63: error: ISO C++ forbids declaration of 'QAction' with no type
mainwindow.h:63: error: expected ';' before '*' token
make: *** [.obj/release-shared/main.o] Error 1

Luckily the patch is quite easy. One just needs to remove the forward declarations of
QAction and QMenu in examples/webkit/formextractor/mainwindow.h which clash with the 
forward decalarations in gui/widgets/qmainwindow.h.

Debian Release: lenny/sid
  APT prefers unstabli
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.27.4 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



Reply to: