Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[package] librdkafka/2.4.0: Unable to build in Debug Mode #23988

Closed
KevDi opened this issue May 14, 2024 · 2 comments · Fixed by #24006
Closed

[package] librdkafka/2.4.0: Unable to build in Debug Mode #23988

KevDi opened this issue May 14, 2024 · 2 comments · Fixed by #24006
Labels
bug Something isn't working

Comments

@KevDi
Copy link

KevDi commented May 14, 2024

Description

I want to install the new Version of Librdkafka with build_type=Debug but it won't install because it is unable to find libcryptod.lib. If i check the Result Folder i find the File under the Lib folder but without the d in the end. So the file is called libcrypto.lib also the libssl.lib is there but also without the d at the end of the Filename.
I tried to build it with openssl as a static lib and also as a shared lib (DLL) . Also the DLL Files are missing the d at the end.

Package and Environment Details

  • Package Name/Version: librdkafka/2.4.0
  • Operating System+version: Windows 10
  • Compiler+version: msvc
  • Conan version: conan 2.3.0

Conan profile

Host profile:
[settings]
arch=x86_64
build_type=Debug
compiler=msvc
compiler.cppstd=17
compiler.runtime=dynamic
compiler.runtime_type=Debug
compiler.version=192
os=Windows

Build profile:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=17
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows

Steps to reproduce

conan install --requires=librdkafka/2.4.0 -pr debug --build=missing -o "librdkafka*:shared=True" -o "librdkafka*:ssl=True" -o "librdkafka*:zlib=True"

Logs

Click to expand log
======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Debug
compiler=msvc
compiler.cppstd=17
compiler.runtime=dynamic
compiler.runtime_type=Debug
compiler.version=193
os=Windows
[options]
librdkafka*:shared=True
librdkafka*:ssl=True
librdkafka*:zlib=True

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=17
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows


======== Computing dependency graph ========
Graph root
    cli
Requirements
    librdkafka/2.4.0#0734605742a30eb6b4f2124cf9d3a247 - Cache
    lz4/1.9.4#1217a03c990b79aa34ed0faede18f534 - Cache
    openssl/3.2.1#c7b554068caae5eda12b735ea6f23d70 - Cache
    zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache
Build requirements
    nasm/2.15.05#058c93b2214a49ca1cfe9f8f26205568 - Cache
    strawberryperl/5.32.1.1#8f83d05a60363a422f9033e52d106b47 - Cache
Resolved version ranges
    openssl/[>=1.1 <4]: openssl/3.2.1
    zlib/[>=1.2.11 <2]: zlib/1.3.1

======== Computing necessary packages ========
librdkafka/2.4.0: Checking 3 compatible configurations
librdkafka/2.4.0: Compatible configurations not found in cache, checking servers
librdkafka/2.4.0: '3b64b31905ae7ebede3737a629de2b7096cdf315': compiler.cppstd=14
librdkafka/2.4.0: '31bedee1dec06eaabe1a6a189357206e4f5d3991': compiler.cppstd=20
librdkafka/2.4.0: '352971dd49c13d8cbab58a88687ca6e4692e61d5': compiler.cppstd=23
Requirements
    librdkafka/2.4.0#0734605742a30eb6b4f2124cf9d3a247:dbb5be5110d1d696017cc07cef0e792902be771f - Build
    lz4/1.9.4#1217a03c990b79aa34ed0faede18f534:ed44dacde2751b398e4bf9441ff992a70c913c00#75d924463f02c3859422f991a94e3411 - Cache
    openssl/3.2.1#c7b554068caae5eda12b735ea6f23d70:302e5a4b273149c6a991f3b5b0c98d358d2fa4c6#953ff2b883ffe4c0411df35e55204182 - Cache
    zlib/1.3.1#f52e03ae3d251dec704634230cd806a2:ed44dacde2751b398e4bf9441ff992a70c913c00#bd59e3391b8af663cfc17ef903bf5815 - Cache
Build requirements
Skipped binaries
    nasm/2.15.05, strawberryperl/5.32.1.1

