[ 
https://issues.apache.org/jira/browse/MINIFICPP-2533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ferenc Gerlits resolved MINIFICPP-2533.
---------------------------------------
    Resolution: Fixed

> 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
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Librdkafka 2.8.0 has added some new code to {{rdkafka_ssl.c}} [1] 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}
>  
> [1] 
> https://github.com/confluentinc/librdkafka/commit/ac2a5e411444ad2e3dfdba2d908467b2e1aa2cf8



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

Reply via email to