[MacPorts] #52203: 10.12 SDK breaks qt5-qtconnectivity build

MacPorts noreply at macports.org
Sat Sep 10 18:05:15 CEST 2016


#52203: 10.12 SDK breaks qt5-qtconnectivity build
-----------------------------------+--------------------------------
 Reporter:  howarth.at.macports@…  |      Owner:  macports-tickets@…
     Type:  defect                 |     Status:  new
 Priority:  Normal                 |  Milestone:
Component:  ports                  |    Version:  2.3.4
 Keywords:                         |       Port:  qt5-qtconnectivity
-----------------------------------+--------------------------------
 The 10.12 SDK breaks the build of qt5-qtconnectivity under Xcode 8 on
 10.11 with the error...

 {{{
 /usr/bin/clang++ -c -pipe -stdlib=libc++ -stdlib=libc++ -O2 -std=c++1z
 -isysroot
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
 -mmacosx-version-min=10.11 -fvisibility=hidden -fvisibility-inlines-hidden
 -fno-exceptions -Wall -W -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV
 -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_OSX_BLUETOOTH -DQT_BUILD_BLUETOOTH_LIB
 -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS
 -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS
 -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS
 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB
 -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I. -I../../include
 -I../../include/QtBluetooth -I../../include/QtBluetooth/5.6.1
 -I../../include/QtBluetooth/5.6.1/QtBluetooth
 -I/opt/local/libexec/qt5/lib/QtCore.framework/Headers
 -I/opt/local/libexec/qt5/lib/QtConcurrent.framework/Headers -I.moc
 -I/opt/local/libexec/qt5/mkspecs/macx-clang -F/opt/local/libexec/qt5/lib
 -o .obj/osxbtutility.o osx/osxbtutility.mm
 osx/osxbtutility.mm:171:14: error: property 'data' cannot be found in
 forward class object 'CBUUID'
     if (uuid.data.length == 2) {
         ~~~~ ^
 osx/osxbtutility_p.h:58:8: note: forward declaration of class here
 @class CBUUID;
        ^
 osx/osxbtutility.mm:174:66: error: property 'data' cannot be found in
 forward class object 'CBUUID'
         const uchar *const src = static_cast<const uchar
 *>(uuid.data.bytes);
                                                             ~~~~ ^
 osx/osxbtutility_p.h:58:8: note: forward declaration of class here
 @class CBUUID;
        ^
 osx/osxbtutility.mm:176:21: error: property 'data' cannot be found in
 forward class object 'CBUUID'
     } else if (uuid.data.length == 16) {
                ~~~~ ^
 osx/osxbtutility_p.h:58:8: note: forward declaration of class here
 @class CBUUID;
        ^
 osx/osxbtutility.mm:178:71: error: property 'data' cannot be found in
 forward class object 'CBUUID'
         const quint8 *const source = static_cast<const quint8
 *>(uuid.data.bytes);
                                                                  ~~~~ ^
 osx/osxbtutility_p.h:58:8: note: forward declaration of class here
 @class CBUUID;
        ^
 osx/osxbtutility.mm:184:36: error: property 'data' cannot be found in
 forward class object 'CBUUID'
                            << uuid.data.length << " bytes length";
                               ~~~~ ^
 osx/osxbtutility_p.h:58:8: note: forward declaration of class here
 @class CBUUID;
        ^
 osx/osxbtutility.mm:188:14: error: property 'data' cannot be found in
 forward class object 'CBUUID'
     if (uuid.data.length != 16) // TODO: warning?
         ~~~~ ^
 osx/osxbtutility_p.h:58:8: note: forward declaration of class here
 @class CBUUID;
        ^
 osx/osxbtutility.mm:213:41: warning: receiver 'CBUUID' is a forward class
 and corresponding @interface may not exist [-Wreceiver-forward-class]
     ObjCStrongReference<CBUUID> cbUuid([CBUUID UUIDWithCFUUID:cfUuid],
 true); //true == retain.
                                         ^~~~~~
 osx/osxbtutility_p.h:58:8: note: forward declaration of class here
 @class CBUUID;
        ^
 osx/osxbtutility.mm:213:48: warning: class method '+UUIDWithCFUUID:' not
 found (return type defaults to 'id') [-Wobjc-method-access]
     ObjCStrongReference<CBUUID> cbUuid([CBUUID UUIDWithCFUUID:cfUuid],
 true); //true == retain.
                                                ^~~~~~~~~~~~~~
 2 warnings and 6 errors generated.
 make: *** [.obj/osxbtutility.o] Error 1
 }}}

 Substituting the 10.11 SDK from Xcode 7.3.1 eliminates the compile
 failure.

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


More information about the macports-tickets mailing list