[CONC-543] hash_insert, hash_delete and hash_free conflict with GnuTLS 3.6.14+ Created: 2021-04-08  Updated: 2021-04-13  Resolved: 2021-04-13

Status: Closed
Project: MariaDB Connector/C
Component/s: Other
Affects Version/s: 3.1, 3.2
Fix Version/s: 3.2.0, 3.1.13

Type: Bug Priority: Major
Reporter: Sergei Golubchik Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks

 Description   

GnuTLS (somewhere after 3.6.8, but no later than 3.6.14) implemented functions hash_insert/hash_delete/hash_free. Now libmariadb cannot link statically with gnutls because of

/usr/local/bin/ld: /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.8.5/../../../libgnutls.a(hash.o): in function `hash_free':
hash.c:(.text+0xb78): multiple definition of `hash_free'; CMakeFiles/mariadb_obj.dir/ma_hash.c.o:/home/buildbot/buildbot/build/libmariadb/libmariadb/ma_hash.c:73: first defined here
/usr/local/bin/ld: /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.8.5/../../../libgnutls.a(hash.o): in function `hash_insert':
hash.c:(.text+0x15a3): multiple definition of `hash_insert'; CMakeFiles/mariadb_obj.dir/ma_hash.c.o:/home/buildbot/buildbot/build/libmariadb/libmariadb/ma_hash.c:291: first defined here
/usr/local/bin/ld: /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.8.5/../../../libgnutls.a(hash.o): in function `hash_delete':
hash.c:(.text+0x189b): multiple definition of `hash_delete'; CMakeFiles/mariadb_obj.dir/ma_hash.c.o:/home/buildbot/buildbot/build/libmariadb/libmariadb/ma_hash.c:425: first defined here

Suggestion: rename them in C/C if they aren't part of the exported client API


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