[MacPorts] #62419: elftoolchain @0.7.1: error: implicit declaration of function 'htole32' is invalid in C99

MacPorts noreply at macports.org
Fri Jul 2 20:32:21 UTC 2021


#62419: elftoolchain @0.7.1: error: implicit declaration of function 'htole32' is
invalid in C99
---------------------------+--------------------------------------
  Reporter:  cooljeanius   |      Owner:  raimue
      Type:  defect        |     Status:  closed
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.6.4
Resolution:  fixed         |   Keywords:  bigsur catalina haspatch
      Port:  elftoolchain  |
---------------------------+--------------------------------------
Changes (by ryandesign):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"195adb123b397d5ae850d91105f668aff83e8161/macports-ports"
 195adb123b397d5ae850d91105f668aff83e8161/macports-ports] (master):
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="195adb123b397d5ae850d91105f668aff83e8161"
 elftoolchain: Fix implicit func decls; other fixes

 Fix implicit declaration of function htole32 which caused build failure
 on Xcode 12 and later.

 Closes: https://trac.macports.org/ticket/62419

 Remove unneeded additions of defines of htobe32 in archive.c and write.c
 because it's already defined in _elftc.h. Use makefile portgroup to
 simplify using the right compiler and flags. Copy build.args to
 destroot.args programmatically to avoid code duplication. Don't need to
 set destroot.target since it's already set by base. Remove unneeded
 addition of CFLAGS and LDFLAGS in elftoolchain.prog.mk since the
 makefile portgroup already sets them. Patch make-toolchain-version to no
 longer use svnversion or git describe since we're not using a working
 copy or clone and since those utilities might not be installed. Create
 relative symlinks rather than absolute. Fix erroneously formatted
 warning in elftoolchain.tex.mk by changing echo -n to printf. Specify
 full sourceforge path to avoid redirects and fetch failures. Add size to
 checksums. Add modeline.
 }}}

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


More information about the macports-tickets mailing list