Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#63898 closed defect (fixed)

apache2: dyld: Library not loaded: /opt/local/lib/libcrypto.1.1.dylib Referenced from: /opt/local/bin/rsync

Reported by: shishanyu (Tony) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), Schamschula (Marius Schamschula), shishanyu (Tony), mascguy (Christopher Nielsen)
Port: apache2

Description

Hello, upgrading apache2 is failing at the stage after "---> Creating launchd control script 'apache2'"

Here the complete thing:

--->  Computing dependencies for apache2
--->  Fetching archive for apache2
--->  Attempting to fetch apache2-2.4.51_2+preforkmpm.darwin_19.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/apache2
--->  Attempting to fetch apache2-2.4.51_2+preforkmpm.darwin_19.x86_64.tbz2 from https://packages.macports.org/apache2
--->  Attempting to fetch apache2-2.4.51_2+preforkmpm.darwin_19.x86_64.tbz2 from https://mse.uk.packages.macports.org/apache2
--->  Fetching distfiles for apache2
--->  Verifying checksums for apache2
--->  Extracting apache2
--->  Applying patches to apache2
--->  Configuring apache2
--->  Building apache2                                   
--->  Staging apache2 into destroot                      
--->  Creating launchd control script 'apache2'
Error: Failed to destroot apache2: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_apache2/apache2/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

If I figure how, I'll attach the main.log

Attachments (1)

main.log (1.1 MB) - added by shishanyu (Tony) 3 years ago.
main.log described in the output of the command

Download all attachments as: .zip

Change History (9)

Changed 3 years ago by shishanyu (Tony)

Attachment: main.log added

main.log described in the output of the command

comment:1 Changed 3 years ago by shishanyu (Tony)

Cc: shishanyu added

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

The log shows that the error is:

:info:destroot dyld: Library not loaded: /opt/local/lib/libcrypto.1.1.dylib
:info:destroot   Referenced from: /opt/local/bin/rsync
:info:destroot   Reason: image not found

so you should

sudo port upgrade rsync

first.

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

Keywords: catalina x86_64 removed
Summary: Error: Failed to destroot apache2: command execution failedapache2: dyld: Library not loaded: /opt/local/lib/libcrypto.1.1.dylib Referenced from: /opt/local/bin/rsync

comment:4 Changed 3 years ago by jmroot (Joshua Root)

That will work around the problem, but apache2 needs to either add a dependency on rsync or ensure that it uses /usr/bin/rsync.

comment:5 Changed 3 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added

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

Sigh. We don't go to that sort of trouble to ensure that ports don't use /opt/local/bin/gawk or /opt/local/bin/gmake or or or ...

Last edited 3 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

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

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 4f890b2621bd92cd88c5df5edd8dbb8e5c997210/macports-ports (master):

apache2: Ensure MacPorts rsync is not used

Closes: #63898

comment:8 in reply to:  6 Changed 3 years ago by danielluke (Daniel J. Luke)

Replying to ryandesign:

Sigh. We don't go to that sort of trouble to ensure that ports don't use /opt/local/bin/gawk or /opt/local/bin/gmake or or or ...

we do sometimes:

% port cat apr | grep configure.env
configure.env      ac_cv_prog_AWK=awk ac_cv_path_SED=sed lt_ECHO=/bin/echo lt_cv_path_SED=sed

(insert wish that trace mode was the default :) )

Last edited 3 years ago by danielluke (Daniel J. Luke) (previous) (diff)
Note: See TracTickets for help on using tickets.