Bug #98245 no longer builds with mysql 5.7 headers due to MYSQL_OPT_TLS_CIPHERSUITES usage
Submitted: 16 Jan 2020 8:31 Modified: 3 May 2022 21:31
Reporter: Arek M Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Connector / Python Severity:S3 (Non-critical)
Version:8.0.19 OS:Any
Assigned to: CPU Architecture:Any
Tags: regression

[16 Jan 2020 8:31] Arek M
Description:
x86_64-pld-linux-gcc -fno-strict-aliasing -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -DNDEBUG -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -fPIC -Isrc/include -I/usr/include/python2.7 -I/usr/include/mysql -c src/exceptions.c -o build-2/temp.linux-x86_64-2.7/src/exceptions.o -isystem/usr/include/python2.7 -isystem/usr/include/mysql -Wno-unknown-pragmas
x86_64-pld-linux-gcc -fno-strict-aliasing -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -DNDEBUG -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -fPIC -Isrc/include -I/usr/include/python2.7 -I/usr/include/mysql -c src/mysql_capi.c -o build-2/temp.linux-x86_64-2.7/src/mysql_capi.o -isystem/usr/include/python2.7 -isystem/usr/include/mysql -Wno-unknown-pragmas
src/mysql_capi.c: In function 'MySQL_connect':
src/mysql_capi.c:1230:27: error: 'MYSQL_OPT_TLS_CIPHERSUITES' undeclared (first use in this function); did you mean 'MYSQL_OPT_TLS_VERSION'?
 1230 |                           MYSQL_OPT_TLS_CIPHERSUITES, tls_cipher_suites);
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                           MYSQL_OPT_TLS_VERSION
src/mysql_capi.c:1230:27: note: each undeclared identifier is reported only once for each function it appears in

How to repeat:
build connector with mysql 5.7 headers
[20 Jan 2020 5:12] MySQL Verification Team
Hello Arkadiusz,

Thank you for the report and feedback.
Verified as described.

regards,
Umesh
[5 May 2020 15:06] Nuno Mariz
Posted by developer:
 
Connector/Python 8.0.x C extension should be built against MySQL 8.0.x servers.