[MacPorts] #70755: lrzsz @0.12.20_4: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int

MacPorts noreply at macports.org
Wed Dec 4 19:04:31 UTC 2024


#70755: lrzsz @0.12.20_4: error: type specifier missing, defaults to 'int'; ISO C99
and later do not support implicit int
------------------------+---------------------
  Reporter:  gounselor  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.10.1
Resolution:             |   Keywords:  sequoia
      Port:  lrzsz      |
------------------------+---------------------

Comment (by jptrainor):

 The root cause of the problem is a clang 16 change that modifies the
 default behavior of implicit declarations:
 https://releases.llvm.org/16.0.0/tools/clang/docs/ReleaseNotes.html
 #potentially-breaking-changes

 The lrzsz package is noted as working in brew for Sequoia (Apple cpu):
 https://formulae.brew.sh/formula/lrzsz

 The workaround implemented by brew appears to be this:
 {{{
     # Workaround for newer Clang
     ENV.append_to_cflags "-Wno-implicit-int" if
 DevelopmentTools.clang_build_version >= 1403
 }}}

 ... found in:
 https://github.com/Homebrew/homebrew-
 core/blob/ad8560c937df094d7456fe186dbc155635194099/Formula/l/lrzsz.rb

 I haven't yet investigated how/where to add this to MacPorts. I don't have
 any MacPorts development experience. If anyone knows exactly where to add
 this, please chime in. Thanks!

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


More information about the macports-tickets mailing list