[CONC-637] Build fails when specifying -DPLUGIN_AUTH_GSSAPI_CLIENT=OFF Created: 2023-02-28  Updated: 2023-03-01  Resolved: 2023-02-28

Status: Closed
Project: MariaDB Connector/C
Component/s: Build
Affects Version/s: 3.1, 3.3
Fix Version/s: 3.1.21, 3.3.5

Type: Bug Priority: Blocker
Reporter: Chris Ross Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None
Environment:

WindRiver Linux LTS21



 Description   

Since 10.5.16, a new line was added to libmariadb/plugins/auth/CMakeLists.txt:

    SET_TARGET_PROPERTIES(auth_gssapi_client PROPERTIES LINK_FLAGS "-Wl,--as-needed")

This was not protected by ensuring auth_gssapi_client was enabled, and when running cmake with it disabled, errors with the following:

CMake Error at libmariadb/plugins/auth/CMakeLists.txt:123 (SET_TARGET_PROPERTIES):                                                                              
  SET_TARGET_PROPERTIES Can not find target to add properties to:         auth_gssapi_client                                                            



 Comments   
Comment by Chris Ross [ 2023-02-28 ]

It looks like this went into mariadb-connector-c in 3.3.3, if I'm tracing things correctly. I don't know which bundle of mariadb server included this connector version.

https://github.com/mariadb-corporation/mariadb-connector-c/commit/2e10c961eb14d67e73b31854e31d3f3416d25b0b

Generated at Thu Feb 08 03:06:44 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.