[MacPorts] #72577: jq 1.8.0 fails to build: version.h: error: unknown type name 'x23define'

MacPorts noreply at macports.org
Sat Jun 7 23:36:55 UTC 2025


#72577: jq 1.8.0 fails to build: version.h: error: unknown type name 'x23define'
---------------------------+--------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.10.7
Resolution:                |   Keywords:
      Port:  jq            |
---------------------------+--------------------

Comment (by ewenmcneill):

 Having just edited the Makefile by hand to match the fix in
 https://github.com/jqlang/jq/pull/3336, I can confirm that's sufficient to
 get ''jq'' building again.  (The underlying issue seems to be that newer
 sed versions support ''\xNN'' hex encoded constants (in this case
 ''\x23''), but the sed in older macOS does not; they switched to using
 ''printf'' with an octal encoding (''\043'') instead to generate the
 ''#define'' line.)

 Ewen

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


More information about the macports-tickets mailing list