[GH-ISSUE #856] cygwin now requires _GNU_SOURCE #463

Closed
opened 2026-10-14 03:09:15 +07:00 by bsakaguchi · 5 comments
Owner

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.

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.
bsakaguchi 2026-10-14 03:09:15 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@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_VISIBLE block. 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=1 and 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.

<!-- gh-comment-id:63597045 --> @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_VISIBLE` block. 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=1` and 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.
Author
Owner

@jfoug commented on GitHub (Nov 19, 2014):

Seems this is controlled by _GNU_SOURCE, and the only thing _GNU_SOURCE adds is the __GNU_VISIBLE=1 So 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

<!-- gh-comment-id:63600072 --> @jfoug commented on GitHub (Nov 19, 2014): Seems this is controlled by `_GNU_SOURCE`, and the only thing `_GNU_SOURCE` adds is the `__GNU_VISIBLE=1` So 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
Author
Owner

@kholia commented on GitHub (Nov 19, 2014):

@jfoug thanks for investigating and fixing this.

<!-- gh-comment-id:63609811 --> @kholia commented on GitHub (Nov 19, 2014): @jfoug thanks for investigating and fixing this.
Author
Owner

@jfoug commented on GitHub (Nov 19, 2014):

@kholia do you use cygwin?

<!-- gh-comment-id:63731990 --> @jfoug commented on GitHub (Nov 19, 2014): @kholia do you use cygwin?
Author
Owner

@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.

<!-- gh-comment-id:63732151 --> @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.
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#463
No description provided.