[GH-ISSUE #1137] CPPFLAGS issue #709

Closed
opened 2026-10-14 03:21:01 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @lei-april on GitHub (Mar 22, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1137

In configure.ac (about line 794), CPPFLAGS is not passed to $CPP when creating fmt_externs.h and fmt_registers. This will cause problem if we specify non-standard header path in CPPFLAGS.

Originally created by @lei-april on GitHub (Mar 22, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1137 In configure.ac (about line 794), CPPFLAGS is not passed to $CPP when creating fmt_externs.h and fmt_registers. This will cause problem if we specify non-standard header path in CPPFLAGS.
Author
Owner

@magnumripper commented on GitHub (Mar 22, 2015):

Maybe that should be fixed. However, I can't immediately think of a situation where it would matter. We just run cpp to get the "plugin stanzas".

<!-- gh-comment-id:84655973 --> @magnumripper commented on GitHub (Mar 22, 2015): Maybe that should be fixed. However, I can't immediately think of a situation where it would matter. We just run cpp to get the "plugin stanzas".
Author
Owner

@lei-april commented on GitHub (Mar 23, 2015):

I encountered this problem when configuring for MIC:

configure: creating ./fmt_externs.h
bitcoin_fmt_plug.c(19): error #2379: cannot open source file "openssl/opensslv.h"
#include <openssl/opensslv.h>
^

configure: creating ./fmt_registers.h
bitcoin_fmt_plug.c(19): error #2379: cannot open source file "openssl/opensslv.h"
#include <openssl/opensslv.h>
^

That's how I noticed this issue.

<!-- gh-comment-id:84756416 --> @lei-april commented on GitHub (Mar 23, 2015): I encountered this problem when configuring for MIC: configure: creating ./fmt_externs.h bitcoin_fmt_plug.c(19): error #2379: cannot open source file "openssl/opensslv.h" #include <openssl/opensslv.h> ^ configure: creating ./fmt_registers.h bitcoin_fmt_plug.c(19): error #2379: cannot open source file "openssl/opensslv.h" #include <openssl/opensslv.h> ^ That's how I noticed this issue.
Author
Owner

@magnumripper commented on GitHub (Mar 23, 2015):

The -I/path/to/openssl should(?) be in CFLAGS too. On my machine it is. Anyway, it should be fixed now.

<!-- gh-comment-id:84880976 --> @magnumripper commented on GitHub (Mar 23, 2015): The `-I/path/to/openssl` should(?) be in CFLAGS too. On my machine it is. Anyway, it should be fixed now.
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#709
No description provided.