Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943726 - sys-libs/db-5.3.28-r10 fails to compile: env_config.c:75:49: error: initialization of int ()(void) from incompatible pointer type int ()(DB_ENV , const char ) {aka int ()(struct __db_env , const char )} [-Wincompatible-pointer-types]
Summary: sys-libs/db-5.3.28-r10 fails to compile: env_config.c:75:49: error: initializ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-18 07:57 UTC by Agostino Sarubbo
Modified: 2024-11-26 06:42 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,904.65 KB, text/plain)
2024-11-18 07:57 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-11-18 07:57:30 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-libs/db-5.3.28-r10 fails to compile.
Discovered on: amd64 (internal ref: lto_tinderbox)
System: LTO-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#LTO)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0003
Comment 1 Agostino Sarubbo gentoo-dev 2024-11-18 07:57:32 UTC
Created attachment 908942 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-11-18 07:58:24 UTC
same on  sys-libs/db-6.0.35-r5
Comment 3 Kim B. Sindalsen 2024-11-20 20:52:57 UTC
Same on sys-libs/db-5.3.28-r11

libtool: compile:  x86_64-pc-linux-gnu-cc -c -I. -I/var/tmp/portage/sys-libs/db-5.3.28-r11/work/db-5.3.28/src -D_GNU_SOURCE -D_REENTRANT -O2 -pipe -march=goldmont --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=16384 -Werror=strict-aliasing -Werror=odr -Werror=lto-type-mismatch -Wstack-protector -fgraphite-identity -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -flto=2 -fuse-linker-plugin -fno-fat-lto-objects -ftree-vectorize -fuse-ld=bfd /var/tmp/portage/sys-libs/db-5.3.28-r11/work/db-5.3.28/src/env/env_file.c  -fPIC -DPIC -o .libs/env_file.o
/var/tmp/portage/sys-libs/db-5.3.28-r11/work/db-5.3.28/src/env/env_config.c:75:49: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(DB_ENV *, const char *)' {aka 'int (*)(struct __db_env *, const char *)'} [-Wincompatible-pointer-types]
   75 |     { "add_data_dir",           CFG_STRING,     __env_add_data_dir      },
      |                                                 ^~~~~~~~~~~~~~~~~~
Comment 4 Larry the Git Cow gentoo-dev 2024-11-26 06:42:33 UTC
The bug has been closed via the following commit(s):

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

commit dd7bec4afac3ace3943008ff5ed7b7ad6e499d27
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-26 06:41:20 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-26 06:41:20 +0000

    sys-libs/db: build w/ -std=gnu17
    
    No comment required.
    
    Closes: https://bugs.gentoo.org/943726
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-libs/db/db-5.3.28-r10.ebuild | 2 ++
 sys-libs/db/db-5.3.28-r11.ebuild | 2 ++
 sys-libs/db/db-5.3.28-r9.ebuild  | 2 ++
 sys-libs/db/db-6.0.35-r4.ebuild  | 4 +++-
 sys-libs/db/db-6.0.35-r5.ebuild  | 2 ++
 5 files changed, 11 insertions(+), 1 deletion(-)