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

[mysql-connector-cpp] Add new package for mysql-connector-cpp/8.0.33 #20699

Closed

Conversation

uilianries
Copy link
Member

@uilianries uilianries commented Oct 20, 2023

Specify library name and version: mysql-connector-cpp/8.0.33

This PR is a continuation over the PR #17594 with the changes requested on samuaz#2.

Some considerations:

  • The MySQL Connector C++ has all dependencies listed internally, but offers using external too.
  • Using external dependencies is an adaptation only, we still need to follow internal rules, like using CMake variables and custom CMake methods. It resulted in several patches.
  • There is a current linkage (I guess) error when building on Windows, but I'm not inclined to spend more time on it now, pushing the current state: Working on *nix.

closes samuaz#2
closes #16312
closes #374
closes #17594


samuaz and others added 30 commits May 17, 2023 04:18
Co-authored-by: Rubén Rincón Blanco <git@rinconblanco.es>
Co-authored-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: Uilian Ries <uilianries@gmail.com>
check if conan CI dont fails with openssl 1.1.1
conan CI fails with >=1.1 < 3

force to use 1.1.1u for mac build
Signed-off-by: Uilian Ries <uilianries@gmail.com>
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 12 (1b4c9f6e13fa048807e8373c3d374c14476cd76b):

  • mysql-connector-cpp/8.1.0:
    CI failed to create some packages (All logs)

    Logs for packageID 5d20aabb63f2707b641eeaaa8b80f38e03291416:
    [settings]
    arch=armv8
    build_type=Debug
    compiler=apple-clang
    compiler.libcxx=libc++
    compiler.version=13.0
    os=Macos
    [options]
    mysql-connector-cpp:shared=False
    
    [...]
    duplicate symbol '_engine_free_util' in:
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/mysql-connector-cpp/8.1.0/_/_/package/5d20aabb63f2707b641eeaaa8b80f38e03291416/lib/debug/libmysqlcppconn8-static.a(libcrypto-lib-eng_lib.o)
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/openssl/3.3.1/_/_/package/ff757993f715b5a535f74d927613dec74a6163f6/lib/libcrypto.a(libcrypto-lib-eng_lib.o)
    duplicate symbol '_ENGINE_get_static_state' in:
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/mysql-connector-cpp/8.1.0/_/_/package/5d20aabb63f2707b641eeaaa8b80f38e03291416/lib/debug/libmysqlcppconn8-static.a(libcrypto-lib-eng_lib.o)
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/openssl/3.3.1/_/_/package/ff757993f715b5a535f74d927613dec74a6163f6/lib/libcrypto.a(libcrypto-lib-eng_lib.o)
    duplicate symbol '_ENGINE_set_name' in:
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/mysql-connector-cpp/8.1.0/_/_/package/5d20aabb63f2707b641eeaaa8b80f38e03291416/lib/debug/libmysqlcppconn8-static.a(libcrypto-lib-eng_lib.o)
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/openssl/3.3.1/_/_/package/ff757993f715b5a535f74d927613dec74a6163f6/lib/libcrypto.a(libcrypto-lib-eng_lib.o)
    duplicate symbol '_ENGINE_get_name' in:
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/mysql-connector-cpp/8.1.0/_/_/package/5d20aabb63f2707b641eeaaa8b80f38e03291416/lib/debug/libmysqlcppconn8-static.a(libcrypto-lib-eng_lib.o)
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/openssl/3.3.1/_/_/package/ff757993f715b5a535f74d927613dec74a6163f6/lib/libcrypto.a(libcrypto-lib-eng_lib.o)
    duplicate symbol '_ENGINE_free' in:
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/mysql-connector-cpp/8.1.0/_/_/package/5d20aabb63f2707b641eeaaa8b80f38e03291416/lib/debug/libmysqlcppconn8-static.a(libcrypto-lib-eng_lib.o)
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/openssl/3.3.1/_/_/package/ff757993f715b5a535f74d927613dec74a6163f6/lib/libcrypto.a(libcrypto-lib-eng_lib.o)
    duplicate symbol '_ENGINE_set_id' in:
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/mysql-connector-cpp/8.1.0/_/_/package/5d20aabb63f2707b641eeaaa8b80f38e03291416/lib/debug/libmysqlcppconn8-static.a(libcrypto-lib-eng_lib.o)
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/openssl/3.3.1/_/_/package/ff757993f715b5a535f74d927613dec74a6163f6/lib/libcrypto.a(libcrypto-lib-eng_lib.o)
    duplicate symbol '_ENGINE_get_id' in:
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/mysql-connector-cpp/8.1.0/_/_/package/5d20aabb63f2707b641eeaaa8b80f38e03291416/lib/debug/libmysqlcppconn8-static.a(libcrypto-lib-eng_lib.o)
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/openssl/3.3.1/_/_/package/ff757993f715b5a535f74d927613dec74a6163f6/lib/libcrypto.a(libcrypto-lib-eng_lib.o)
    duplicate symbol '_ENGINE_set_ex_data' in:
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/mysql-connector-cpp/8.1.0/_/_/package/5d20aabb63f2707b641eeaaa8b80f38e03291416/lib/debug/libmysqlcppconn8-static.a(libcrypto-lib-eng_lib.o)
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/openssl/3.3.1/_/_/package/ff757993f715b5a535f74d927613dec74a6163f6/lib/libcrypto.a(libcrypto-lib-eng_lib.o)
    duplicate symbol '_ENGINE_get_ex_data' in:
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/mysql-connector-cpp/8.1.0/_/_/package/5d20aabb63f2707b641eeaaa8b80f38e03291416/lib/debug/libmysqlcppconn8-static.a(libcrypto-lib-eng_lib.o)
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/openssl/3.3.1/_/_/package/ff757993f715b5a535f74d927613dec74a6163f6/lib/libcrypto.a(libcrypto-lib-eng_lib.o)
    duplicate symbol '_do_engine_lock_init_ossl_ret_' in:
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/mysql-connector-cpp/8.1.0/_/_/package/5d20aabb63f2707b641eeaaa8b80f38e03291416/lib/debug/libmysqlcppconn8-static.a(libcrypto-lib-eng_lib.o)
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/openssl/3.3.1/_/_/package/ff757993f715b5a535f74d927613dec74a6163f6/lib/libcrypto.a(libcrypto-lib-eng_lib.o)
    duplicate symbol '_do_engine_lock_init_ossl_' in:
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/mysql-connector-cpp/8.1.0/_/_/package/5d20aabb63f2707b641eeaaa8b80f38e03291416/lib/debug/libmysqlcppconn8-static.a(libcrypto-lib-eng_lib.o)
        /Users/jenkins/workspace/prod-v1/bsr/87436/dfffb/.conan/data/openssl/3.3.1/_/_/package/ff757993f715b5a535f74d927613dec74a6163f6/lib/libcrypto.a(libcrypto-lib-eng_lib.o)
    ld: 56 duplicate symbols for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [test_package] Error 1
    make[1]: *** [CMakeFiles/test_package.dir/all] Error 2
    make: *** [all] Error 2
    WARN: *** Conan 1 is legacy and on a deprecation path ***
    WARN: *** Please upgrade to Conan 2 ***
    WARN: protobuf/3.21.12: requirement zlib/[>=1.2.11 <2] overridden by mysql-connector-cpp/8.1.0 to zlib/1.3.1 
    WARN: boost/1.83.0: requirement zlib/[>=1.2.11 <2] overridden by mysql-connector-cpp/8.1.0 to zlib/1.3.1 
    WARN: openssl/3.3.1: requirement zlib/[>=1.2.11 <2] overridden by mysql-connector-cpp/8.1.0 to zlib/1.3.1 
    WARN: libmysqlclient/8.1.0: requirement openssl/[>=1.1 <4] overridden by mysql-connector-cpp/8.1.0 to openssl/3.3.1 
    WARN: libmysqlclient/8.1.0: requirement zlib/[>=1.2.11 <2] overridden by mysql-connector-cpp/8.1.0 to zlib/1.3.1 
    mysql-connector-cpp/8.1.0 (test package): WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    mysql-connector-cpp/8.1.0 (test package): WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    ERROR: mysql-connector-cpp/8.1.0 (test package): Error in build() method, line 21
    	cmake.build()
    	ConanException: Error 2 while executing cmake --build "/Users/jenkins/workspace/prod-v1/bsr/cci-d84496dc/recipes/mysql-connector-cpp/all/test_package/build/Debug" '--' '-j8'
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.


Conan v2 pipeline ✔️

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 12 (1b4c9f6e13fa048807e8373c3d374c14476cd76b):

  • mysql-connector-cpp/8.1.0:
    All packages built successfully! (All logs)

@perseoGI perseoGI mentioned this pull request Sep 5, 2024
3 tasks
@perseoGI
Copy link
Contributor

perseoGI commented Sep 5, 2024

Hi 👋
As there is already some work on introducing mysql-connector-cpp in CCI, let's focus the efforts on a single PR.
In this case, we have decided to make it this one #24678
Thanks in advance and see you in this PR

@perseoGI perseoGI closed this Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[request] mysql_connector_cpp/8.0.32 [request] mysql-connector-cpp/8.0
5 participants