Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 692668 - net-voip/yate-6.1.0[mysql] fails with dev-db/mysql-connector-c-8: server/mysqldb.cpp:505:6: error: ‘my_bool’ was not declared in this scope
Summary: net-voip/yate-6.1.0[mysql] fails with dev-db/mysql-connector-c-8: server/mysq...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Radio project
URL:
Whiteboard:
Keywords: PATCH
: 692852 (view as bug list)
Depends on:
Blocks: mysql-8
  Show dependency tree
 
Reported: 2019-08-21 10:23 UTC by Attila Tóth
Modified: 2024-04-24 08:39 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix-my_bool-error.diff (fix-my_bool-error.diff,530 bytes, patch)
2019-08-21 10:29 UTC, Attila Tóth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Tóth 2019-08-21 10:23:52 UTC
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
Comment 1 Attila Tóth 2019-08-21 10:25:39 UTC
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
Comment 2 Attila Tóth 2019-08-21 10:29:18 UTC
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.
Comment 3 Arfrever Frehtes Taifersar Arahesis 2019-08-26 02:01:37 UTC
*** Bug 692852 has been marked as a duplicate of this bug. ***
Comment 4 Jaco Kroon 2020-05-03 13:35:46 UTC
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.
Comment 5 Petr Vaněk gentoo-dev 2024-04-24 08:39:20 UTC
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(+)