[MacPorts] #59755: net-snmp 5.8 fails to address the correct SDK

MacPorts noreply at macports.org
Sun Nov 24 13:12:25 UTC 2019


#59755: net-snmp 5.8 fails to address the correct SDK
----------------------------+--------------------
 Reporter:  TP75            |      Owner:  (none)
     Type:  defect          |     Status:  new
 Priority:  Normal          |  Milestone:
Component:  ports           |    Version:
 Keywords:  net-snmp clang  |       Port:
----------------------------+--------------------
 This happened on macOS Majove 10.14.6 with MacPorts 2.6.2 after a fresh
 macOS install.

 The CommandLine tools are installed with 'xcode-select --install' but not
 XCode intentionally.

 {{{
      net-snmp @5.8 +ssl
 --->  Computing dependencies for net-snmp
 --->  Fetching distfiles for net-snmp
 --->  Verifying checksums for net-snmp
 --->  Extracting net-snmp
 --->  Applying patches to net-snmp
 --->  Configuring net-snmp
 --->  Building net-snmp
 Error: Failed to build net-snmp: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_net_net-snmp/net-snmp/main.log for
 details.
 Error: rev-upgrade failed: Error rebuilding net-snmp
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 }}}

 The excerpt from the a.m. log shows:

 {{{
 :info:build Running Mkbootstrap for default_store ()
 :info:build cp MakefileSubs.pm blib/lib/Bundle/MakefileSubs.pm
 :info:build chmod 644 "default_store.bs"
 :info:build "/opt/local/bin/perl5.28" -MExtUtils::Command::MM -e
 'cp_nonempty' -- default_store.bs
 ../blib/arch/auto/NetSNMP/default_store/default_store.bs 644
 :info:build cp default_store.pm ../blib/lib/NetSNMP/default_store.pm
 :info:build AutoSplitting ../blib/lib/NetSNMP/default_store.pm
 (../blib/lib/auto/NetSNMP/default_store)
 :info:build mv default_store.xsc default_store.c
 :info:build /usr/bin/clang -c   -I../../include -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch
 x86_64 -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64
 -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch
 x86_64 -Udarwin18 -Ddarwin18=darwin18 -I/opt/local/include
 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -I.
 -I/opt/local/include -fno-common -DPERL_DARWIN -mmacosx-version-min=10.14
 -pipe -Os
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
 -fno-strict-aliasing -fstack-protector-strong -I/opt/local/include
 -DPERL_USE_SAFE_PUTENV -Wformat -O3   -DVERSION=\"5.08\"
 -DXS_VERSION=\"5.08\"  "-I/opt/local/lib/perl5/5.28/darwin-thread-multi-
 2level/CORE"   default_store.c
 :info:build clang: warning: no such sysroot directory:
 '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk'
 [-Wmissing-sysroot]
 :info:build In file included from default_store.xs:6:
 :info:build /opt/local/lib/perl5/5.28/darwin-thread-multi-
 2level/CORE/perl.h:684:10: fatal error: 'sys/types.h' file not found
 :info:build #include <sys/types.h>
 :info:build          ^~~~~~~~~~~~~
 :info:build 1 error generated.
 :info:build make[2]: *** [default_store.o] Error 1
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_net_net-snmp/net-snmp/work/net-
 snmp-5.8/perl/default_store'
 :info:build make[1]: *** [subdirs] Error 2
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_net_net-snmp/net-snmp/work/net-
 snmp-5.8/perl'
 :info:build make: *** [perlmodules] Error 1
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_net_net-snmp/net-snmp/work/net-
 snmp-5.8'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_net_net-snmp/net-snmp/work/net-
 snmp-5.8" && /usr/bin/make -j4 -w all
 :info:build Exit code: 2
 :error:build Failed to build net-snmp: command execution failed
 :debug:build Error code: CHILDSTATUS 80031 2
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 :error:build See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_net_net-snmp/net-snmp/main.log for
 details.
 }}}

 Apparently the **clang** is addressing the non-existent XCode SDK and not
 the CommandLine tools SDK, I presume.

 ''-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk''

 Any advice?

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


More information about the macports-tickets mailing list