======== Installing packages ========
lz4/1.9.4: Already installed! (1 of 4)
zlib/1.3.1: Already installed! (2 of 4)
openssl/3.2.1: Already installed! (3 of 4)

-------- Installing package librdkafka/2.4.0 (4 of 4) --------
librdkafka/2.4.0: Building from source
librdkafka/2.4.0: Package librdkafka/2.4.0:dbb5be5110d1d696017cc07cef0e792902be771f
librdkafka/2.4.0: Copying sources to build folder
librdkafka/2.4.0: Building your package in C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b
librdkafka/2.4.0: Calling generate()
librdkafka/2.4.0: Generators folder: C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build\generators
librdkafka/2.4.0: CMakeToolchain generated: conan_toolchain.cmake
librdkafka/2.4.0: CMakeToolchain generated: C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build\generators\CMakePresets.json
librdkafka/2.4.0: CMakeToolchain generated: C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\CMakeUserPresets.json
librdkafka/2.4.0: CMakeDeps necessary find_package() and targets for your CMakeLists.txt
    find_package(lz4)
    find_package(OpenSSL)
    find_package(ZLIB)
    target_link_libraries(... LZ4::lz4_static openssl::openssl ZLIB::ZLIB)
librdkafka/2.4.0: Generating aggregated env files
librdkafka/2.4.0: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
librdkafka/2.4.0: Calling build()
librdkafka/2.4.0: Apply patch (conan): find_package conan packages
librdkafka/2.4.0: Apply patch (conan): refer conan package names
librdkafka/2.4.0: Running CMake.configure()
librdkafka/2.4.0: RUN: cmake -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/user/.conan2/p/b/librdca5dab1fee0ee/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:/Users/user/.conan2/p/b/librdca5dab1fee0ee/b/src"
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Using Conan toolchain: C:/Users/user/.conan2/p/b/librdca5dab1fee0ee/b/build/generators/conan_toolchain.cmake
-- Conan toolchain: CMAKE_GENERATOR_TOOLSET=v143
-- Conan toolchain: C++ Standard 17 with extensions OFF
-- Conan toolchain: Setting BUILD_SHARED_LIBS = ON
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.39.33523.0
-- The CXX compiler identification is MSVC 19.39.33523.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pow in m
-- Looking for pow in m - not found
-- Conan: Target declared 'LZ4::lz4_static'
-- Conan: Including build module from 'C:/Users/user/.conan2/p/b/opens8313d7180fdf7/p/lib/cmake/conan-official-openssl-variables.cmake'
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Configuring done (28.1s)
-- Generating done (0.1s)
-- Build files have been written to: C:/Users/user/.conan2/p/b/librdca5dab1fee0ee/b/build

librdkafka/2.4.0: Running CMake.build()
librdkafka/2.4.0: RUN: cmake --build "C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build" --config Debug
MSBuild-Version 17.9.8+b34f75857 für .NET Framework

  1>Checking Build System
  Building Custom Rule C:/Users/user/.conan2/p/b/librdca5dab1fee0ee/b/src/src/CMakeLists.txt
  crc32c.c
  rdaddr.c
  rdavl.c
  rdbuf.c
  rdcrc32.c
  rdfnv1a.c
  rdbase64.c
  rdkafka.c
  rdkafka_assignor.c
  rdkafka_broker.c
  rdkafka_buf.c
  rdkafka_cgrp.c
  rdkafka_conf.c
  rdkafka_event.c
  rdkafka_feature.c
  rdkafka_lz4.c
  rdkafka_metadata.c
  rdkafka_metadata_cache.c
  rdkafka_msg.c
  rdkafka_msgset_reader.c
  rdkafka_msgset_writer.c
  rdkafka_offset.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdaddr.c(135,17): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_S
