Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919307 - dev-lua/luadbi-0.7.2-r1 - dbd/.../statement.c: error: assignment to _Bool from incompatible pointer type int [-Wincompatible-pointer-types]
Summary: dev-lua/luadbi-0.7.2-r1 - dbd/.../statement.c: error: assignment to _Bool fro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Conrad Kostecki
URL:
Whiteboard: fixed in 0.7.2-r2
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-12-05 20:11 UTC by Toralf Förster
Modified: 2024-10-31 19:55 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,22.20 KB, text/plain)
2023-12-05 20:11 UTC, Toralf Förster
Details
dev-lua:luadbi-0.7.2-r1:20231205-195222.log (dev-lua:luadbi-0.7.2-r1:20231205-195222.log,4.10 KB, text/plain)
2023-12-05 20:11 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,101.09 KB, application/x-xz)
2023-12-05 20:11 UTC, Toralf Förster
Details
environment (environment,78.95 KB, text/plain)
2023-12-05 20:11 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2023-12-05 20:11 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,25.51 KB, application/x-xz)
2023-12-05 20:11 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,105.57 KB, application/x-xz)
2023-12-05 20:11 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,26.33 KB, application/x-xz)
2023-12-05 20:11 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-12-05 20:11:48 UTC
too long lines were shrinked:

mkdir -p build
x86_64-pc-linux-gnu-gcc -c -o build/dbd_common.o dbd/common.c -I/usr/include/lua5.1 -pedantic -Wall -shared -fPIC -DPIC -std=c99 -O2 -pipe -march=native -fno-diagnostics-color -I.
x86_64-pc-linux-gnu-gcc -c -o build/dbd_mysql_main.o dbd/mysql/main.c -I/usr/include/lua5.1 -pedantic -Wall -shared -fPIC -DPIC -std=c99 -O2 -pipe -march=native -fno-diagnostics-color -I. -shared -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -I -lmysqlclient
x86_64-pc-linux-gnu-gcc -c -o build/dbd_mysql_connection.o dbd/mysql/connection.c -I/usr/include/lua5.1 -pedantic -Wall -shared -fPIC -DPIC -std=c99 -O2 -pipe -march=native -fno-diagnostics-color -I. -shared -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -I -lmysqlclient
x86_64-pc-linux-gnu-gcc -c -o build/dbd_mysql_statement.o dbd/mysql/statement.c -I/usr/include/lua5.1 -pedantic -Wall -shared -fPIC -DPIC -std=c99 -O2 -pipe -march=native -fno-diagnostics-color -I. -shared -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -I -lmysqlclient
dbd/mysql/statement.c: In function statement_execute:
dbd/mysql/statement.c:221:33: error: assignment to _Bool * from incompatible pointer type int * [-Wincompatible-pointer-types]
  221 |                 bind[i].is_null = (int*)1;
      |                                 ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-20231123-162118

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.73.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
  [1]   php8.1
  [2]   php8.2 *
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit 0afb3c7e9aad82e2cb4612cae271f4414342847f
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Dec 5 18:32:30 2023 +0000

    2023-12-05 18:32:29 UTC

emerge -qpvO dev-lua/luadbi
[ebuild  N    ] dev-lua/luadbi-0.7.2-r1  USE="mysql sqlite -postgres -test" LUA_TARGETS="lua5-1 -lua5-3 -lua5-4 -luajit"
Comment 1 Toralf Förster gentoo-dev 2023-12-05 20:11:49 UTC
Created attachment 877643 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-05 20:11:49 UTC
Created attachment 877644 [details]
dev-lua:luadbi-0.7.2-r1:20231205-195222.log
Comment 3 Toralf Förster gentoo-dev 2023-12-05 20:11:51 UTC
Created attachment 877645 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2023-12-05 20:11:52 UTC
Created attachment 877646 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-12-05 20:11:53 UTC
Created attachment 877647 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-05 20:11:54 UTC
Created attachment 877648 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-05 20:11:55 UTC
Created attachment 877649 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-05 20:11:57 UTC
Created attachment 877650 [details]
temp.tar.xz
Comment 9 Larry the Git Cow gentoo-dev 2024-01-05 23:05:17 UTC
The bug has been closed via the following commit(s):

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

commit 2b37dc824d13625662d79bfa6ab97c59e3419124
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2024-01-05 23:04:36 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2024-01-05 23:04:36 +0000

    dev-lua/luadbi: fix incompatible-pointer-types
    
    Closes: https://bugs.gentoo.org/919307
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 .../luadbi-0.7.2-incompatible-pointer-type.patch   | 163 +++++++++++++++++++++
 .../luadbi-0.7.2-incompatible-pointer-type2.patch  |  29 ++++
 dev-lua/luadbi/luadbi-0.7.2-r1.ebuild              |   8 +-
 3 files changed, 198 insertions(+), 2 deletions(-)
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-06 05:51:16 UTC
Please remember to revbump for these fixes, per https://wiki.gentoo.org/wiki/Modern_C_porting#Is_this_cosmetic.3F.
Comment 11 Larry the Git Cow gentoo-dev 2024-01-06 13:07:18 UTC
The bug has been referenced in the following commit(s):

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

commit fa80a50168c30e8c3c9d7f68494ee2e54ab29658
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2024-01-06 13:06:14 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2024-01-06 13:07:07 +0000

    dev-lua/luadbi: rebvump due modern C porting
    
    Bug: https://bugs.gentoo.org/919307
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 dev-lua/luadbi/{luadbi-0.7.2-r1.ebuild => luadbi-0.7.2-r2.ebuild} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)