[MacPorts] #60079: Conflicts in the qt5-qtbase headers?

MacPorts noreply at macports.org
Wed Feb 12 13:53:51 UTC 2020


#60079: Conflicts in the qt5-qtbase headers?
------------------------+------------------------
 Reporter:  mouse07410  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:  qt5-qtbase
------------------------+------------------------
 MacOS Catalina 10.15.3, Xcode-11.3.1, everything current Macports-wise.

 Attempting to build {{{SleepyHead}}} package, which uses Qt5. Compilation
 fails, indicating some conflict between the types in the header files. I
 wasn't able to trace it to the package source that provokes it:
 {{{
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
 -c -pipe -stdlib=libc++ -O2 -std=gnu++11  -arch x86_64 -isysroot
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
 -mmacosx-version-min=10.11 -frtti -Wall -Wextra -fPIC
 -DQT_DEPRECATED_WARNINGS -DLOCK_RESMED_SESSIONS -DQT_NO_DEBUG
 -DQT_PRINTSUPPORT_LIB -DQT_HELP_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB
 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_SERIALPORT_LIB
 -DQT_SQL_LIB -DQT_CORE_LIB -I../../sleepyhead-code/sleepyhead -I.
 -I/opt/local/libexec/qt5/lib/QtPrintSupport.framework/Headers
 -I/opt/local/libexec/qt5/lib/QtHelp.framework/Headers
 -I/opt/local/libexec/qt5/lib/QtOpenGL.framework/Headers
 -I/opt/local/libexec/qt5/lib/QtWidgets.framework/Headers
 -I/opt/local/libexec/qt5/lib/QtGui.framework/Headers
 -I/opt/local/libexec/qt5/lib/QtNetwork.framework/Headers
 -I/opt/local/libexec/qt5/lib/QtXml.framework/Headers
 -I/opt/local/libexec/qt5/lib/QtSerialPort.framework/Headers
 -I/opt/local/libexec/qt5/lib/QtSql.framework/Headers
 -I/opt/local/libexec/qt5/lib/QtCore.framework/Headers -I.
 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers
 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/AGL.framework/Headers
 -I. -I/opt/local/libexec/qt5/mkspecs/macx-clang
 -F/opt/local/libexec/qt5/lib -o daily.o ../../sleepyhead-
 code/sleepyhead/daily.cpp
 In file included from ../../sleepyhead-code/sleepyhead/daily.cpp:26:
 In file included from ../../sleepyhead-code/sleepyhead/daily.h:25:
 In file included from ../../sleepyhead-
 code/sleepyhead/SleepLib/profiles.h:18:
 ../../sleepyhead-code/sleepyhead/SleepLib/machine.h:146:40: warning:
 'sprintf' is
       deprecated: Use asprintf(), arg() or QTextStream instead
 [-Wdeprecated-declarations]
     QString hexid() { return QString().sprintf("%08lx", m_id); }
 . . . . .
 In file included from ../../sleepyhead-code/sleepyhead/daily.cpp:9:
 In file included from
 /opt/local/libexec/qt5/lib/QtGui.framework/Headers/QTextCharFormat:1:
 In file included from
 /opt/local/libexec/qt5/lib/QtGui.framework/Headers/qtextformat.h:43:
 In file included from
 /opt/local/libexec/qt5/lib/QtGui.framework/Headers/qtguiglobal.h:43:
 /opt/local/libexec/qt5/lib/QtCore.framework/Headers/qglobal.h:1050:9:
 error: assigning to
       'QDebug::Stream *' from incompatible type 'long'
     t = std::forward<U>(newValue);
         ^~~~~~~~~~~~~~~~~~~~~~~~~
 /opt/local/libexec/qt5/lib/QtCore.framework/Headers/qdebug.h:118:46: note:
 in instantiation
       of function template specialization 'qExchange<QDebug::Stream *,
 long>' requested here
     QDebug(QDebug &&other) noexcept : stream{qExchange(other.stream,
 nullptr)} {}
                                              ^
 7 warnings and 1 error generated.
 make[1]: *** [daily.o] Error 1
 make: *** [sub-sleepyhead-make_first-ordered] Error 2
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/60079>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list