ECURE_NO_WARNINGS. See online help for details. [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_broker.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_assignor.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_buf.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_cgrp.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_event.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_lz4.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_metadata_cache.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_feature.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_metadata.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_msgset_writer.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_msg.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_msgset_reader.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_conf.c')

  rdkafka_op.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdavl.c')

  rdkafka_partition.c
  rdkafka_pattern.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_cgrp.c(6196,29): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) [C:\Users\user\.con
an2\p\b\librdca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_cgrp.c(6214,58): warning C4244: 'function': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1
fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka.c(2135,52): warning C4244: 'initializing': conversion from 'rd_ts_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1f
ee0ee\b\build\src\rdkafka.vcxproj]
  rdkafka_queue.c
  rdkafka_range_assignor.c
  rdkafka_request.c
  rdkafka_roundrobin_assignor.c
  rdkafka_sasl.c
  rdkafka_sasl_plain.c
  rdkafka_sticky_assignor.c
  rdkafka_subscription.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  rdkafka_assignment.c
  (compiling source file '../../src/src/rdkafka_offset.c')

  rdkafka_timer.c
  rdkafka_topic.c
  rdkafka_transport.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_partition.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_op.c')

  rdkafka_interceptor.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_request.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_pattern.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_topic.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_sticky_assignor.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_sasl.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_roundrobin_assignor.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_sasl_plain.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_queue.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_range_assignor.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_assignment.c')

  rdkafka_header.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_subscription.c')

  rdkafka_admin.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_timer.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_transport.c')

  rdkafka_aux.c
  rdkafka_background.c
  rdkafka_idempotence.c
  rdkafka_txnmgr.c
  rdkafka_cert.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_sticky_assignor.c(2208,62): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\li
brdca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_range_assignor.c(508,13): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\libr
dca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
  rdkafka_coord.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_range_assignor.c(978,37): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\libr
