[MacPorts] #58555: mysql8 @8.0.16 build failure: No rule to make target `/opt/local/lib/libsasl2.dylib'

MacPorts noreply at macports.org
Tue Jun 4 15:14:04 UTC 2019


#58555: mysql8 @8.0.16 build failure: No rule to make target
`/opt/local/lib/libsasl2.dylib'
---------------------------+-------------------------
  Reporter:  haraldgroven  |      Owner:  herbygillot
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.5.4
Resolution:                |   Keywords:
      Port:  mysql8        |
---------------------------+-------------------------

Comment (by herbygillot):

 @haraldgroven thanks for your patience on this.

 I've installed the dependencies you listed in a fresh 10.14 environment
 and was able to successfully build MySQL 8 alongside 5.7 again, so
 unfortunately I am again unable to reproduce this issue.

 Looking at the log again:

 {{{
 :info:build make[2]: *** No rule to make target
 `/opt/local/lib/libsasl2.dylib', needed by
 `plugin_output_directory/authentication_ldap_sasl_client.so'.  Stop.
 584     :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql8/mysql8/work/build'
 585     :info:build
 /Applications/Xcode.app/Contents/Developer/usr/bin/make -f
 storage/csv/CMakeFiles/csv.dir/build.make
 storage/csv/CMakeFiles/csv.dir/build
 586     :info:build make[1]: ***
 [libmysql/authentication_ldap/CMakeFiles/authentication_ldap_sasl_client.dir/all]
 Error 2
 587     :info:build make[1]: *** Waiting for unfinished jobs....
 }}}

 ...this is definitely weird.  Even after the dependency install and build,
 I don't see a copy of **libsasl2.dylib** in the Macports tree
 (**/opt/local/lib**).  This seems to be a macOS system lib, found in
 **/usr/lib**, so the build process trying to either find or build it in
 **/opt/local/lib** is abnormal.

 You mention you are uninstalling and reinstalling MacPorts - did that
 include removing your prior MacPorts tree? ie., did you delete
 **/opt/local** as part of the uninstall process?  That might be a bit of a
 hassle, but I think doing that would be a proper clean reset.  You will
 probably want to backup configuration files you care about from
 **/opt/local/etc** and data from **/opt/local/var/db** beforehand.

 The MacPorts official guide actually recommends an even more thorough
 process:

 https://guide.macports.org/chunked/installing.macports.uninstalling.html

 I wish I had a better suggestion, but as I am unable to reproduce the
 issue, I think it's worth trying a full MacPorts reset to see if the issue
 still persists afterwards.

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


More information about the macports-tickets mailing list