Closed Bug 898311 Opened 11 years ago Closed 11 years ago

#error qmetatype.h must be included before any header file that defines Bool

Categories

(Core Graveyard :: Widget: Qt, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla25

People

(Reporter: tatiana, Assigned: Ms2ger)

References

Details

Attachments

(3 files, 1 obsolete file)

Qt Firefox fails to build:

c++ -o PluginModuleParent.o -c -I../../../dist/stl_wrappers -I../../../dist/system_wrappers -include /home/nebel/mozilla-upstream/config/gcc_hidden.h -DMOZ_GLUE_IN_PROGRAM -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL  -DSTATIC_EXPORTABLE_JS_API -DNO_NSPR_10_SUPPORT -DOS_POSIX=1 -DOS_LINUX=1  -DFORCE_PR_LOG -I/home/nebel/mozilla-upstream/dom/plugins/ipc/../base -I/home/nebel/mozilla-upstream/xpcom/base/  -I/home/nebel/mozilla-upstream/ipc/chromium/src -I/home/nebel/mozilla-upstream/ipc/glue -I../../../ipc/ipdl/_ipdlheaders  -I/home/nebel/mozilla-upstream/dom/plugins/ipc -I. -I../../../dist/include  -I/home/nebel/mozilla-upstream/obj-browser-qt-debug/dist/include/nspr -I/home/nebel/mozilla-upstream/obj-browser-qt-debug/dist/include/nss      -fPIC  -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Wsign-compare -Wno-invalid-offsetof -Wcast-align -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -std=gnu++0x -pthread -pipe  -DDEBUG -D_DEBUG -DTRACING -g -Os -freorder-blocks  -fno-omit-frame-pointer   -I/usr/include/qt5/QtGui -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtOpenGL -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtPrintSupport   -I/usr/include/qt5/QtGui/5.0.2/QtGui -I/home/nebel/mozilla-upstream/obj-browser-qt-debug/dist/include/cairo   -DMOZILLA_CLIENT -include ../../../mozilla-config.h -MD -MP -MF .deps/PluginModuleParent.o.pp  /home/nebel/mozilla-upstream/dom/plugins/ipc/PluginModuleParent.cpp
In file included from /usr/include/qt5/QtCore/qobject.h:55:0,
                 from /usr/include/qt5/QtCore/qcoreapplication.h:45,
                 from /usr/include/qt5/QtCore/QCoreApplication:1,
                 from /home/nebel/mozilla-upstream/dom/plugins/ipc/PluginModuleParent.cpp:43:
/usr/include/qt5/QtCore/qmetatype.h:56:2: error: #error qmetatype.h must be included before any header file that defines Bool
/usr/include/qt5/QtCore/qmetatype.h:205:9: error: expected identifier before ‘int’
...
Blocks: 896275
Ugh. Do you know what defines Bool?
Xlib.h included from npapi.h defines Bool. These four include npapi.h:

#include "mozilla/plugins/PluginModuleParent.h"
#include "mozilla/plugins/BrowserStreamParent.h"
#include "nsNPAPIPlugin.h"
#include "PluginIdentifierParent.h"
Attached patch Patch v1 (obsolete) — Splinter Review
Can you check if this helps?
Assignee: nobody → Ms2ger
Status: NEW → ASSIGNED
Attachment #782486 - Flags: feedback?(tanya.meshkova)
Attached file build log
Attached file qmetatype.h
Comment on attachment 782486 [details] [diff] [review]
Patch v1

It doesn't. See the log above.
Attachment #782486 - Flags: feedback?(tanya.meshkova) → feedback-
Attachment #782788 - Attachment mime type: text/x-chdr → text/plain
Attached patch Patch v2Splinter Review
I hate C++. How about this?
Attachment #782486 - Attachment is obsolete: true
Attachment #783028 - Flags: superreview?(tanya.meshkova)
Attachment #783028 - Flags: superreview?(tanya.meshkova) → feedback+
Attachment #783028 - Flags: review?(mounir)
Attachment #783028 - Flags: review?(mounir) → review+
Attachment #783028 - Flags: checkin?
Keywords: checkin-needed
Yes, I'll land it, thanks for the reminders.
Keywords: checkin-needed
Attachment #783028 - Flags: checkin? → checkin+
https://hg.mozilla.org/mozilla-central/rev/f307c0643e69
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: