[MacPorts] #59627: yara @3.11.0: error: too many arguments to function call, expected 2, have 3 (was: yara at 3.11.0: build failed)

MacPorts noreply at macports.org
Fri Nov 8 09:12:48 UTC 2019


#59627: yara @3.11.0: error: too many arguments to function call, expected 2, have
3
---------------------+--------------------
  Reporter:  sierkb  |      Owner:  (none)
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.6.2
Resolution:          |   Keywords:
      Port:  yara    |
---------------------+--------------------
Changes (by ryandesign):

 * cc: ryandesign (added)


Comment:

 You're probably right, Renee.

 We need to be looking at the ''first'' error in the log, which is:

 {{{
 :info:build modules/tests.c:91:11: error: too many arguments to function
 call, expected 2, have 3
 :info:build           string_argument(2)));
 :info:build           ^~~~~~~~~~~~~~~~~~~~
 :info:build /opt/local/include/yara/modules.h:278:5: note: expanded from
 macro 'string_argument'
 :info:build     (sized_string_argument(n)->c_string)
 :info:build     ^
 }}}

 So indeed, the build is including the modules.h header from the already-
 installed version of yara, with which it is incompatible, instead of the
 one from the version we're currently building.

 I'm looking into it, and I see at least 2 problems already: configure.ac
 is hardcoded to look in /opt/local and /usr/local/opt/openssl; we'll want
 to patch out both of those. I'm testing if that change is enough to fix
 this problem.

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


More information about the macports-tickets mailing list