[GH-ISSUE #2347] Autodetect more OpenSSL installation paths (for Mac OS X) #1572

Open
opened 2026-10-15 04:20:25 +07:00 by bsakaguchi · 6 comments
Owner

Originally created by @solardiz on GitHub (Nov 29, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2347

As summarized in http://www.openwall.com/lists/john-users/2016/08/04/3 recent Mac OS X now needs its OpenSSL installed by weird means, and it gets installed in weird places. This makes it tricky to build JtR jumbo. Let's enhance our configure.ac to check for OpenSSL headers and libraries in those directories by default, much like it already does check for headers in /usr/local/ssl now. (We were just reported, privately, of a failed build attempt on Mac OS X where ./configure finds the headers, but not the libraries. I don't know how exactly this happened, but I expect issues and reports of this sort to be frequent unless we look for both of these things in multiple directories that various Mac OS X tools install into by default.)

Originally created by @solardiz on GitHub (Nov 29, 2016). Original GitHub issue: https://github.com/openwall/john/issues/2347 As summarized in http://www.openwall.com/lists/john-users/2016/08/04/3 recent Mac OS X now needs its OpenSSL installed by weird means, and it gets installed in weird places. This makes it tricky to build JtR jumbo. Let's enhance our `configure.ac` to check for OpenSSL headers and libraries in those directories by default, much like it already does check for headers in `/usr/local/ssl` now. (We were just reported, privately, of a failed build attempt on Mac OS X where `./configure` finds the headers, but not the libraries. I don't know how exactly this happened, but I expect issues and reports of this sort to be frequent unless we look for both of these things in multiple directories that various Mac OS X tools install into by default.)
Author
Owner

@magnumripper commented on GitHub (Nov 29, 2016):

For Homebrew, paths are /usr/local/opt/openssl/lib and /usr/local/opt/openssl/include. I thought things like this is exactly what pkg-config was supposed to help with, alas it doesn't

$ pkg-config --libs --cflags openssl
-lssl -lcrypto -lz
<!-- gh-comment-id:263495917 --> @magnumripper commented on GitHub (Nov 29, 2016): For Homebrew, paths are /usr/local/opt/openssl/lib and /usr/local/opt/openssl/include. I thought things like this is exactly what pkg-config was supposed to help with, alas it doesn't ``` $ pkg-config --libs --cflags openssl -lssl -lcrypto -lz ```
Author
Owner

@magnumripper commented on GitHub (Nov 29, 2016):

The current doc/INSTALL instructions for OS X are up to date though, and not exactly tricky.

<!-- gh-comment-id:263496164 --> @magnumripper commented on GitHub (Nov 29, 2016): The current [doc/INSTALL](https://github.com/magnumripper/JohnTheRipper/blob/bleeding-jumbo/doc/INSTALL) instructions for OS X are up to date though, and not exactly tricky.
Author
Owner

@magnumripper commented on GitHub (Aug 31, 2018):

#3391 works fine on my Macbook, we'll see how many non-macOS systems it breaks...

<!-- gh-comment-id:417718618 --> @magnumripper commented on GitHub (Aug 31, 2018): #3391 works fine on my Macbook, we'll see how many non-macOS systems it breaks...
Author
Owner

@solardiz commented on GitHub (Sep 1, 2018):

Thanks, magnum! I think we (you?) should mention in the recent thread on john-users that this issue is now believed to be fixed. We may then hear from more people testing the changes soon.

<!-- gh-comment-id:417871440 --> @solardiz commented on GitHub (Sep 1, 2018): Thanks, magnum! I think we (you?) should mention in the recent thread on john-users that this issue is now believed to be fixed. We may then hear from more people testing the changes soon.
Author
Owner

@solardiz commented on GitHub (Sep 2, 2018):

In doc/INSTALL, we have:

  1. Make sure /usr/local/bin precedes /usr/bin in your $PATH

That's a step I'd expect most people would skip at first. Is this the default configuration of OS X / macOS? If not, I think this is something we should workaround in our tree.

<!-- gh-comment-id:417929053 --> @solardiz commented on GitHub (Sep 2, 2018): In `doc/INSTALL`, we have: 3. Make sure /usr/local/bin precedes /usr/bin in your $PATH That's a step I'd expect most people would skip at first. Is this the default configuration of OS X / macOS? If not, I think this is something we should workaround in our tree.
Author
Owner

@magnumripper commented on GitHub (Sep 3, 2018):

I can't recall if I wrote that because the default was having /usr/local/bin last in the path or if it wasn't in the path at all (I think it was the former). Also, that was several iterations of macOS ago so things may have changed.

<!-- gh-comment-id:418201396 --> @magnumripper commented on GitHub (Sep 3, 2018): I can't recall if I wrote that because the default was having `/usr/local/bin` last in the path or if it wasn't in the path at all (I think it was the former). Also, that was several iterations of macOS ago so things may have changed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1572
No description provided.