server/mysqldb.cpp: In member function ‘int {anonymous}::MyAcct::initConns()’: server/mysqldb.cpp:505:6: error: ‘my_bool’ was not declared in this scope; did you mean ‘bool’? 505 | my_bool reconn = 1; | ^~~~~~~ | bool server/mysqldb.cpp:506:72: error: ‘reconn’ was not declared in this scope 506 | mysql_options(mySqlConn->m_conn,MYSQL_OPT_RECONNECT,(const char*)&reconn); | ^~~~~~ make[1]: *** [Makefile:296: server/mysqldb.yate] Error 1 make[1]: Leaving directory '/var/tmp/portage/net-voip/yate-6.1.0/work/yate/modules' make: *** [Makefile:186: modules] Error 2 * ERROR: net-voip/yate-6.1.0::gentoo failed (compile phase): * emake failed
This is related to >=dev-db/mysql-8 and >=dev-db/mysql-connector-c-8 version bump and a candidate to the tracker bug: https://bugs.gentoo.org/692570
Created attachment 587736 [details, diff] fix-my_bool-error.diff Proposed patch fixing the problem related to the new version of mysql-8 & mysql-connector-c-8.
*** Bug 692852 has been marked as a duplicate of this bug. ***
Note that it fails this way even with USE=-mysql, as long as mysql-connector-c is installed, this fails. So the configure is likely not honouring --without-mysql properly.
The bug has been fixed in the following commit: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29491675582613ff3ffb5d0021ff1db0c147f49f commit 29491675582613ff3ffb5d0021ff1db0c147f49f Author: Jaco Kroon <jaco@uls.co.za> AuthorDate: Tue Dec 29 15:50:49 2020 +0200 Commit: Sam James <sam@gentoo.org> CommitDate: Mon Jan 4 16:32:48 2021 +0000 net-voip/yate: version bump to 6.2.0 Includes fixups for USE=mysql. DISCLAIMER: I have no interest in yate itself. However, change is requird for ILBC cleanup. Given the state of the open bugs, I'd actually recommend last-riting yate and yatebts. Signed-off-by: Jaco Kroon <jaco@uls.co.za> Closes: https://bugs.gentoo.org/666012 Signed-off-by: Sam James <sam@gentoo.org> net-voip/yate/Manifest | 1 + net-voip/yate/files/yate-6.2.0-my_bool.patch | 21 +++++++ net-voip/yate/yate-6.2.0.ebuild | 93 ++++++++++++++++++++++++++++ 3 files changed, 115 insertions(+)