[MacPorts] #43746: qt4-mac @4.8.6: kCFURLIsHiddenKey and CFURLCopyResourcePropertyForKey not declared in this scope
#43746: qt4-mac @4.8.6: kCFURLIsHiddenKey and CFURLCopyResourcePropertyForKey not declared in this scope --------------------------+------------------------- Reporter: ryandesign@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: leopard | Port: qt4-mac --------------------------+------------------------- qt4-mac 4.8.5 installed successfully on Leopard, but 4.8.6 fails with: {{{ dialogs/qfiledialog_mac.mm: In function ‘BOOL -[QNSOpenSavePanelDelegate isHiddenFile:isDir:](QNSOpenSavePanelDelegate*, objc_selector*, NSString*, BOOL)’: dialogs/qfiledialog_mac.mm:300: error: ‘kCFURLIsHiddenKey’ was not declared in this scope dialogs/qfiledialog_mac.mm:300: error: ‘CFURLCopyResourcePropertyForKey’ was not declared in this scope make[1]: *** [.obj/release-shared/qfiledialog_mac.o] Error 1 }}} Indeed [https://developer.apple.com/library/mac/documentation/corefoundation/Referen... Apple documentation shows] that kCFURLIsHiddenKey and CFURLCopyResourcePropertyForKey are not available until Mac OS X 10.6. -- Ticket URL: <https://trac.macports.org/ticket/43746> MacPorts <http://www.macports.org/> Ports system for OS X
#43746: qt4-mac @4.8.6: kCFURLIsHiddenKey and CFURLCopyResourcePropertyForKey not declared in this scope ---------------------------+------------------------- Reporter: ryandesign@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: leopard Port: qt4-mac | ---------------------------+------------------------- Comment (by frederic.devernay@…): would that do the trick? https://qt.gitorious.org/qt/mumble-developers- qt/commit/0a6c959e31635ba779c6a07e4b0d176493afd9c4?diffmode=sidebyside -- Ticket URL: <https://trac.macports.org/ticket/43746#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#43746: qt4-mac @4.8.6: kCFURLIsHiddenKey and CFURLCopyResourcePropertyForKey not declared in this scope ---------------------------+------------------------- Reporter: ryandesign@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: leopard Port: qt4-mac | ---------------------------+------------------------- Comment (by michaelld@…): Those patches will likely do the trick. Can somebody with OSX 10.5 try the patches out (please)? -- Ticket URL: <https://trac.macports.org/ticket/43746#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#43746: qt4-mac @4.8.6: kCFURLIsHiddenKey and CFURLCopyResourcePropertyForKey not declared in this scope ---------------------------+------------------------------ Reporter: ryandesign@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: leopard haspatch Port: qt4-mac | ---------------------------+------------------------------ Changes (by ryandesign@…): * keywords: leopard => leopard haspatch Comment: Yes, that works. The second part of the patch seemed to be already applied so only the first part was needed. -- Ticket URL: <https://trac.macports.org/ticket/43746#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#43746: qt4-mac @4.8.6: kCFURLIsHiddenKey and CFURLCopyResourcePropertyForKey not declared in this scope ---------------------------+------------------------------ Reporter: ryandesign@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: leopard haspatch Port: qt4-mac | ---------------------------+------------------------------ Changes (by ryandesign@…): * cc: trg818@… (added) Comment: Has duplicate #43948. -- Ticket URL: <https://trac.macports.org/ticket/43746#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#43746: qt4-mac @4.8.6: kCFURLIsHiddenKey and CFURLCopyResourcePropertyForKey not declared in this scope ---------------------------+------------------------------ Reporter: ryandesign@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: leopard haspatch Port: qt4-mac | ---------------------------+------------------------------ Comment (by wtogami@…): https://trac.macports.org/attachment/ticket/43746/qt4-mac.diff This proposed patch successfully fixed the build on OSX 10.6.8 with /usr/bin/g++-4.2 -c -pipe -Os -Xarch_i386 -mmacosx-version-min=10.5 Please add the patch. -- Ticket URL: <https://trac.macports.org/ticket/43746#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#43746: qt4-mac @4.8.6: kCFURLIsHiddenKey and CFURLCopyResourcePropertyForKey not declared in this scope ---------------------------+------------------------------ Reporter: ryandesign@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: leopard haspatch Port: qt4-mac | ---------------------------+------------------------------ Comment (by dgonyier@…): Replying to [comment:6 wtogami@…]:
[attachment:ticket:43746:qt4-mac.diff This proposed patch] successfully fixed the build on OSX 10.6.8 with `/usr/bin/g++-4.2 -c -pipe -Os -Xarch_i386 -mmacosx-version-min=10.5`
Please add the patch.
I'm seeing similar compiler issues on a PowerBook 4 runing OS X 10.5.8. I assume this patch will need the -Xarch argument modified to handle PPC systems? -- Ticket URL: <https://trac.macports.org/ticket/43746#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts