[MacPorts] #61754: graphviz-gui @2.40.1: error: implicit declaration of function 'sysctlbyname' is invalid in C99

MacPorts noreply at macports.org
Thu Dec 10 18:01:56 UTC 2020


#61754: graphviz-gui @2.40.1: error: implicit declaration of function
'sysctlbyname' is invalid in C99
---------------------------+-----------------------------
  Reporter:  jptrainor     |      Owner:  ryandesign
      Type:  defect        |     Status:  closed
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.6.4
Resolution:  fixed         |   Keywords:  bigsur catalina
      Port:  graphviz-gui  |
---------------------------+-----------------------------

Comment (by jptrainor):

 Executing the failed command (cut from the log) and executing it manually
 (without sudo) works, then re-executing the install succeeds. The cause of
 this is some sort of security problem that is unique to MacOS 11.

 Here is exactly what I did. It's repeatable on my system.

 {{{
 # fresh install fails
 $ sudo port install graphviz-gui

 # execute the failed command (cut from the log), this succeeds
 $ cd
 "/Volumes/ExtStorage/local/var/macports/build/_Volumes_ExtStorage_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz
 /graphviz-gui/work/graphviz-2.40.1/macosx" && /usr/bin/xcodebuild
 -UseNewBuildSystem=NO  -alltargets -configuration Release build
 INSTALL_PATH=/Applications/MacPorts
 OBJROOT="/Volumes/ExtStorage/local/var/macports/build/_Volumes_ExtStorage_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz
 /graphviz-gui/work/graphviz-2.40.1/macosx/build/"
 SYMROOT="/Volumes/ExtStorage/local/var/macports/build/_Volumes_ExtStorage_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz
 /graphviz-gui/work/graphviz-2.40.1/macosx/build/"
 MACOSX_DEPLOYMENT_TARGET=11.0 ARCHS=x86_64
 SDKROOT="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk"
 GCC_VERSION=com.apple.compilers.llvm.clang.1_0 CLANG_CXX_LIBRARY="libc++"
 PREFIX=/opt/local

 # change out of the directory that the above command leaves the shell in
 $ cd

 # re-execute the install, this succeeds
 $ sudo port install graphviz-gui
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/61754#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list