Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.0
-
None
-
34282d8ce (dev), 6a28e2066 (6.7), 8227b7a04 (tqtc/lts-6.5)
Description
i'm using statically linked qt and get the following duplicate symbol:
[2023-05-03T03:47:05.488Z] duplicate symbol 'NI_6_5_0::QIIOFHelper::initRead()' in: [2023-05-03T03:47:05.488Z] /Volumes/build/NIBuild/3rdparty/Qt/Qt-6.5.0-macx-clang-static/./plugins/imageformats/libqmacheif.a(qiiofhelpers.cpp.o) [2023-05-03T03:47:05.488Z] /Volumes/build/NIBuild/3rdparty/Qt/Qt-6.5.0-macx-clang-static/./plugins/imageformats/libqmacjp2.a(qiiofhelpers.cpp.o)
qiiofhelpers.cpp is directly compiled into both plugins, which works for dynamic linking, but is problematic when using static linking, as downstream code may use `-all_load` or the like to force all static library members to be loaded (unity builds may similar troubles)
Attachments
For Gerrit Dashboard: QTBUG-113349 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
481167,5 | Fix potential symbol clash in the IIOF helpers | dev | qt/qtimageformats | Status: MERGED | +2 | 0 |
555302,2 | Fix potential symbol clash in the IIOF helpers | 6.7 | qt/qtimageformats | Status: MERGED | +2 | 0 |
555456,2 | Fix potential symbol clash in the IIOF helpers | tqtc/lts-6.5 | qt/tqtc-qtimageformats | Status: MERGED | +2 | 0 |