Closed Bug 962345 Opened 10 years ago Closed 7 years ago

Qt port fails to build with gcc_hidden.h

Categories

(Firefox Build System :: General, defect)

x86_64
FreeBSD
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
mozilla30

People

(Reporter: jbeich, Unassigned)

References

Details

Attachments

(1 file, 2 obsolete files)

In file included from intl/locale/src/Unified_cpp_intl_locale_src0.cpp:38:
 In file included from intl/locale/src/nsLocaleService.cpp:7:
 In file included from /usr/local/include/qt4/QtCore/QString:1:
 In file included from /usr/local/include/qt4/QtCore/qstring.h:46:
 /usr/local/include/qt4/QtCore/qbytearray.h:135:7: error: visibility does not match previous declaration
 class Q_CORE_EXPORT QByteArray
       ^
 /usr/local/include/qt4/QtCore/qglobal.h:1431:27: note: expanded from macro 'Q_CORE_EXPORT'
 #    define Q_CORE_EXPORT Q_DECL_EXPORT
                           ^
 /usr/local/include/qt4/QtCore/qglobal.h:1288:42: note: expanded from macro 'Q_DECL_EXPORT'
 #    define Q_DECL_EXPORT __attribute__((visibility("default")))
                                          ^
 config/gcc_hidden.h:6:13: note: previous attribute is here
 #pragma GCC visibility push(hidden)
             ^
 In file included from intl/locale/src/Unified_cpp_intl_locale_src0.cpp:38:
 In file included from intl/locale/src/nsLocaleService.cpp:7:
 In file included from /usr/local/include/qt4/QtCore/QString:1:
 In file included from /usr/local/include/qt4/QtCore/qstring.h:46:
 /usr/local/include/qt4/QtCore/qbytearray.h:455:7: error: visibility does not match previous declaration
 class Q_CORE_EXPORT QByteRef {
       ^
 /usr/local/include/qt4/QtCore/qglobal.h:1431:27: note: expanded from macro 'Q_CORE_EXPORT'
 #    define Q_CORE_EXPORT Q_DECL_EXPORT
                           ^
 /usr/local/include/qt4/QtCore/qglobal.h:1288:42: note: expanded from macro 'Q_DECL_EXPORT'
 #    define Q_DECL_EXPORT __attribute__((visibility("default")))
                                          ^
 config/gcc_hidden.h:6:13: note: previous attribute is here
 #pragma GCC visibility push(hidden)
             ^
 In file included from intl/locale/src/Unified_cpp_intl_locale_src0.cpp:38:
 In file included from intl/locale/src/nsLocaleService.cpp:7:
 In file included from /usr/local/include/qt4/QtCore/QString:1:
 /usr/local/include/qt4/QtCore/qstring.h:83:7: error: visibility does not match previous declaration
 class Q_CORE_EXPORT QString
       ^
 /usr/local/include/qt4/QtCore/qglobal.h:1431:27: note: expanded from macro 'Q_CORE_EXPORT'
 #    define Q_CORE_EXPORT Q_DECL_EXPORT
                           ^
 /usr/local/include/qt4/QtCore/qglobal.h:1288:42: note: expanded from macro 'Q_DECL_EXPORT'
 #    define Q_DECL_EXPORT __attribute__((visibility("default")))
                                          ^
 config/gcc_hidden.h:6:13: note: previous attribute is here
 #pragma GCC visibility push(hidden)
             ^
 In file included from intl/locale/src/Unified_cpp_intl_locale_src0.cpp:38:
 In file included from intl/locale/src/nsLocaleService.cpp:7:
 In file included from /usr/local/include/qt4/QtCore/QString:1:
 /usr/local/include/qt4/QtCore/qstring.h:654:7: error: visibility does not match previous declaration
 class Q_CORE_EXPORT QLatin1String
       ^
 /usr/local/include/qt4/QtCore/qglobal.h:1431:27: note: expanded from macro 'Q_CORE_EXPORT'
 #    define Q_CORE_EXPORT Q_DECL_EXPORT
                           ^
 /usr/local/include/qt4/QtCore/qglobal.h:1288:42: note: expanded from macro 'Q_DECL_EXPORT'
 #    define Q_DECL_EXPORT __attribute__((visibility("default")))
                                          ^
 config/gcc_hidden.h:6:13: note: previous attribute is here
 #pragma GCC visibility push(hidden)
             ^
 In file included from intl/locale/src/Unified_cpp_intl_locale_src0.cpp:38:
 In file included from intl/locale/src/nsLocaleService.cpp:7:
 In file included from /usr/local/include/qt4/QtCore/QString:1:
 /usr/local/include/qt4/QtCore/qstring.h:785:7: error: visibility does not match previous declaration
 class Q_CORE_EXPORT QCharRef {
       ^
 /usr/local/include/qt4/QtCore/qglobal.h:1431:27: note: expanded from macro 'Q_CORE_EXPORT'
 #    define Q_CORE_EXPORT Q_DECL_EXPORT
                           ^
 /usr/local/include/qt4/QtCore/qglobal.h:1288:42: note: expanded from macro 'Q_DECL_EXPORT'
 #    define Q_DECL_EXPORT __attribute__((visibility("default")))
                                          ^
 config/gcc_hidden.h:6:13: note: previous attribute is here
 #pragma GCC visibility push(hidden)
             ^
 In file included from intl/locale/src/Unified_cpp_intl_locale_src0.cpp:38:
 In file included from intl/locale/src/nsLocaleService.cpp:7:
 In file included from /usr/local/include/qt4/QtCore/QString:1:
 /usr/local/include/qt4/QtCore/qstring.h:1099:7: error: visibility does not match previous declaration
 class Q_CORE_EXPORT QStringRef {
       ^
 /usr/local/include/qt4/QtCore/qglobal.h:1431:27: note: expanded from macro 'Q_CORE_EXPORT'
 #    define Q_CORE_EXPORT Q_DECL_EXPORT
                           ^
 /usr/local/include/qt4/QtCore/qglobal.h:1288:42: note: expanded from macro 'Q_DECL_EXPORT'
 #    define Q_DECL_EXPORT __attribute__((visibility("default")))
                                          ^
 config/gcc_hidden.h:6:13: note: previous attribute is here
 #pragma GCC visibility push(hidden)
             ^
 In file included from intl/locale/src/Unified_cpp_intl_locale_src0.cpp:38:
 In file included from intl/locale/src/nsLocaleService.cpp:8:
 In file included from /usr/local/include/qt4/QtCore/QLocale:1:
 In file included from /usr/local/include/qt4/QtCore/qlocale.h:45:
 In file included from /usr/local/include/qt4/QtCore/qvariant.h:48:
 In file included from /usr/local/include/qt4/QtCore/qmetatype.h:49:
 In file included from /usr/local/include/qt4/QtCore/qdatastream.h:46:
 In file included from /usr/local/include/qt4/QtCore/qiodevice.h:46:
 /usr/local/include/qt4/QtCore/qobject.h:111:7: error: visibility does not match previous declaration
 class Q_CORE_EXPORT QObject
       ^
 /usr/local/include/qt4/QtCore/qglobal.h:1431:27: note: expanded from macro 'Q_CORE_EXPORT'
 #    define Q_CORE_EXPORT Q_DECL_EXPORT
                           ^
 /usr/local/include/qt4/QtCore/qglobal.h:1288:42: note: expanded from macro 'Q_DECL_EXPORT'
 #    define Q_DECL_EXPORT __attribute__((visibility("default")))
                                          ^
 config/gcc_hidden.h:6:13: note: previous attribute is here
 #pragma GCC visibility push(hidden)
             ^
 In file included from intl/locale/src/Unified_cpp_intl_locale_src0.cpp:38:
 In file included from intl/locale/src/nsLocaleService.cpp:8:
 In file included from /usr/local/include/qt4/QtCore/QLocale:1:
 In file included from /usr/local/include/qt4/QtCore/qlocale.h:45:
 In file included from /usr/local/include/qt4/QtCore/qvariant.h:48:
 In file included from /usr/local/include/qt4/QtCore/qmetatype.h:49:
 In file included from /usr/local/include/qt4/QtCore/qdatastream.h:46:
 In file included from /usr/local/include/qt4/QtCore/qiodevice.h:46:
 /usr/local/include/qt4/QtCore/qobject.h:342:7: error: visibility does not match previous declaration
 class Q_CORE_EXPORT QObjectUserData {
       ^
 /usr/local/include/qt4/QtCore/qglobal.h:1431:27: note: expanded from macro 'Q_CORE_EXPORT'
 #    define Q_CORE_EXPORT Q_DECL_EXPORT
                           ^
 /usr/local/include/qt4/QtCore/qglobal.h:1288:42: note: expanded from macro 'Q_DECL_EXPORT'
 #    define Q_DECL_EXPORT __attribute__((visibility("default")))
                                          ^
 config/gcc_hidden.h:6:13: note: previous attribute is here
 #pragma GCC visibility push(hidden)
             ^
 In file included from intl/locale/src/Unified_cpp_intl_locale_src0.cpp:38:
 In file included from intl/locale/src/nsLocaleService.cpp:8:
 In file included from /usr/local/include/qt4/QtCore/QLocale:1:
 In file included from /usr/local/include/qt4/QtCore/qlocale.h:45:
 In file included from /usr/local/include/qt4/QtCore/qvariant.h:48:
 In file included from /usr/local/include/qt4/QtCore/qmetatype.h:49:
 /usr/local/include/qt4/QtCore/qdatastream.h:71:7: error: visibility does not match previous declaration
 class Q_CORE_EXPORT QDataStream
       ^
 /usr/local/include/qt4/QtCore/qglobal.h:1431:27: note: expanded from macro 'Q_CORE_EXPORT'
 #    define Q_CORE_EXPORT Q_DECL_EXPORT
                           ^
 /usr/local/include/qt4/QtCore/qglobal.h:1288:42: note: expanded from macro 'Q_DECL_EXPORT'
 #    define Q_DECL_EXPORT __attribute__((visibility("default")))
                                          ^
 config/gcc_hidden.h:6:13: note: previous attribute is here
 #pragma GCC visibility push(hidden)
             ^
 In file included from intl/locale/src/Unified_cpp_intl_locale_src0.cpp:38:
 In file included from intl/locale/src/nsLocaleService.cpp:8:
 In file included from /usr/local/include/qt4/QtCore/QLocale:1:
 In file included from /usr/local/include/qt4/QtCore/qlocale.h:45:
 /usr/local/include/qt4/QtCore/qvariant.h:92:7: error: visibility does not match previous declaration
 class Q_CORE_EXPORT QVariant
       ^
 /usr/local/include/qt4/QtCore/qglobal.h:1431:27: note: expanded from macro 'Q_CORE_EXPORT'
 #    define Q_CORE_EXPORT Q_DECL_EXPORT
                           ^
 /usr/local/include/qt4/QtCore/qglobal.h:1288:42: note: expanded from macro 'Q_DECL_EXPORT'
 #    define Q_DECL_EXPORT __attribute__((visibility("default")))
                                          ^
 config/gcc_hidden.h:6:13: note: previous attribute is here
 #pragma GCC visibility push(hidden)
             ^
 In file included from intl/locale/src/Unified_cpp_intl_locale_src0.cpp:38:
 In file included from intl/locale/src/nsLocaleService.cpp:8:
 In file included from /usr/local/include/qt4/QtCore/QLocale:1:
 /usr/local/include/qt4/QtCore/qlocale.h:133:7: error: visibility does not match previous declaration
 class Q_CORE_EXPORT QLocale
       ^
 /usr/local/include/qt4/QtCore/qglobal.h:1431:27: note: expanded from macro 'Q_CORE_EXPORT'
 #    define Q_CORE_EXPORT Q_DECL_EXPORT
                           ^
 /usr/local/include/qt4/QtCore/qglobal.h:1288:42: note: expanded from macro 'Q_DECL_EXPORT'
 #    define Q_DECL_EXPORT __attribute__((visibility("default")))
                                          ^
 config/gcc_hidden.h:6:13: note: previous attribute is here
 #pragma GCC visibility push(hidden)
             ^
 11 errors generated.
From a cursory look MOZ_WIDGET_QT uses at least the following headers

dom/plugins/base/nsPluginInstanceOwner.cpp:#include <QKeyEvent>
dom/plugins/base/nsPluginInstanceOwner.cpp:#include <QWidget>
dom/plugins/base/nsPluginInstanceOwner.cpp:#include <QX11Info>
dom/plugins/ipc/NestedLoopTimer.cpp:#include <QtCore/QTimer>
dom/plugins/ipc/NestedLoopTimer.h:#include <QtCore/QObject>
dom/plugins/ipc/PluginModuleChild.cpp:#include <QtCore/QTimer>
dom/plugins/ipc/PluginModuleParent.cpp:#include <QtCore/QCoreApplication>
dom/plugins/ipc/PluginModuleParent.cpp:#include <QtCore/QEventLoop>
gfx/gl/GLContextProviderGLX.cpp:#include <QWidget>
gfx/thebes/gfxFT2FontList.cpp:#include <qfontinfo.h>
gfx/thebes/gfxFT2Fonts.cpp:#include <qfontinfo.h>
gfx/thebes/gfxQtPlatform.cpp:#include <QApplication>
gfx/thebes/gfxQtPlatform.cpp:#include <QDesktopWidget>
gfx/thebes/gfxQtPlatform.cpp:#include <QPaintEngine>
gfx/thebes/gfxQtPlatform.cpp:#include <QPixmap>
gfx/thebes/gfxQtPlatform.cpp:#include <QX11Info>
gfx/thebes/gfxQtPlatform.cpp:#include <qglobal.h>
gfx/thebes/gfxQtPlatform.cpp:#include <qpa/qplatformintegration.h>
gfx/thebes/gfxQtPlatform.cpp:#include <qpa/qplatformnativeinterface.h>
image/decoders/icon/qt/nsIconChannel.cpp:#include <QApplication>
image/decoders/icon/qt/nsIconChannel.cpp:#include <QIcon>
image/decoders/icon/qt/nsIconChannel.cpp:#include <QStyle>
intl/locale/src/nsLocaleService.cpp:#include <QString>
intl/locale/src/nsLocaleService.cpp:#include <QtCore/QLocale>
ipc/chromium/src/base/message_pump_qt.cc:#include <QCoreApplication>
ipc/chromium/src/base/message_pump_qt.cc:#include <QThread>
ipc/chromium/src/base/message_pump_qt.cc:#include <qabstracteventdispatcher.h>
ipc/chromium/src/base/message_pump_qt.cc:#include <qevent.h>
ipc/chromium/src/base/message_pump_qt.cc:#include <qtimer.h>
ipc/chromium/src/base/message_pump_qt.h:#include <qobject.h>
toolkit/components/remote/nsQtRemoteService.cpp:#include <QWidget>
toolkit/xre/nsAppRunner.cpp:#include <QApplication>
toolkit/xre/nsAppRunner.cpp:#include <QInputContext>
toolkit/xre/nsAppRunner.cpp:#include <QInputContextFactory>
toolkit/xre/nsAppRunner.cpp:#include <QStringList>
toolkit/xre/nsNativeAppSupportQt.cpp:#include <QTimer>
toolkit/xre/nsQAppInstance.cpp:#include <QApplication>
uriloader/exthandler/unix/nsMIMEInfoUnix.cpp:#include <QDesktopServices>
uriloader/exthandler/unix/nsMIMEInfoUnix.cpp:#include <QString>
uriloader/exthandler/unix/nsMIMEInfoUnix.cpp:#include <QUrl>
widget/shared/nsShmImage.cpp:#include <QWidget>

and cairo without --enable-system-cairo uses

gfx/cairo/cairo/src/cairo-qt-surface.cpp:#include <QtGui/QPainter>
gfx/cairo/cairo/src/cairo-qt-surface.cpp:#include <QtGui/QPaintEngine>
gfx/cairo/cairo/src/cairo-qt-surface.cpp:#include <QtGui/QPaintDevice>
gfx/cairo/cairo/src/cairo-qt-surface.cpp:#include <QtGui/QImage>
gfx/cairo/cairo/src/cairo-qt-surface.cpp:#include <QtGui/QPixmap>
gfx/cairo/cairo/src/cairo-qt-surface.cpp:#include <QtGui/QBrush>
gfx/cairo/cairo/src/cairo-qt-surface.cpp:#include <QtGui/QPen>
gfx/cairo/cairo/src/cairo-qt-surface.cpp:#include <QWidget>
gfx/cairo/cairo/src/cairo-qt-surface.cpp:#include <QtCore/QVarLengthArray>
gfx/cairo/cairo/src/cairo-qt.h:#include <QtGui/QImage>
gfx/cairo/cairo/src/cairo-qt.h:#include <QtGui/QPainter>
Attached patch unhide (obsolete) — Splinter Review
115 headers, generated by

  git grep 'include[[:space:]]*<[qQ].*' origin/inbound |
  sed '/Quartz/d; /queue/d; /webrtc/d; /icu/d; /\.patch/d; s/.*<//; s/>.*//;' |
  sort -u

and cairo-qt.h added for --enable-system-cairo.

My build still fails but for unrelated reason:

gmake[5]: *** No rule to make target `src/base/moc_message_pump_qt.cc', needed by `moc_message_pump_qt.o'.  Stop.
Attachment #8363398 - Flags: review?(mh+mozilla)
for now you can try 
https://github.com/tmeshkova/gecko-dev/tree/embedlite_upgrade
which has more less compilable branch so no messages like src/base/moc_message_pump_qt.cc'...
Attached patch unhid, v1.1 (obsolete) — Splinter Review
added <QScreen>, used by Qt5 code in embedlite branch i.e.,

  widget/qt/nsScreenManagerQt.cpp
  widget/qt/nsScreenQt.cpp
Attachment #8363398 - Attachment is obsolete: true
Attachment #8363398 - Flags: review?(mh+mozilla)
Attachment #8363632 - Flags: review?(mh+mozilla)
Comment on attachment 8363632 [details] [diff] [review]
unhid, v1.1

And it still doesn't help Clang while GCC builds fine.

In file included from widget/qt/mozqglwidgetwrapper.cpp:8:
In file included from ../../dist/system_wrappers/QGraphicsView:3:
In file included from /usr/local/include/qt4/QtGui/QGraphicsView:1:
/usr/local/include/qt4/QtGui/qgraphicsview.h:64:7: error: visibility does not match
      previous declaration
class Q_GUI_EXPORT QGraphicsView : public QAbstractScrollArea
      ^
/usr/local/include/qt4/QtCore/qglobal.h:1432:26: note: expanded from macro
      'Q_GUI_EXPORT'
#    define Q_GUI_EXPORT Q_DECL_EXPORT
                         ^
/usr/local/include/qt4/QtCore/qglobal.h:1288:42: note: expanded from macro
      'Q_DECL_EXPORT'
#    define Q_DECL_EXPORT __attribute__((visibility("default")))
                                         ^
config/gcc_hidden.h:6:13: note: previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from widget/qt/mozqglwidgetwrapper.cpp:9:
In file included from ../../dist/system_wrappers/QtOpenGL/QGLWidget:3:
In file included from /usr/local/include/qt4/QtOpenGL/QGLWidget:1:
/usr/local/include/qt4/QtOpenGL/qgl.h:474:7: error: visibility does not match
      previous declaration
class Q_OPENGL_EXPORT QGLWidget : public QWidget
      ^
/usr/local/include/qt4/QtCore/qglobal.h:1437:29: note: expanded from macro
      'Q_OPENGL_EXPORT'
#    define Q_OPENGL_EXPORT Q_DECL_EXPORT
                            ^
/usr/local/include/qt4/QtCore/qglobal.h:1288:42: note: expanded from macro
      'Q_DECL_EXPORT'
#    define Q_DECL_EXPORT __attribute__((visibility("default")))
                                         ^
config/gcc_hidden.h:6:13: note: previous attribute is here
#pragma GCC visibility push(hidden)
            ^
2 errors generated.
Attachment #8363632 - Attachment is obsolete: true
Attachment #8363632 - Flags: review?(mh+mozilla)
GCC only needs a fix for --enable-system-cairo

../../gfx/thebes/gfxQPainterSurface.o: In function `gfxQPainterSurface::GetAsImageSurface()':
gfxQPainterSurface.cpp:(.text._ZN18gfxQPainterSurface17GetAsImageSurfaceEv+0x17): undefined reference to `cairo_qt_surface_get_image'
../../gfx/thebes/gfxQPainterSurface.o: In function `gfxQPainterSurface::gfxQPainterSurface(QPainter*)':
gfxQPainterSurface.cpp:(.text._ZN18gfxQPainterSurfaceC2EP8QPainter+0x1f): undefined reference to `cairo_qt_surface_create'
../../gfx/thebes/gfxQPainterSurface.o: In function `gfxQPainterSurface::gfxQPainterSurface(nsIntSize const&, gfxImageFormat)':
gfxQPainterSurface.cpp:(.text._ZN18gfxQPainterSurfaceC2ERK9nsIntSize14gfxImageFormat+0x26): undefined reference to `cairo_qt_surface_create_with_qimage'
gfxQPainterSurface.cpp:(.text._ZN18gfxQPainterSurfaceC2ERK9nsIntSize14gfxImageFormat+0x31): undefined reference to `cairo_qt_surface_get_qpainter'
../../gfx/thebes/gfxQPainterSurface.o: In function `gfxQPainterSurface::gfxQPainterSurface(nsIntSize const&, gfxContentType)':
gfxQPainterSurface.cpp:(.text._ZN18gfxQPainterSurfaceC2ERK9nsIntSize14gfxContentType+0x26): undefined reference to `cairo_qt_surface_create_with_qpixmap'
gfxQPainterSurface.cpp:(.text._ZN18gfxQPainterSurfaceC2ERK9nsIntSize14gfxContentType+0x31): undefined reference to `cairo_qt_surface_get_qpainter'
../../gfx/thebes/gfxQPainterSurface.o: In function `gfxQPainterSurface::gfxQPainterSurface(_cairo_surface*)':
gfxQPainterSurface.cpp:(.text._ZN18gfxQPainterSurfaceC2EP14_cairo_surface+0x1f): undefined reference to `cairo_qt_surface_get_qpainter'
/usr/local/bin/ld: libxul.so: hidden symbol `cairo_qt_surface_get_qpainter' isn't defined
/usr/local/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
gmake[5]: *** [libxul.so] Error 1
Attachment #8364133 - Flags: review?(mh+mozilla)
I'd rather leave this alone until we figure bug 961264 comment 2 (feel free to participate).
Comment on attachment 8364133 [details] [diff] [review]
unhide cairo-qt.h

Clearing review request until we know what we do with the visibility flags.
Attachment #8364133 - Flags: review?(mh+mozilla)
comment 0 issue doesn't look trivial to me so it may be worth to think with bug 961264 in mind.
Whiteboard: [leave open]
Comment on attachment 8364133 [details] [diff] [review]
unhide cairo-qt.h

Comment 6 issue is an old one with trivial fix. It used to be enough to build against QT4 some releases ago.
Attachment #8364133 - Flags: review?(mh+mozilla)
Blocks: 783463
Attachment #8364133 - Flags: review?(mh+mozilla) → review+
Keywords: checkin-needed
m-c builds fine with QT 5.2.1 while QT 4.* is no longer supported since bug 974335.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Whiteboard: [leave open]
Target Milestone: --- → mozilla30
Nevermind, it seems my clang i386 builder doesn't use gcc_hidden.h due to

checking For gcc visibility bug with class-level attributes (GCC bug 26905)... yes

In file included from intl/locale/src/nsLocaleService.cpp:7:
In file included from /usr/local/include/qt5/QtCore/QString:1:
In file included from /usr/local/include/qt5/QtCore/qstring.h:45:
In file included from /usr/local/include/qt5/QtCore/qchar.h:45:
In file included from /usr/local/include/qt5/QtCore/qglobal.h:1037:
/usr/local/include/qt5/QtCore/qlogging.h:85:7: error: visibility does not match
      previous declaration
class Q_CORE_EXPORT QMessageLogger
      ^
/usr/local/include/qt5/QtCore/qglobal.h:292:27: note: expanded from macro
      'Q_CORE_EXPORT'
#    define Q_CORE_EXPORT Q_DECL_IMPORT
                          ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:184:46: note: expanded from macro
      'Q_DECL_IMPORT'
#    define Q_DECL_IMPORT     __attribute__((visibility("default")))
                                             ^
config/gcc_hidden.h:6:13: note:
      previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from intl/locale/src/nsLocaleService.cpp:7:
In file included from /usr/local/include/qt5/QtCore/QString:1:
In file included from /usr/local/include/qt5/QtCore/qstring.h:46:
/usr/local/include/qt5/QtCore/qbytearray.h:170:7: error: visibility does not match
      previous declaration
class Q_CORE_EXPORT QByteArray
      ^
/usr/local/include/qt5/QtCore/qglobal.h:292:27: note: expanded from macro
      'Q_CORE_EXPORT'
#    define Q_CORE_EXPORT Q_DECL_IMPORT
                          ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:184:46: note: expanded from macro
      'Q_DECL_IMPORT'
#    define Q_DECL_IMPORT     __attribute__((visibility("default")))
                                             ^
config/gcc_hidden.h:6:13: note:
      previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from intl/locale/src/nsLocaleService.cpp:7:
In file included from /usr/local/include/qt5/QtCore/QString:1:
In file included from /usr/local/include/qt5/QtCore/qstring.h:46:
/usr/local/include/qt5/QtCore/qbytearray.h:466:7: error: visibility does not match
      previous declaration
class Q_CORE_EXPORT QByteRef {
      ^
/usr/local/include/qt5/QtCore/qglobal.h:292:27: note: expanded from macro
      'Q_CORE_EXPORT'
#    define Q_CORE_EXPORT Q_DECL_IMPORT
                          ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:184:46: note: expanded from macro
      'Q_DECL_IMPORT'
#    define Q_DECL_IMPORT     __attribute__((visibility("default")))
                                             ^
config/gcc_hidden.h:6:13: note:
      previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from intl/locale/src/nsLocaleService.cpp:7:
In file included from /usr/local/include/qt5/QtCore/QString:1:
/usr/local/include/qt5/QtCore/qstring.h:212:7: error: visibility does not match
      previous declaration
class Q_CORE_EXPORT QString
      ^
/usr/local/include/qt5/QtCore/qglobal.h:292:27: note: expanded from macro
      'Q_CORE_EXPORT'
#    define Q_CORE_EXPORT Q_DECL_IMPORT
                          ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:184:46: note: expanded from macro
      'Q_DECL_IMPORT'
#    define Q_DECL_IMPORT     __attribute__((visibility("default")))
                                             ^
config/gcc_hidden.h:6:13: note:
      previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from intl/locale/src/nsLocaleService.cpp:7:
In file included from /usr/local/include/qt5/QtCore/QString:1:
/usr/local/include/qt5/QtCore/qstring.h:839:7: error: visibility does not match
      previous declaration
class Q_CORE_EXPORT QCharRef {
      ^
/usr/local/include/qt5/QtCore/qglobal.h:292:27: note: expanded from macro
      'Q_CORE_EXPORT'
#    define Q_CORE_EXPORT Q_DECL_IMPORT
                          ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:184:46: note: expanded from macro
      'Q_DECL_IMPORT'
#    define Q_DECL_IMPORT     __attribute__((visibility("default")))
                                             ^
config/gcc_hidden.h:6:13: note:
      previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from intl/locale/src/nsLocaleService.cpp:7:
In file included from /usr/local/include/qt5/QtCore/QString:1:
/usr/local/include/qt5/QtCore/qstring.h:1181:7: error: visibility does not match
      previous declaration
class Q_CORE_EXPORT QStringRef {
      ^
/usr/local/include/qt5/QtCore/qglobal.h:292:27: note: expanded from macro
      'Q_CORE_EXPORT'
#    define Q_CORE_EXPORT Q_DECL_IMPORT
                          ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:184:46: note: expanded from macro
      'Q_DECL_IMPORT'
#    define Q_DECL_IMPORT     __attribute__((visibility("default")))
                                             ^
config/gcc_hidden.h:6:13: note:
      previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from intl/locale/src/nsLocaleService.cpp:8:
In file included from /usr/local/include/qt5/QtCore/QLocale:1:
In file included from /usr/local/include/qt5/QtCore/qlocale.h:45:
In file included from /usr/local/include/qt5/QtCore/qvariant.h:48:
In file included from /usr/local/include/qt5/QtCore/qmetatype.h:52:
/usr/local/include/qt5/QtCore/qobjectdefs.h:455:7: error: visibility does not match
      previous declaration
class Q_CORE_EXPORT QMetaObject::Connection {
      ^
/usr/local/include/qt5/QtCore/qglobal.h:292:27: note: expanded from macro
      'Q_CORE_EXPORT'
#    define Q_CORE_EXPORT Q_DECL_IMPORT
                          ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:184:46: note: expanded from macro
      'Q_DECL_IMPORT'
#    define Q_DECL_IMPORT     __attribute__((visibility("default")))
                                             ^
config/gcc_hidden.h:6:13: note:
      previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from intl/locale/src/nsLocaleService.cpp:8:
In file included from /usr/local/include/qt5/QtCore/QLocale:1:
In file included from /usr/local/include/qt5/QtCore/qlocale.h:45:
In file included from /usr/local/include/qt5/QtCore/qvariant.h:49:
/usr/local/include/qt5/QtCore/qmap.h:173:8: error: visibility does not match
      previous declaration
struct Q_CORE_EXPORT QMapDataBase
       ^
/usr/local/include/qt5/QtCore/qglobal.h:292:27: note: expanded from macro
      'Q_CORE_EXPORT'
#    define Q_CORE_EXPORT Q_DECL_IMPORT
                          ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:184:46: note: expanded from macro
      'Q_DECL_IMPORT'
#    define Q_DECL_IMPORT     __attribute__((visibility("default")))
                                             ^
config/gcc_hidden.h:6:13: note:
      previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from intl/locale/src/nsLocaleService.cpp:8:
In file included from /usr/local/include/qt5/QtCore/QLocale:1:
In file included from /usr/local/include/qt5/QtCore/qlocale.h:45:
In file included from /usr/local/include/qt5/QtCore/qvariant.h:52:
In file included from /usr/local/include/qt5/QtCore/qstringlist.h:46:
In file included from /usr/local/include/qt5/QtCore/qdatastream.h:46:
In file included from /usr/local/include/qt5/QtCore/qiodevice.h:47:
/usr/local/include/qt5/QtCore/qobject.h:114:7: error: visibility does not match
      previous declaration
class Q_CORE_EXPORT QObject
      ^
/usr/local/include/qt5/QtCore/qglobal.h:292:27: note: expanded from macro
      'Q_CORE_EXPORT'
#    define Q_CORE_EXPORT Q_DECL_IMPORT
                          ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:184:46: note: expanded from macro
      'Q_DECL_IMPORT'
#    define Q_DECL_IMPORT     __attribute__((visibility("default")))
                                             ^
config/gcc_hidden.h:6:13: note:
      previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from intl/locale/src/nsLocaleService.cpp:8:
In file included from /usr/local/include/qt5/QtCore/QLocale:1:
In file included from /usr/local/include/qt5/QtCore/qlocale.h:45:
In file included from /usr/local/include/qt5/QtCore/qvariant.h:52:
In file included from /usr/local/include/qt5/QtCore/qstringlist.h:46:
In file included from /usr/local/include/qt5/QtCore/qdatastream.h:46:
In file included from /usr/local/include/qt5/QtCore/qiodevice.h:47:
/usr/local/include/qt5/QtCore/qobject.h:484:7: error: visibility does not match
      previous declaration
class Q_CORE_EXPORT QObjectUserData {
      ^
/usr/local/include/qt5/QtCore/qglobal.h:292:27: note: expanded from macro
      'Q_CORE_EXPORT'
#    define Q_CORE_EXPORT Q_DECL_IMPORT
                          ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:184:46: note: expanded from macro
      'Q_DECL_IMPORT'
#    define Q_DECL_IMPORT     __attribute__((visibility("default")))
                                             ^
config/gcc_hidden.h:6:13: note:
      previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from intl/locale/src/nsLocaleService.cpp:8:
In file included from /usr/local/include/qt5/QtCore/QLocale:1:
In file included from /usr/local/include/qt5/QtCore/qlocale.h:45:
In file included from /usr/local/include/qt5/QtCore/qvariant.h:52:
In file included from /usr/local/include/qt5/QtCore/qstringlist.h:46:
/usr/local/include/qt5/QtCore/qdatastream.h:68:7: error: visibility does not match
      previous declaration
class Q_CORE_EXPORT QDataStream
      ^
/usr/local/include/qt5/QtCore/qglobal.h:292:27: note: expanded from macro
      'Q_CORE_EXPORT'
#    define Q_CORE_EXPORT Q_DECL_IMPORT
                          ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:184:46: note: expanded from macro
      'Q_DECL_IMPORT'
#    define Q_DECL_IMPORT     __attribute__((visibility("default")))
                                             ^
config/gcc_hidden.h:6:13: note:
      previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from intl/locale/src/nsLocaleService.cpp:8:
In file included from /usr/local/include/qt5/QtCore/QLocale:1:
In file included from /usr/local/include/qt5/QtCore/qlocale.h:45:
In file included from /usr/local/include/qt5/QtCore/qvariant.h:52:
In file included from /usr/local/include/qt5/QtCore/qstringlist.h:48:
/usr/local/include/qt5/QtCore/qregexp.h:57:7: error: visibility does not match
      previous declaration
class Q_CORE_EXPORT QRegExp
      ^
/usr/local/include/qt5/QtCore/qglobal.h:292:27: note: expanded from macro
      'Q_CORE_EXPORT'
#    define Q_CORE_EXPORT Q_DECL_IMPORT
                          ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:184:46: note: expanded from macro
      'Q_DECL_IMPORT'
#    define Q_DECL_IMPORT     __attribute__((visibility("default")))
                                             ^
config/gcc_hidden.h:6:13: note:
      previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from intl/locale/src/nsLocaleService.cpp:8:
In file included from /usr/local/include/qt5/QtCore/QLocale:1:
In file included from /usr/local/include/qt5/QtCore/qlocale.h:45:
/usr/local/include/qt5/QtCore/qvariant.h:127:7: error: visibility does not match
      previous declaration
class Q_CORE_EXPORT QVariant
      ^
/usr/local/include/qt5/QtCore/qglobal.h:292:27: note: expanded from macro
      'Q_CORE_EXPORT'
#    define Q_CORE_EXPORT Q_DECL_IMPORT
                          ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:184:46: note: expanded from macro
      'Q_DECL_IMPORT'
#    define Q_DECL_IMPORT     __attribute__((visibility("default")))
                                             ^
config/gcc_hidden.h:6:13: note:
      previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from intl/locale/src/nsLocaleService.cpp:8:
In file included from /usr/local/include/qt5/QtCore/QLocale:1:
/usr/local/include/qt5/QtCore/qlocale.h:63:7: error: visibility does not match
      previous declaration
class Q_CORE_EXPORT QLocale
      ^
/usr/local/include/qt5/QtCore/qglobal.h:292:27: note: expanded from macro
      'Q_CORE_EXPORT'
#    define Q_CORE_EXPORT Q_DECL_IMPORT
                          ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:184:46: note: expanded from macro
      'Q_DECL_IMPORT'
#    define Q_DECL_IMPORT     __attribute__((visibility("default")))
                                             ^
config/gcc_hidden.h:6:13: note:
      previous attribute is here
#pragma GCC visibility push(hidden)
            ^
14 errors generated.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
I have this problem with clang 3.2 and Qt 5.0.2
Bug 1282866 dropped Qt support.
Status: REOPENED → RESOLVED
Closed: 10 years ago7 years ago
Resolution: --- → WONTFIX
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: