mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #856] cygwin now requires _GNU_SOURCE #463
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#463
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 @jfoug on GitHub (Nov 18, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/856
I am getting a failure (jtr just exits), cygwin64 just after I updated. One thing updated was oSSL version to 1.0.1j This has now been validated. I switched back to 1.0.1i (prior version still can be installed in the cygwin install environment), and the aborted run no longer happens.
So, can anyone else check this out with v1.0.1j version of oSSL?
We currently have code that ONLY allows OMP for oSSL > v1.0 due to threading issues. It may be that this version also has threading problems OR there is some deadlock situation due to how we are using code.
@jfoug commented on GitHub (Nov 19, 2014):
I no longer think this is ossl version. At upgrade time, there was also a new version of gcc installed. Once installed, I started getting warnings about memmem not being defined. I tracked it down to string.h where it was declared, and it was wrapped in
#if __GNU_VISIBLEblock. I added -D__GNU_VISIBLE=1 to the cygwin64 build and that was where I rolled back the ossl version. But it appears the crash in ssh-ng was fixed by the__GNU_VISIBLE=1and not the oSSL version rollback.I am still investigating, but I have removed the portability label, as I do not think this is oSSL version related.
@jfoug commented on GitHub (Nov 19, 2014):
Seems this is controlled by
_GNU_SOURCE, and the only thing_GNU_SOURCEadds is the__GNU_VISIBLE=1So I added a |cygwin* to the linux* case in the host-os case statement in jtr_system_specific_logic.m4 file. I am still testing, but this appears to be correct.The ssh-ng does not crash under cygwin32 build (after the recent upgrade), BUT all of the undefined memmem are seen in that build also, so this new define also cures that.
f3e0cdf@kholia commented on GitHub (Nov 19, 2014):
@jfoug thanks for investigating and fixing this.
@jfoug commented on GitHub (Nov 19, 2014):
@kholia do you use cygwin?
@kholia commented on GitHub (Nov 19, 2014):
@jfoug not these days but I have used it previously.
Currently, I don't have a Windows installation.