Thanks you for the fix!
I had the same error when running the making lucida on linux:
error: static declaration of ‘X509_REVOKED_dup’ follows non-static declaration
static X509_REVOKED * X509_REVOKED_dup(X509_REVOKED *orig) {
^~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/ssl.h:156:0,
from OpenSSL/crypto/x509.h:17,
from OpenSSL/crypto/crypto.h:30,
from OpenSSL/crypto/crl.c:3:
/usr/include/openssl/x509.h:751:15: note: previous declaration of ‘X509_REVOKED_dup’ was here
X509_REVOKED *X509_REVOKED_dup(X509_REVOKED *rev);
Didn't need to git clean, but, it worked for me by editing the line X509_REVOKED_dup to X509_REVOKED_dupe in my /usr/include/openssl/x509.h file.
I think it's likely a typo they haven't fixed in an older version.