Bug 188398 - mail/thunderbird - clang fails to build with qt
Summary: mail/thunderbird - clang fails to build with qt
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-gecko (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-09 13:20 UTC by Volodymyr Kostyrko
Modified: 2016-01-17 15:03 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volodymyr Kostyrko 2014-04-09 13:20:00 UTC
Can this be caused by QT headers incompatibility with clang?

nsLocaleService.cpp
c++ -o nsLocaleService.o -c -I../../../dist/stl_wrappers -I../../../dist/system_wrappers -include /tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/config/gcc_hidden.h -DMOZ_GLUE_IN_PROGRAM -DMOZIL
LA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DSTATIC_EXPORTABLE_JS_API -DMOZ_THUNDERBIRD=1 -DNO_NSPR_10_SUPPORT
 -I/tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/intl/uconv/src  -I/tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/intl/locale/src -I. -I../../../dist/include  -I/usr/local/includ
e/nspr -I/usr/local/include/nss -I/usr/local/include/nss/nss -I/usr/local/include/qt4/QtNetwork -I/usr/local/include/qt4/QtOpenGL -I/usr/local/include/qt4/QtGui -DQT_SHARED -I/usr/local/include/qt4 -I/usr/loca
l/include/qt4/QtCore   -I/usr/local/include -I/usr/local/include    -fPIC -Qunused-arguments -isystem/usr/local/include -DLIBICONV_PLUG  -Qunused-arguments -Wall -Wpointer-arith -Woverloaded-virtual -Werror=re
turn-type -Wtype-limits -Wempty-body -Wsign-compare -Wno-invalid-offsetof -Wno-c++0x-extensions -Wno-extended-offsetof -Wno-unknown-warning-option -Wno-return-type-c-linkage -Wno-mismatched-tags -O2 -pipe -mar
ch=native -O3 -DLIBICONV_PLUG -fno-strict-aliasing -DLIBICONV_PLUG -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -std=gnu++0x -pipe  -DNDEBUG -DTRIMMED -O2
-O3 -fomit-frame-pointer  -Qunused-arguments -isystem/usr/local/include -DLIBICONV_PLUG  -DMOZILLA_CLIENT -include ../../../mozilla-config.h -MD -MP -MF .deps/nsLocaleService.o.pp  /tmp/ports/usr/ports/mail/th
underbird/work/comm-esr24/mozilla/intl/locale/src/nsLocaleService.cpp
In file included from /tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/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")))
                                         ^
/tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/config/gcc_hidden.h:6:13: note: previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from /tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/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")))
                                         ^
/tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/config/gcc_hidden.h:6:13: note: previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from /tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/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")))
                                         ^
/tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/config/gcc_hidden.h:6:13: note: previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from /tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/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")))
                                         ^
/tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/config/gcc_hidden.h:6:13: note: previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from /tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/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")))
                                         ^
/tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/config/gcc_hidden.h:6:13: note: previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from /tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/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")))
                                         ^
/tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/config/gcc_hidden.h:6:13: note: previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from /tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/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")))
                                         ^
/tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/config/gcc_hidden.h:6:13: note: previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from /tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/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")))
                                         ^
/tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/config/gcc_hidden.h:6:13: note: previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from /tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/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")))
                                         ^
/tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/config/gcc_hidden.h:6:13: note: previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from /tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/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:
/usr/local/include/qt4/QtCore/qmetatype.h:256:5: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
    register int id = qMetaTypeId<T>();
    ^~~~~~~~~
In file included from /tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/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")))
                                         ^
/tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/config/gcc_hidden.h:6:13: note: previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from /tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/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")))
                                         ^
/tmp/ports/usr/ports/mail/thunderbird/work/comm-esr24/mozilla/config/gcc_hidden.h:6:13: note: previous attribute is here
#pragma GCC visibility push(hidden)
            ^
1 warning and 11 errors generated.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-04-09 13:20:06 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gecko

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Toni Ballesta 2014-04-27 15:40:01 UTC
Hello Volodymyr.

Recompile cleanly, before, the run-dependencies from Thunderbird. Then,
retry.

Print and paste the version of Thunderbird and the port configuration
options.
Comment 3 Volodymyr Kostyrko 2014-05-13 14:41:29 UTC
Hello.

Currently compiling thunderbird-24.5.0.

# This file is auto-generated by 'make config'.
# Options for thunderbird-24.5.0
_OPTIONS_READ=thunderbird-24.5.0
_FILE_COMPLETE_OPTIONS_LIST=DBUS DEBUG ENIGMAIL GCONF GIO GNOMEUI 
GNOMEVFS2 GSTREAMER LIBPROXY LIGHTNING LOGGING OPTIMIZED_CFLAGS PGO 
PROFILE TEST ALSA PULSEAUDIO
OPTIONS_FILE_SET+=DBUS
OPTIONS_FILE_UNSET+=DEBUG
OPTIONS_FILE_UNSET+=ENIGMAIL
OPTIONS_FILE_UNSET+=GCONF
OPTIONS_FILE_UNSET+=GIO
OPTIONS_FILE_UNSET+=GNOMEUI
OPTIONS_FILE_UNSET+=GNOMEVFS2
OPTIONS_FILE_SET+=GSTREAMER
OPTIONS_FILE_SET+=LIBPROXY
OPTIONS_FILE_UNSET+=LIGHTNING
OPTIONS_FILE_SET+=LOGGING
OPTIONS_FILE_SET+=OPTIMIZED_CFLAGS
OPTIONS_FILE_UNSET+=PGO
OPTIONS_FILE_UNSET+=PROFILE
OPTIONS_FILE_UNSET+=TEST
OPTIONS_FILE_SET+=ALSA
OPTIONS_FILE_UNSET+=PULSEAUDIO

-- 
Sphinx of black quartz, judge my vow.