# Broken cfortran.h in ROOT

**URL:** <https://root-forum.cern.ch/t/broken-cfortran-h-in-root/65002>\
**Category:** ROOT\
**Tags:** build\
**Created:** [September 25, 2026, 1:15pm UTC](https://root-forum.cern.ch/t/broken-cfortran-h-in-root/65002 "2026-09-25T13:15:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [September 25, 2026, 1:15pm UTC](https://root-forum.cern.ch/t/broken-cfortran-h-in-root/65002/1 "2026-09-25T13:15:10Z")

</div>

@ferhue You are distributing (in ROOT 6.40 and older, as of 2026.09.25) a very old, outdated “[`cfortran.h`](https://github.com/root-project/root/blob/master/montecarlo/eg/inc/cfortran.h)” file (valid for gfortran versions up to and including 7.x), which is additionally broken (in ROOT 6.38 and newer) by the [“Modernize deprecated C header includes”](https://github.com/root-project/root/commit/0f338acb8f53f4e021425f67c274158373ffdf06) patch.

Please take the newest “[`cfortran.h`](https://gitlab.cern.ch/DPHEP/cernlib/cernlib/-/blob/master/cfortran/cfortran.h)” file, provided by the newest [CERNLIB](https://gitlab.cern.ch/DPHEP/cernlib/cernlib) distribution.  
Do NOT “modernize” it. It is, and it should remain, an ordinary C include file.

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [September 25, 2026, 1:41pm UTC](https://root-forum.cern.ch/t/broken-cfortran-h-in-root/65002/2 "2026-09-25T13:41:48Z")

</div>

Hi, I do not have permission access to that Gitlab repo.  
Indeed it should not have been modified, it was an overlook.  
There are plans for deprecation or move-renaming of this header since make install would overwrite the same name header by apt install libcfitsio-dev see [[eg] deprecate cfortran and Hepevt headers that are implementation details by ferdymercury · Pull Request #23388 · root-project/root · GitHub](https://github.com/root-project/root/pull/23388)

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [September 25, 2026, 1:57pm UTC](https://root-forum.cern.ch/t/broken-cfortran-h-in-root/65002/3 "2026-09-25T13:57:03Z")

</div>

After a quick look at the current “[`cfitsio/cfortran.h`](https://github.com/heasarc/cfitsio/blob/develop/cfortran.h)” file, it seems to me that it is also fine (maybe even better, as it tries to support the C23 standard too).

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [October 9, 2026, 1:57pm UTC](https://root-forum.cern.ch/t/broken-cfortran-h-in-root/65002/4 "2026-10-09T13:57:12Z")

</div>

Closed on October 9, 2026, 1:57pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
