[MacPorts] #47168: wireshark build can not detect xcode 10.10 sdk
#47168: wireshark build can not detect xcode 10.10 sdk -----------------------+-------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: -----------------------+-------------------------------- {{{ sudo xcode-select -s /xcode_6_2/Xcode.app (tried also 6_1_1 and 6_3_beta3) sudo xcodebuild -license sudo port sync sudo port selfupdate sudo port upgrade outdated sudo port uninstall wireshark sudo port clean wireshark sudo port install wireshark }}} Error: Failed to configure wireshark, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_wireshark/wireshark/work/wireshark-1.12.4/config.log (log file attached) :info:configure checking whether we can build for OS X 10.10... no :info:configure configure: error: We couldn't find the SDK for OS X 10.10 xcode and command line tools installed perfectly, any other target using 10.10 sdk builds fine -- Ticket URL: <https://trac.macports.org/ticket/47168> MacPorts <https://www.macports.org/> Ports system for OS X
#47168: wireshark build can not detect xcode 10.10 sdk ------------------------+------------------------------ Reporter: hofione@… | Owner: opendarwin.org@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: wireshark | ------------------------+------------------------------ Changes (by mf2k@…): * owner: macports-tickets@… => opendarwin.org@… * port: => wireshark Comment: In the future, please fill in the Port field and Cc the port maintainers ({{{port info --maintainers wireshark}}}), if any. -- Ticket URL: <https://trac.macports.org/ticket/47168#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#47168: wireshark build can not detect xcode 10.10 sdk ------------------------+------------------------------ Reporter: hofione@… | Owner: opendarwin.org@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: wireshark | ------------------------+------------------------------ Description changed by mf2k@…: Old description:
{{{ sudo xcode-select -s /xcode_6_2/Xcode.app (tried also 6_1_1 and 6_3_beta3) sudo xcodebuild -license
sudo port sync sudo port selfupdate sudo port upgrade outdated sudo port uninstall wireshark sudo port clean wireshark
sudo port install wireshark }}}
Error: Failed to configure wireshark, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_wireshark/wireshark/work/wireshark-1.12.4/config.log (log file attached)
:info:configure checking whether we can build for OS X 10.10... no :info:configure configure: error: We couldn't find the SDK for OS X 10.10
xcode and command line tools installed perfectly, any other target using 10.10 sdk builds fine
New description: {{{ sudo xcode-select -s /xcode_6_2/Xcode.app (tried also 6_1_1 and 6_3_beta3) sudo xcodebuild -license sudo port sync sudo port selfupdate sudo port upgrade outdated sudo port uninstall wireshark sudo port clean wireshark sudo port install wireshark }}} {{{ Error: Failed to configure wireshark, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_wireshark/wireshark/work/wireshark-1.12.4/config.log (log file attached) :info:configure checking whether we can build for OS X 10.10... no :info:configure configure: error: We couldn't find the SDK for OS X 10.10 }}} xcode and command line tools installed perfectly, any other target using 10.10 sdk builds fine -- -- Ticket URL: <https://trac.macports.org/ticket/47168#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#47168: wireshark build can not detect xcode 10.10 sdk ------------------------+------------------------------ Reporter: hofione@… | Owner: opendarwin.org@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: wireshark | ------------------------+------------------------------ Changes (by ryandesign@…): * cc: hsivank@… (added) -- Ticket URL: <https://trac.macports.org/ticket/47168#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#47168: wireshark build can not detect xcode 10.10 sdk ------------------------+------------------------------ Reporter: hofione@… | Owner: opendarwin.org@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: wireshark | ------------------------+------------------------------ Comment (by ryandesign@…): Looks like they're hardcoding the locations in which to look for the SDKs and not taking an `xcode-select`ed path into consideration. From configure.ac: {{{ for i in /Developer/SDKs \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs \ /Library/Developer/CommandLineTools/SDKs do if test -d "$i"/"MacOSX$deploy_target.sdk" then SDKPATH="$i"/"MacOSX$deploy_target.sdk" break fi done if test -z "$SDKPATH" then AC_MSG_RESULT(no) AC_MSG_ERROR([We couldn't find the SDK for OS X $deploy_target]) fi AC_MSG_RESULT(yes) }}} -- Ticket URL: <https://trac.macports.org/ticket/47168#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#47168: wireshark build can not detect xcode 10.10 sdk ------------------------+------------------------------ Reporter: hofione@… | Owner: opendarwin.org@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: wireshark | ------------------------+------------------------------ Comment (by md14-macports@…): I've attached a patch to fix this problem. I ran into this issue after installing Xcode 7.0 on OS X 10.10, noticing wireshark didn't build, installing Xcode 6.4, and using `sudo xcode-select -s` to switch to Xcode 6.4. -- Ticket URL: <https://trac.macports.org/ticket/47168#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#47168: wireshark build can not detect xcode 10.10 sdk ------------------------+------------------------------ Reporter: hofione@… | Owner: opendarwin.org@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: wireshark | ------------------------+------------------------------ Comment (by ricci@…): Hmm, the attached patch didn't work for me, looks like w/ Xcode 7.0 on 10.10.5 the only SDK installed (by default) is /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk which doesn't work as configure is looking for the 10.10 SDK. -- Ticket URL: <https://trac.macports.org/ticket/47168#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#47168: wireshark build can not detect xcode 10.10 sdk ------------------------+------------------------------ Reporter: hofione@… | Owner: opendarwin.org@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: wireshark | ------------------------+------------------------------ Comment (by md14-macports@…): Replying to [comment:7 ricci@…]:
the attached patch didn't work for me, looks like w/ Xcode 7.0 on 10.10.5 the only SDK installed ... is MacOSX10.11.sdk
Yes, I'm also using OS X 10.10.5 with Xcode 7.0 installed. In order to build wireshark with the patch, first: 1. Download and install Xcode 6.4 from [[https://developer.apple.com/downloads/|Downloads for Apple Developers]]. Install Xcode 6.4 in an alternate location, for example, `/Applications/Xcode-6.4/Xcode.app`. 1. Download and install ''Command Line Tools (OX X 10.10) for Xcode 6.4'' from the same place. 1. Switch to Xcode6.4. {{{ $ sudo xcode-select -s /PATH/TO/XCODE64/Xcode.app }}} -- Ticket URL: <https://trac.macports.org/ticket/47168#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#47168: wireshark build can not detect xcode 10.10 sdk ------------------------+------------------------------ Reporter: hofione@… | Owner: opendarwin.org@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: wireshark | ------------------------+------------------------------ Comment (by raimue@…): Apparently it is correct Apple only ships the 10.11 SDK with Xcode 7 ([https://lists.macosforge.org/pipermail/macports- users/2015-September/039329.html macports-users]). This problem can be avoided by disabling the deployment target completely. As we build our binary archives only for a single version of OS X it should not be necessary. {{{ Index: Portfile =================================================================== --- Portfile (revision 140341) +++ Portfile (working copy) @@ -43,6 +43,7 @@ port:zlib configure.args \ + --disable-osx-deploy-target \ --without-libsmi \ --disable-usr-local \ --without-adns \ }}} -- Ticket URL: <https://trac.macports.org/ticket/47168#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#47168: wireshark build can not detect xcode 10.10 sdk ------------------------+------------------------------ Reporter: hofione@… | Owner: opendarwin.org@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: wireshark | ------------------------+------------------------------ Comment (by virtan@…): This should help {{{ sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk }}} -- Ticket URL: <https://trac.macports.org/ticket/47168#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X
#47168: wireshark build can not detect xcode 10.10 sdk ------------------------+------------------------------ Reporter: hofione@… | Owner: opendarwin.org@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: wireshark | ------------------------+------------------------------ Comment (by md14-macports@…): Replying to [comment:9 raimue@…]:
This problem can be avoided by disabling the deployment target completely.
A much better solution! Your patch works for me. To test, I did a `sudo xcode-select -r`, removed Xcode 6.4, and then installed wireshark. I've replaced the `Portfile.diff` attachment with your patch. (The `patch- configure.xcode.diff` attachment is no longer needed.) -- Ticket URL: <https://trac.macports.org/ticket/47168#comment:13> MacPorts <https://www.macports.org/> Ports system for OS X
#47168: wireshark build can not detect xcode 10.10 sdk ------------------------+------------------------------ Reporter: hofione@… | Owner: opendarwin.org@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: wireshark | ------------------------+------------------------------ Comment (by ricci@…): The addition of '--disable-osx-deploy-target' as proposed raimue@ seems to work for me as well (Xcode 7 on OS X 10.10.5). It will get added once svn is back up. -- Ticket URL: <https://trac.macports.org/ticket/47168#comment:15> MacPorts <https://www.macports.org/> Ports system for OS X
#47168: wireshark build can not detect xcode 10.10 sdk ------------------------+------------------------------ Reporter: hofione@… | Owner: opendarwin.org@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: fixed | Keywords: Port: wireshark | ------------------------+------------------------------ Changes (by ricci@…): * status: new => closed * resolution: => fixed Comment: resolved in r141357, at least on 10.10 with Xcode 7. Please reopen if there's a combo that doesn't work. -- Ticket URL: <https://trac.macports.org/ticket/47168#comment:16> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts