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...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: TCL/TK Project
URL:
Whiteboard: fixed in 0.9.3
Keywords: PATCH
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-12-05 07:57 UTC by Agostino Sarubbo
Modified: 2024-10-29 17:23 UTC (History)
0 users

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


Attachments
build.log (build.log,83.03 KB, text/plain)
2022-12-05 07:57 UTC, Agostino Sarubbo
Details
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
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-tcltk/tdom-0.9.2 fails to compile (CLANG-STRICTER-SYSTEM).
Discovered on: amd64 (internal ref: clang-stricter_tinderbox)

NOTE:
(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:
https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
https://wiki.gentoo.org/wiki/Modern_C_porting
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-05 07:57:39 UTC
Created attachment 840193 [details]
build.log

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

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

commit fe5a5b96e8920196238a55b8c39e5f31adfc88a6
Author:     Alfredo Tupone <tupone@gentoo.org>
AuthorDate: 2023-01-18 19:40:40 +0000
Commit:     Alfredo Tupone <tupone@gentoo.org>
CommitDate: 2023-01-18 19:40:40 +0000

    dev-tcltk/tdom: clang6
    
    Closes: https://bugs.gentoo.org/884415
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

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

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

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

    dev-tcltk/tdom: add 0.9.3
    
    Bug: https://bugs.gentoo.org/884415
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 dev-tcltk/tdom/Manifest          |  1 +
 dev-tcltk/tdom/tdom-0.9.3.ebuild | 79 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2024-10-29 17:23:15 UTC
The bug has been referenced in the following commit(s):

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

commit 16baae0250870f34c3ad3c35ecbab86f530009a9
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-10-29 17:22:56 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-10-29 17:22:56 +0000

    dev-tcltk/tdom: drop 0.9.2-r1
    
    Bug: https://bugs.gentoo.org/884415
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 dev-tcltk/tdom/Manifest                         |  1 -
 dev-tcltk/tdom/files/tdom-0.9.2-clang6.patch    | 11 ----
 dev-tcltk/tdom/files/tdom-0.9.2-nothreads.patch | 22 -------
 dev-tcltk/tdom/tdom-0.9.2-r1.ebuild             | 83 -------------------------
 4 files changed, 117 deletions(-)