[MacPorts] #62991: m4 @1.4.19+universal: configure: error: Cannot find a type to use in place of socklen_t

MacPorts noreply at macports.org
Thu Aug 5 03:09:09 UTC 2021


#62991: m4 @1.4.19+universal: configure: error: Cannot find a type to use in place
of socklen_t
---------------------------+--------------------------
  Reporter:  FaradayLight  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  arm64 bigsur
      Port:  m4            |
---------------------------+--------------------------

Comment (by kencu):

 Replying to [comment:31 ShadSterling]:
 > Just ran in to this error trying to upgrade `diffutils @3.7_0+universal
 (active)`.  I don't think it has been reported on tons of other ports,
 this was the only result in my search for `socklen_t` that was less than 3
 years old.  Is this the same problem affecting multiple ports that should
 all be collected in this ticket, or should I open a separate ticket for
 diffutils?

 no need to open up another ticket for diffutils. Anything that triggers a
 build of {{{m4 +universal}}} will cause this.

 Until someone spends the time to sort out a proper universal build for m4
 that works on all platforms, the simple workaround is to just install m4
 first:
 {{{
 sudo port install m4
 }}}
 and then install the port you want, eg diffutils:
 {{{
 sudo port -v install diffutils +universal
 }}}
 and it should work just fine.

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


More information about the macports-tickets mailing list