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

MacPorts noreply at macports.org
Wed Jun 4 16:49:31 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
 Keywords:                |       Port:  jq
--------------------------+--------------------
 {{{
 depbase=`echo src/main.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
         /opt/local/bin/gcc-mp-14 -DPACKAGE_NAME=\"jq\"
 -DPACKAGE_TARNAME=\"jq\" -DPACKAGE_VERSION=\"1.8.0\"
 -DPACKAGE_STRING=\"jq\ 1.8.0\"
 -DPACKAGE_BUGREPORT=\"https://github.com/jqlang/jq/issues\"
 -DPACKAGE_URL=\"https://jqlang.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1
 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1
 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1
 -DHAVE_WCHAR_H=1 -DSTDC_HEADERS=1 -D_ALL_SOURCE=1 -D_DARWIN_C_SOURCE=1
 -D_GNU_SOURCE=1 -D_HPUX_ALT_XOPEN_SOCKET_API=1 -D_NETBSD_SOURCE=1
 -D_OPENBSD_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1
 -D__STDC_WANT_IEC_60559_ATTRIBS_EXT__=1
 -D__STDC_WANT_IEC_60559_BFP_EXT__=1 -D__STDC_WANT_IEC_60559_DFP_EXT__=1
 -D__STDC_WANT_IEC_60559_FUNCS_EXT__=1
 -D__STDC_WANT_IEC_60559_TYPES_EXT__=1 -D__STDC_WANT_LIB_EXT2__=1
 -D__STDC_WANT_MATH_SPEC_FUNCS__=1 -D_TANDEM_SOURCE=1 -D__EXTENSIONS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-DHAVE_NEXTAFTER=1 -DHAVE_NEXTTOWARD=1 -DHAVE_POW=1
 -DHAVE_REMAINDER=1 -DHAVE_RINT=1 -DHAVE_ROUND=1 -DHAVE_SCALB=1
 -DHAVE_SCALBLN=1 -DHAVE_SIGNIFICAND=1 -DHAVE_SCALBN=1 -DHAVE_ILOGB=1
 -DHAVE_SIN=1 -DHAVE_SINH=1 -DHAVE_SQRT=1 -DHAVE_TAN=1 -DHAVE_TANH=1
 -DHAVE_TGAMMA=1 -DHAVE_TRUNC=1 -DHAVE_Y0=1 -DHAVE_Y1=1 -DHAVE_YN=1
 -DHAVE___THREAD=1 -DIEEE_MC68k=1 -DHAVE_LIBONIG=1 -I.  -I./src -I./vendor
 -I/opt/local/include -Wextra -Wall -Wno-unused-parameter -Wno-unused-
 function -Woverlength-strings -Wstrict-prototypes     -I/opt/local/include
 -pipe -Os -arch ppc -pthread -MT src/main.o -MD -MP -MF $depbase.Tpo -c -o
 src/main.o src/main.c &&\
         mv -f $depbase.Tpo $depbase.Po
 In file included from src/main.c:36:
 ./src/version.h:1:1: error: unknown type name 'x23define'
     1 | x23define JQ_VERSION "1.8.0"
       | ^~~~~~~~~
 ./src/version.h:1:22: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before string constant
     1 | x23define JQ_VERSION "1.8.0"
       |                      ^~~~~~~
 src/main.c: In function 'usage':
 src/main.c:63:37: error: 'JQ_VERSION' undeclared (first use in this
 function); did you mean 'VERSION'?
    63 |     "\t{\n\t  \"foo\": 0\n\t}\n\n", JQ_VERSION);
       |                                     ^~~~~~~~~~
       |                                     VERSION
 src/main.c:63:37: note: each undeclared identifier is reported only once
 for each function it appears in
 src/main.c: In function 'main':
 src/main.c:501:29: error: 'JQ_VERSION' undeclared (first use in this
 function); did you mean 'VERSION'?
   501 |           printf("jq-%s\n", JQ_VERSION);
       |                             ^~~~~~~~~~
       |                             VERSION
 src/main.c:512:17: error: implicit declaration of function 'jq_testsuite'
 [-Wimplicit-function-declaration]
   512 |           ret = jq_testsuite(lib_search_paths,
       |                 ^~~~~~~~~~~~
 make[2]: *** [src/main.o] Error 1
 make[2]: *** Waiting for unfinished jobs....
 }}}

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


More information about the macports-tickets mailing list