Ferenc Gerlits created MINIFICPP-2533:
-----------------------------------------

             Summary: Windows build of librdkafka 2.8.0 fails
                 Key: MINIFICPP-2533
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2533
             Project: Apache NiFi MiNiFi C++
          Issue Type: Bug
            Reporter: Ferenc Gerlits
            Assignee: Ferenc Gerlits


Librdkafka 2.8.0 has added some new code to {{rdkafka_ssl.c}} which uses the 
symbol {{X509_NAME}} from OpenSSL; however, {{<wincrypt.h>}} defines a 
{{X509_NAME}} macro as {{{}((LPCSTR)7){}}}, so we get a compile error:
{noformat}
D:\w\nifi-build-new1\bx64\_deps\libkafka-src\src\rdkafka_ssl.c(1040,30): error 
C2065: 'issuer_dn': undeclared identifier
        X509_NAME *issuer_dn = X509_get_issuer_name(ca);
                             ^
D:\w\nifi-build-new1\bx64\_deps\libkafka-src\src\rdkafka_ssl.c(1040,19): error 
C2296: '*': not valid as left operand has type 'LPCSTR'
        X509_NAME *issuer_dn = X509_get_issuer_name(ca);
[...] {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to