Opened 5 years ago

Closed 5 years ago

#59977 closed defect (duplicate)

medusa @2.1.1: error: function definition is not allowed here

Reported by: TheLastLovemark Owned by: Gminfly
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: medusa

Description

I tried port -vd install medusa +subversion

Attachments (1)

medusa_main.log (430.0 KB) - added by TheLastLovemark 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by TheLastLovemark

Attachment: medusa_main.log added

comment:1 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: Gminfly removed
Owner: set to Gminfly
Status: newassigned
Summary: errors in telnet.c cause medusa build failuremedusa @2.1.1: error: function definition is not allowed here

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.

comment:2 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: assignedclosed
Note: See TracTickets for help on using tickets.