Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 695378 - dev-lua/luadbi-0.5-r6 : dbd/.../statement.c:203:22: error: my_bool undeclared (first use in this function)
Summary: dev-lua/luadbi-0.5-r6 : dbd/.../statement.c:203:22: error: my_bool undeclared...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: mysql-8
  Show dependency tree
 
Reported: 2019-09-22 04:12 UTC by Toralf Förster
Modified: 2020-10-12 02:46 UTC (History)
8 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.25 KB, text/plain)
2019-09-22 04:12 UTC, Toralf Förster
Details
dev-lua:luadbi-0.5-r6:20190921-191709.log (dev-lua:luadbi-0.5-r6:20190921-191709.log,4.62 KB, text/plain)
2019-09-22 04:12 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,42.02 KB, text/plain)
2019-09-22 04:12 UTC, Toralf Förster
Details
environment (environment,88.49 KB, text/plain)
2019-09-22 04:12 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.42 KB, application/x-bzip)
2019-09-22 04:12 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,545 bytes, application/x-bzip)
2019-09-22 04:12 UTC, Toralf Förster
Details
fix compilation with mysql-connector-c-8 (file_695378.txt,2.24 KB, patch)
2020-03-09 15:19 UTC, Dominic Jänichen
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-09-22 04:12:34 UTC
x86_64-pc-linux-gnu-gcc -c -o build/dbd_mysql_statement.o dbd/mysql/statement.c -O2 -pipe -march=native -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . -I/usr/include/mysql
dbd/mysql/statement.c: In function ‘statement_execute’:
dbd/mysql/statement.c:203:22: error: ‘my_bool’ undeclared (first use in this function); did you mean ‘bool’?
  203 |   bind[i].is_null = (my_bool*)1;
      |                      ^~~~~~~
      |                      bool

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-20190920-192958

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

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) *

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.13.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

repository timestamp:

==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 21 Sep 2019 18:52:16 +0000

emerge -qpvO dev-lua/luadbi
[ebuild  N    ] dev-lua/luadbi-0.5-r6  USE="mysql sqlite -postgres"
Comment 1 Toralf Förster gentoo-dev 2019-09-22 04:12:38 UTC
Created attachment 590574 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-09-22 04:12:41 UTC
Created attachment 590576 [details]
dev-lua:luadbi-0.5-r6:20190921-191709.log
Comment 3 Toralf Förster gentoo-dev 2019-09-22 04:12:43 UTC
Created attachment 590578 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2019-09-22 04:12:46 UTC
Created attachment 590580 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2019-09-22 04:12:49 UTC
Created attachment 590582 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-09-22 04:12:52 UTC
Created attachment 590584 [details]
logs.tbz2
Comment 7 Dominic Jänichen 2020-03-09 15:19:54 UTC
Created attachment 617616 [details, diff]
fix compilation with mysql-connector-c-8

This patch fixes compilation for me.
Additionally, remove invalid assignment to is_null as per https://github.com/mwild1/luadbi/issues/56.
Comment 8 Thomas Capricelli 2020-04-27 01:17:10 UTC
luadbi update is blocked on several computer here because of this bug.
Comment 9 Larry the Git Cow gentoo-dev 2020-10-11 23:36:34 UTC
The bug has been closed via the following commit(s):

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

commit af72c733c6f6687dde699b73c9197c20ab5cf97d
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2020-10-11 23:33:07 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2020-10-11 23:33:07 +0000

    dev-lua/luadbi: fix compilation with mysql-8
    
    Closes: https://bugs.gentoo.org/695378
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 dev-lua/luadbi/files/luadbi-0.5-mysql-8.patch | 78 +++++++++++++++++++++++++++
 dev-lua/luadbi/luadbi-0.5-r5.ebuild           |  1 +
 dev-lua/luadbi/luadbi-0.5-r6.ebuild           |  5 +-
 3 files changed, 83 insertions(+), 1 deletion(-)