Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883413 - sys-libs/db-5.3.28-r8 fails to compile (CLANG-STRICTER-SYSTEM): dbstl_common.h:57:2: error: "No appropriate TLS modifier defined."
Summary: sys-libs/db-5.3.28-r8 fails to compile (CLANG-STRICTER-SYSTEM): dbstl_common....
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
: 883879 (view as bug list)
Depends on:
Blocks: clang-16-porting
  Show dependency tree
Reported: 2022-11-28 12:41 UTC by Agostino Sarubbo
Modified: 2023-03-02 03:48 UTC (History)
2 users (show)

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

build.log.xz (build.log.xz,62.09 KB, application/x-xz)
2022-11-28 12:41 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-11-28 12:41:34 UTC

Issue: sys-libs/db-5.3.28-r8 fails to compile (CLANG-STRICTER-SYSTEM).
Discovered on: amd64 (internal ref: clang-stricter_tinderbox)

(CLANG-STRICTER-SYSTEM) in the summary means that the bug was found on a machine that runs clang with stricter mode

This machine uses clang with CFLAGS/CXXFLAGS=-Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types

See also:
Comment 1 Agostino Sarubbo gentoo-dev 2022-11-28 12:41:36 UTC
Created attachment 837953 [details]

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-07 15:39:27 UTC
*** Bug 883879 has been marked as a duplicate of this bug. ***
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-11 05:24:41 UTC
With db-5.3.28-r8 I also get:
-ignoreme: warning: incompatible function pointer types passing 'int ()' to parameter of type '__sighandler_t' (aka 'void (*)(int)') [-Wincompatible-function-pointer-types]
+ignoreme: error: incompatible function pointer types passing 'int ()' to parameter of type '__sighandler_t' (aka 'void (*)(int)') [-Werror,-Wincompatible-function-pointer-types]
             (void) signal(SIGSEGV, catch_sig);
Comment 4 Larry the Git Cow gentoo-dev 2023-02-12 02:04:32 UTC
The bug has been closed via the following commit(s):

commit 7e2da48dc49a0d45dc9d6bcc0553c9dd94a66b0e
Author:     Sam James <>
AuthorDate: 2023-02-12 02:02:13 +0000
Commit:     Sam James <>
CommitDate: 2023-02-12 02:04:14 +0000

    sys-libs/db: fix configure w/ clang 16
    Signed-off-by: Sam James <>

 .../{db-4.8.30-r7.ebuild => db-4.8.30-r8.ebuild}   |   3 +-
 .../{db-5.3.28-r8.ebuild => db-5.3.28-r9.ebuild}   |   3 +-
 sys-libs/db/files/db-4.8.30-clang16.patch          | 281 ++++++++++++++++++
 sys-libs/db/files/db-5.3.28-clang16.patch          | 325 +++++++++++++++++++++
 4 files changed, 610 insertions(+), 2 deletions(-)