Opened 3 years ago

Closed 11 months ago

#58983 closed defect (fixed)

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

Reported by: tehcog (tehcog) Owned by: Gminfly
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc: i0ntempest, TheLastLovemark, ryandesign (Ryan Schmidt)
Port: medusa

Description (last modified by tehcog (tehcog))

Sep 08 12:24:19 xxXXxx --->  Computing dependencies for medusa
Sep 08 12:24:19 xxXXxx --->  Fetching archive for medusa
Sep 08 12:24:19 xxXXxx --->  Attempting to fetch medusa-2.1.1_2+subversion.darwin_13.x86_64.tbz2 from https://packages.macports.org/medusa
Sep 08 12:24:19 xxXXxx --->  Attempting to fetch medusa-2.1.1_2+subversion.darwin_13.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/medusa
Sep 08 12:24:20 xxXXxx --->  Attempting to fetch medusa-2.1.1_2+subversion.darwin_13.x86_64.tbz2 from http://kmq.jp.packages.macports.org/medusa
Sep 08 12:24:20 xxXXxx --->  Verifying checksums for medusa
Sep 08 12:24:20 xxXXxx --->  Extracting medusa
Sep 08 12:24:20 xxXXxx --->  Applying patches to medusa
Sep 08 12:24:20 xxXXxx --->  Configuring medusa
Sep 08 12:24:24 xxXXxx --->  Building medusa
Sep 08 12:24:24 xxXXxx Error: Failed to build medusa: command execution failed
Sep 08 12:24:24 xxXXxx Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_security_medusa/medusa/main.log for details.

please see attached main.log for details

Attachments (1)

medusa_main.log (296.4 KB) - added by tehcog (tehcog) 3 years ago.
main.log

Download all attachments as: .zip

Change History (7)

Changed 3 years ago by tehcog (tehcog)

Attachment: medusa_main.log added

main.log

comment:1 Changed 3 years ago by tehcog (tehcog)

Description: modified (diff)

comment:2 Changed 3 years ago by mf2k (Frank Schima)

Cc: Gminfly removed
Owner: set to Gminfly
Status: newassigned

comment:3 Changed 3 years ago by i0ntempest

Cc: i0ntempest added

comment:4 Changed 3 years ago by ryandesign (Ryan Schmidt)

Cc: TheLastLovemark added
Summary: medusa @2.1.1_2 fails to build on mavericksmedusa @2.1.1_2: error: function definition is not allowed here

The relevant error in the log (repeated several times until maximum number of errors was exceeded) appears to be:

: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     ^

Has duplicate #59977.

Maybe updating to version 2.2 would help.

If not, it's worth noting that MacPorts updated openssl to 1.1.x somewhat recently. Although this is not the typical failure we see with ports that are not compatible with openssl 1.1, maybe it is related. If the port cannot be made to work with openssl 1.1, we still have an openssl 1.0 port available that this port can use if needed.

comment:5 Changed 11 months ago by ryandesign (Ryan Schmidt)

Cc: ryandesign added

comment:6 Changed 11 months ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: assignedclosed

In 8503daef84f2f0f74e48f1b2cc5c68ce57720dd9/macports-ports (master):

medusa: Update to 2.2 and use openssl 1.0

Closes: #58983
Closes: #59978

Note: See TracTickets for help on using tickets.