Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 886603 - sci-visualization/grace-5.1.25_p13-r2 fails to compile (CLANG-STRICTER-SYSTEM): configure: error: Mtif has not been found
Summary: sci-visualization/grace-5.1.25_p13-r2 fails to compile (CLANG-STRICTER-SYSTEM...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard: ~arch only
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-12-18 10:10 UTC by Agostino Sarubbo
Modified: 2024-10-29 18:21 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,55.34 KB, text/plain)
2022-12-18 10:10 UTC, Agostino Sarubbo
Details
1-config.log (1-config.log,108.72 KB, text/plain)
2022-12-18 10:10 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 2022-12-18 10:10:54 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-visualization/grace-5.1.25_p13-r1 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-18 10:10:56 UTC
Created attachment 843357 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-12-18 10:10:57 UTC
Created attachment 843359 [details]
1-config.log

1-config.log
Comment 3 Eli Schwartz gentoo-dev 2024-04-26 15:03:45 UTC
conftest.c: In function 'main':
conftest.c:112:9: error: implicit declaration of function 'XmRegisterConverters'; did you mean 'XtRegisterCaseConverter'? [-Werror=implicit-function-declaration]
  112 |         XmRegisterConverters();
      |         ^~~~~~~~~~~~~~~~~~~~
      |         XtRegisterCaseConverter
conftest.c:115:11: error: implicit declaration of function 'exit' [-Werror=implicit-function-declaration]
  115 |           exit(1);
      |           ^~~~
conftest.c:109:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  108 | #include <Xm/XmAll.h>
  +++ |+#include <stdlib.h>
  109 |       int main(void) {
Comment 4 Agostino Sarubbo gentoo-dev 2024-04-30 07:16:40 UTC
gcc14_tinderbox has reproduced this issue with version 5.1.25_p13-r2 - Updating summary.
Comment 5 Larry the Git Cow gentoo-dev 2024-09-03 01:09:13 UTC
The bug has been closed via the following commit(s):

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

commit f28a41f0ae6e45908049affbe9ed3fbff6bde573
Author:     Eli Schwartz <eschwartz@gentoo.org>
AuthorDate: 2024-09-03 00:38:49 +0000
Commit:     Eli Schwartz <eschwartz@gentoo.org>
CommitDate: 2024-09-03 00:41:09 +0000

    sci-visualization/grace: update to latest debian patches; fix modern C
    
    Closes: https://bugs.gentoo.org/886603
    Closes: https://bugs.gentoo.org/908528
    Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>

 sci-visualization/grace/Manifest                   |   1 +
 .../grace/files/grace-configure-c99.patch          |  89 +++++++++++++++
 sci-visualization/grace/grace-5.1.25_p17.ebuild    | 120 +++++++++++++++++++++
 3 files changed, 210 insertions(+)