dca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_sticky_assignor.c(4216,37): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\li
brdca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_sticky_assignor.c(4500,21): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\li
brdca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_range_assignor.c(1681,36): warning C4267: 'initializing': conversion from 'size_t' to 'char', possible loss of data [C:\Users\user\.conan2\p\
b\librdca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_sticky_assignor.c(4734,36): warning C4267: 'initializing': conversion from 'size_t' to 'char', possible loss of data [C:\Users\user\.conan2\p
\b\librdca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
  rdkafka_mock.c
  rdkafka_mock_handlers.c
  rdkafka_mock_cgrp.c
  rdkafka_error.c
  rdkafka_fetcher.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_timer.c(227,45): warning C4244: 'function': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1
fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_background.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_idempotence.c')

  rdlist.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_interceptor.c')

  rdlog.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_header.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  rdmurmur2.c
  (compiling source file '../../src/src/rdkafka_aux.c')

  rdports.c
  rdrand.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_admin.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_cert.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_coord.c')

  rdregex.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_txnmgr.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_mock_handlers.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_mock_cgrp.c')

  rdstring.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_mock.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_error.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_admin.c(1611,41): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1
fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_admin.c(1630,31): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) [C:\Users\user\.co
nan2\p\b\librdca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_admin.c(4046,76): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1
fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_admin.c(4051,33): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1
fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_admin.c(4146,75): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1
fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_admin.c(4202,22): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1
fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_admin.c(4227,78): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1
fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_admin.c(4239,9): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1f
ee0ee\b\build\src\rdkafka.vcxproj]
  rdunittest.c
  rdvarint.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_admin.c(5697,64): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1
fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  rdmap.c
  (compiling source file '../../src/src/rdkafka_fetcher.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_admin.c(5834,40): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1
fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_admin.c(5849,54): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1
fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_admin.c(5904,43): warning C4267: 'function': conversion from 'size_t' to 'int32_t', possible loss of data [C:\Users\user\.conan2\p\b\librdca5
dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_admin.c(5907,47): warning C4267: 'function': conversion from 'size_t' to 'int32_t', possible loss of data [C:\Users\user\.conan2\p\b\librdca5
dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_admin.c(6077,35): warning C4267: 'function': conversion from 'size_t' to 'int32_t', possible loss of data [C:\Users\user\.conan2\p\b\librdca5
dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_admin.c(6121,69): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1
fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_admin.c(6143,69): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1
fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_admin.c(6349,54): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1
fee0ee\b\build\src\rdkafka.vcxproj]
  snappy.c
  tinycthread.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_admin.c(7891,61): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1
fee0ee\b\build\src\rdkafka.vcxproj]
  tinycthread_extra.c
  rdxxhash.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdlog.c')

  cJSON.c
  rdkafka_ssl.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_mock.c(2789,67): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1f
ee0ee\b\build\src\rdkafka.vcxproj]
  rddl.c
  rdkafka_sasl_win32.c
  rdgz.c
  regexp.c
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdunittest.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/snappy.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_ssl.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdinterval.h(127,74): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\b
uild\src\rdkafka.vcxproj]
  (compiling source file '../../src/src/rdkafka_sasl_win32.c')

C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_ssl.c(1385,24): warning C4996: 'ENGINE_load_ssl_client_cert': Since OpenSSL 3.0 [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build\src\rdk
afka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_ssl.c(1455,9): warning C4996: 'ENGINE_free': Since OpenSSL 3.0 [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_ssl.c(1475,18): warning C4996: 'ENGINE_by_id': Since OpenSSL 3.0 [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_ssl.c(1477,26): warning C4996: 'ENGINE_by_id': Since OpenSSL 3.0 [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_ssl.c(1486,14): warning C4996: 'ENGINE_ctrl_cmd_string': Since OpenSSL 3.0 [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build\src\rdkafka.
vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_ssl.c(1488,17): warning C4996: 'ENGINE_free': Since OpenSSL 3.0 [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_ssl.c(1495,14): warning C4996: 'ENGINE_ctrl_cmd_string': Since OpenSSL 3.0 [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build\src\rdkafka.
vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_ssl.c(1496,17): warning C4996: 'ENGINE_free': Since OpenSSL 3.0 [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_ssl.c(1503,14): warning C4996: 'ENGINE_ctrl_cmd_string': Since OpenSSL 3.0 [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build\src\rdkafka.
vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_ssl.c(1504,17): warning C4996: 'ENGINE_free': Since OpenSSL 3.0 [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_ssl.c(1511,14): warning C4996: 'ENGINE_init': Since OpenSSL 3.0 [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_ssl.c(1512,17): warning C4996: 'ENGINE_free': Since OpenSSL 3.0 [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_ssl.c(1752,9): warning C4996: 'ENGINE_free': Since OpenSSL 3.0 [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_sasl_win32.c(187,43): warning C4133: 'function': incompatible types - from 'wchar_t [512]' to 'SEC_CHAR *' [C:\Users\user\.conan2\p\b\librdca
5dab1fee0ee\b\build\src\rdkafka.vcxproj]
C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\src\src\rdkafka_sasl_win32.c(515,9): warning C4996: '_snwprintf': This function or variable may be unsafe. Consider using _snwprintf_s instead. To disable depr
ecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build\src\rdkafka.vcxproj]
LINK : fatal error LNK1104: cannot open file 'libcryptod.lib' [C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build\src\rdkafka.vcxproj]

librdkafka/2.4.0: ERROR:
Package 'dbb5be5110d1d696017cc07cef0e792902be771f' build failed
librdkafka/2.4.0: WARN: Build folder C:\Users\user\.conan2\p\b\librdca5dab1fee0ee\b\build
ERROR: librdkafka/2.4.0: Error in build() method, line 120
        cmake.build()
        ConanException: Error 1 while executing
@KevDi KevDi added the bug Something isn't working label May 14, 2024
@KevDi
Copy link
Author

KevDi commented May 14, 2024

I also tested building it with openssl/3.1.0 and there it works. It seems like openssl changed the build of the debug version in 3.2.0 and not writing the lib/dlls with the d suffix. The Problem is in the librdkafka in the file rdkafka_ssl.c there is the pragma calls and those are get changed in the current receipt of librdkafka from libcrypto.lib to libcryptod.lib. But this works only for openssl < 3.2.0.

@SpaceIm
Copy link
Contributor

SpaceIm commented May 15, 2024

Yep, librdkafka recipe likely needs a fix after #20999. See #20999 (review)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants