[MacPorts] #61354: jq does not build with Xcode 12.0.1 on macOS 10.15 (darwin/19.6.0)

MacPorts noreply at macports.org
Tue Oct 20 07:54:49 UTC 2020


#61354: jq does not build with Xcode 12.0.1 on macOS 10.15 (darwin/19.6.0)
---------------------+--------------------
 Reporter:  tgyurci  |      Owner:  (none)
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:
 Keywords:           |       Port:  jq
---------------------+--------------------
 After upgrading to latest Xcode `jq` failed to build:

 {{{
 src/builtin.c:194:31: error: implicit declaration of function 'lgamma_r'
 is invalid in C99 [-Werror,-Wimplicit-function-declaration]
   jv ret = JV_ARRAY(jv_number(lgamma_r(jv_number_value(input), &sign)));
 }}}

 Applying the already present patch from `patch-src-builtin.c` eliminates
 the error and jq complies successfully.

 System info:
 {{{
 DEBUG: macOS 10.15 (darwin/19.6.0) arch i386
 DEBUG: MacPorts 2.6.3
 DEBUG: Xcode 12.0.1
 DEBUG: SDK 10.15
 DEBUG: MACOSX_DEPLOYMENT_TARGET: 10.15
 }}}

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


More information about the macports-tickets mailing list