[MacPorts] #59977: medusa @2.1.1: error: function definition is not allowed here (was: errors in telnet.c cause medusa build failure)

MacPorts noreply at macports.org
Fri Jan 17 21:23:51 UTC 2020


#59977: medusa @2.1.1: error: function definition is not allowed here
------------------------------+----------------------
  Reporter:  TheLastLovemark  |      Owner:  Gminfly
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:
      Port:  medusa           |
------------------------------+----------------------
Changes (by ryandesign):

 * cc: Gminfly (removed)
 * status:  new => assigned
 * owner:  (none) => Gminfly


Comment:

 This project's telnet.c does not appear to have anything to do with it.
 That just happens to be the last file it started compiling before erroring
 out, but there's no evidence that the compilation of that specific file
 ended in an error. We use parallel building in MacPorts, so depending on
 how many CPU cores your computer has many things can get built at the same
 time, and the last thing in the log is not necessarily where the problem
 is. We need to look at the first error in the logfile, which is:

 {{{
 :info:build In file included from ssh.c:227:
 :info:build In file included from /opt/local/include/openssl/evp.h:16:
 :info:build In file included from /opt/local/include/openssl/bio.h:20:
 :info:build In file included from /opt/local/include/openssl/crypto.h:23:
 :info:build /opt/local/include/openssl/safestack.h:159:1: error: function
 definition is not allowed here
 :info:build DEFINE_SPECIAL_STACK_OF(OPENSSL_STRING, char)
 :info:build ^
 :info:build /opt/local/include/openssl/safestack.h:129:42: note: expanded
 from macro 'DEFINE_SPECIAL_STACK_OF'
 :info:build # define DEFINE_SPECIAL_STACK_OF(t1, t2)
 SKM_DEFINE_STACK_OF(t1, t2, t2)
 :info:build                                          ^
 :info:build /opt/local/include/openssl/safestack.h:28:5: note: expanded
 from macro 'SKM_DEFINE_STACK_OF'
 :info:build     { \
 :info:build     ^
 }}}

 This is a duplicate of #58983.

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


More information about the macports-tickets mailing list