Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 884415 - dev-tcltk/tdom-0.9.2 fails to compile (CLANG-STRICTER-SYSTEM): tdomStubInit.c:33:5: error: incompatible function pointer types initializing SchemaData ()(void) (aka struct SchemaData_ ()(void)) with an expression of type SchemaData (Tcl_Interp ) (aka str
Summary: dev-tcltk/tdom-0.9.2 fails to compile (CLANG-STRICTER-SYSTEM): tdomStubInit.c...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: TCL/TK Project
Keywords: PATCH
Depends on:
Blocks: clang-16-porting
  Show dependency tree
Reported: 2022-12-05 07:57 UTC by Agostino Sarubbo
Modified: 2023-01-19 07:07 UTC (History)
0 users

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

build.log (build.log,83.03 KB, text/plain)
2022-12-05 07:57 UTC, Agostino Sarubbo
Fixed tdom-0.9.2-nothreads.patch (tdom-0.9.2-nothreads.patch,1.14 KB, patch)
2022-12-31 21:27 UTC, Carlos
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-12-05 07:57:36 UTC

Issue: dev-tcltk/tdom-0.9.2 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-12-05 07:57:39 UTC
Created attachment 840193 [details]

build log and emerge --info
Comment 2 Carlos 2022-12-31 21:27:31 UTC
Created attachment 846284 [details, diff]
Fixed tdom-0.9.2-nothreads.patch

This is due to tdom-0.9.2-no-threads.patch changing tdomGetSchemadata's prototype only at the top of the header, but not on the following struct. I'm proposing a revision that makes the changes in both places.

By the way, tdom 0.9.3 won't need this patch, and is not affected.
Comment 3 Larry the Git Cow gentoo-dev 2023-01-18 19:41:27 UTC
The bug has been closed via the following commit(s):

commit fe5a5b96e8920196238a55b8c39e5f31adfc88a6
Author:     Alfredo Tupone <>
AuthorDate: 2023-01-18 19:40:40 +0000
Commit:     Alfredo Tupone <>
CommitDate: 2023-01-18 19:40:40 +0000

    dev-tcltk/tdom: clang6
    Signed-off-by: Alfredo Tupone <>

 dev-tcltk/tdom/files/tdom-0.9.2-clang6.patch               | 11 +++++++++++
 dev-tcltk/tdom/{tdom-0.9.2.ebuild => tdom-0.9.2-r1.ebuild} |  3 ++-
 2 files changed, 13 insertions(+), 1 deletion(-)
Comment 4 Larry the Git Cow gentoo-dev 2023-01-19 07:07:36 UTC
The bug has been referenced in the following commit(s):

commit 42267f3f7730c31ad246d7ea62357fe1a240bff3
Author:     Alfredo Tupone <>
AuthorDate: 2023-01-19 07:07:01 +0000
Commit:     Alfredo Tupone <>
CommitDate: 2023-01-19 07:07:20 +0000

    dev-tcltk/tdom: add 0.9.3
    Signed-off-by: Alfredo Tupone <>

 dev-tcltk/tdom/Manifest          |  1 +
 dev-tcltk/tdom/tdom-0.9.3.ebuild | 79 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)