mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1865] ./configure does not add the path to openssl header files in generated Makefile on OSX #1239
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#1239
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thecommandline on GitHub (Oct 30, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1865
Originally assigned to: @magnumripper on GitHub.
On OSX the Makefile created by ./configure is missing the path to the openssl header files.
If I manually add the path to the Makefile it compiles and runs successfully. I am assuming this is the default system one installed with xCode but I cant say with 100% certainty.
Alternatively I can use the homebrew version which is a much nicer path but dependent on homebrew having installed openssl.
Here is some additional system info:
This is from a successful build after manually adding the openssl include path (the one under the Xcode.app dir path).
@magnumripper commented on GitHub (Oct 30, 2015):
I thought Apple stopped supplying OpenSSL headers with El Capitan but I see they're there now (maybe they were re-added in 10.11.1?)
The thing is autoconf is not really supposed to go out of its way to find it. These are both non-standard paths so it's natural you need to supply one of them as an argument to ./configure. Some hard-core beards would even say we shouldn't look in /usr/local/include unless told so (but I disagree).
I usually have a symlink like this one for Homebrew:
However, since this is a very common special-case, I guess we should do two things: 1. Add instructions to doc/INSTALL about how to handle eg. Homebrew and (perhaps) 2. find that crazy long path under /Applications/Xcode.app as a last resort.
@magnumripper commented on GitHub (Oct 30, 2015):
BTW I consider this a bug in Homebrew: (EDIT not a bug, it's keg-only - see below).
The problem is
--cflags, I believe it should say-I/usr/local/Cellar/openssl/1.0.2d_1/include/. The pkg-config thing is utterly useless unless they start actually supplying correct data for it when installing things. We do use pkg-config in our AC enumeration so as soon as Homebrew start doing the right things, it will work for us.@magnumripper commented on GitHub (Oct 30, 2015):
OK, here's how to do it for Homebrew:
After that, it works as a champ.
@magnumripper commented on GitHub (Oct 30, 2015):
LOL, I was going to add instructions to doc/INSTALL and found we already had them