Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 692562 - dev-tcltk/mysqltcl-3.052-r1 : ./.../mysqltcl.c:914:7: error: unknown type name my_bool
Summary: dev-tcltk/mysqltcl-3.052-r1 : ./.../mysqltcl.c:914:7: error: unknown type nam...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks: mysql-8
  Show dependency tree
 
Reported: 2019-08-19 19:05 UTC by Toralf Förster
Modified: 2022-12-24 17:28 UTC (History)
6 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.65 KB, text/plain)
2019-08-19 19:05 UTC, Toralf Förster
Details
dev-tcltk:mysqltcl-3.052-r1:20190819-185532.log (dev-tcltk:mysqltcl-3.052-r1:20190819-185532.log,7.18 KB, text/plain)
2019-08-19 19:05 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,26.29 KB, text/plain)
2019-08-19 19:05 UTC, Toralf Förster
Details
environment (environment,18.70 KB, text/plain)
2019-08-19 19:06 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,10.02 KB, application/x-bzip)
2019-08-19 19:06 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,7.56 KB, application/x-bzip)
2019-08-19 19:06 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,8.23 KB, application/x-bzip)
2019-08-19 19:06 UTC, Toralf Förster
Details
mysqlctl-3.052-mysql8-my_bool_typedef.patch (mysqlctl-3.052-mysql8-my_bool_typedef.patch,361 bytes, patch)
2020-05-31 03:07 UTC, Adam Feldman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-08-19 19:05:49 UTC
      |                               ^~~~~~
./generic/mysqltcl.c: In function ‘Mysqltcl_Connect’:
./generic/mysqltcl.c:914:7: error: unknown type name ‘my_bool’; did you mean ‘bool’?
  914 |       my_bool reconnect = 1;
      |       ^~~~~~~
      |       bool

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib_hardened-20190819-081805

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *




emerge -qpvO dev-tcltk/mysqltcl
[ebuild  N    ] dev-tcltk/mysqltcl-3.052-r1
Comment 1 Toralf Förster gentoo-dev 2019-08-19 19:05:52 UTC
Created attachment 587570 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-08-19 19:05:54 UTC
Created attachment 587572 [details]
dev-tcltk:mysqltcl-3.052-r1:20190819-185532.log
Comment 3 Toralf Förster gentoo-dev 2019-08-19 19:05:57 UTC
Created attachment 587574 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2019-08-19 19:06:00 UTC
Created attachment 587576 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2019-08-19 19:06:02 UTC
Created attachment 587578 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-08-19 19:06:05 UTC
Created attachment 587580 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2019-08-19 19:06:08 UTC
Created attachment 587582 [details]
temp.tbz2
Comment 8 dieter ferdinand 2020-05-09 10:12:13 UTC
hello,
same problem with the actual packages on 32 and 64 bit system.

goodby
Comment 9 dieter ferdinand 2020-05-09 10:52:12 UTC
hello,
i have analysed that problem and insert the line:
typedef char my_bool;
in mysql/mysql.h

this is definded in mariadb/mysql.h but mysqltcl use mysql/mysql.h to compile the program and this don't work while type my_bool is missing in this include.

i test the program and it works.

goodby
Comment 10 artbody 2020-05-28 08:58:38 UTC
i can confirm 
dieter ferdinand

typedef char my_bool;
in mysql/mysql.h

this is definded in mariadb/mysql.h but mysqltcl use mysql/mysql.h to compile the program and this don't work while type my_bool is missing in this include.

i test the program and it works.

goodby
Comment 11 Adam Feldman gentoo-dev 2020-05-31 03:07:50 UTC
Created attachment 642800 [details, diff]
mysqlctl-3.052-mysql8-my_bool_typedef.patch

A little hackish, but should work.
Comment 12 dieter ferdinand 2020-07-22 19:34:28 UTC
hello,
it's not possible to patch mysql.h because some other programs with the same problem define this type.
this make problems, if they use an other type for my_bool.

the source of mysql-tcl must be changed to define this type, if it is not defined by mysql.h.

goodby
Comment 13 Agostino Sarubbo gentoo-dev 2021-01-13 08:10:52 UTC
Dear treecleaner@:

I'm still able to reproduce this issue right now.

Since it has not been fixed for a long time, I'd suggest to evaluate if it is the case to remove this package from the tree. Thanks
Comment 14 Larry the Git Cow gentoo-dev 2022-12-23 18:26:14 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=158af6bdf1458555d87fd95cb08b9462218a0ff9

commit 158af6bdf1458555d87fd95cb08b9462218a0ff9
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2022-12-23 18:25:42 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2022-12-23 18:26:11 +0000

    package.mask: Last rite dev-tcltk/mysqltcl
    
    Bug: https://bugs.gentoo.org/692562
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 15 Larry the Git Cow gentoo-dev 2022-12-24 17:28:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7324eada9db40f31248030db07b71b0864c263e9

commit 7324eada9db40f31248030db07b71b0864c263e9
Author:     Alfredo Tupone <tupone@gentoo.org>
AuthorDate: 2022-12-24 17:27:53 +0000
Commit:     Alfredo Tupone <tupone@gentoo.org>
CommitDate: 2022-12-24 17:28:27 +0000

    dev-tcltk/mysqltcl: fix with newer mysql API
    
    Closes: https://bugs.gentoo.org/692562
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 dev-tcltk/mysqltcl/files/mysqltcl-3.05-API.patch | 11 +++++++++++
 dev-tcltk/mysqltcl/mysqltcl-3.052-r1.ebuild      |  7 +++++--
 2 files changed, 16 insertions(+), 2 deletions(-)