build error with MySQL 8.3

Issue #67 resolved
Bevan Kay created an issue

Hi ๐Ÿ‘‹,
Homebrew maintainer here. We are trying to build libzdb with the 8.3.0 release of MySQL, but we are seeing a build error to an API deprecation - https://dev.mysql.com/doc/relnotes/mysql/8.3/en/news-8-3-0.html#mysqld-8-3-0-deprecation-removal

โ€Œ

  src/db/mysql/MysqlConnection.c:100:17: error: call to undeclared function 'mysql_ssl_set'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                  mysql_ssl_set(db, 0,0,0,0,0);
                  ^
  src/db/mysql/MysqlConnection.c:100:17: note: did you mean 'mysql_close'?
  /opt/homebrew/opt/mysql-client/include/mysql/mysql.h:797:14: note: 'mysql_close' declared here
  void STDCALL mysql_close(MYSQL *sock);
               ^
  1 error generated.

https://github.com/Homebrew/homebrew-core/actions/runs/7618536528/job/20753996641?pr=160037#step:3:1157

Comments (5)

  1. Tildeslash repo owner

    I believe this commit should fix the problem. I donโ€™t have mysql-8.3.0 installed at the moment. Would you be able to test if this fixes the problem? Just pull from libzdb master

  2. Bevan Kay reporter

    The commit you referenced seems to have fixed the issue, and the build is now passing. Thanks!

  3. Log in to comment