#1150494 fis-gtm: FTBFS with LTO: error: type of 'grlist' does not match original declaration

Package:
fis-gtm
Source:
fis-gtm
Description:
metapackage for the latest version of FIS-GT.M database
Submitter:
Viktor Pashaiev
Date:
2026-10-10 08:21:04 UTC
Severity:
normal
Tags:
#1150494#5
Date:
2026-10-10 08:19:23 UTC
From:
To:
Dear Maintainer,

When building fis-gtm with Link Time Optimization (-flto) and GCC 15,
the build fails at link time due to mismatched declarations of 'grlist'
combined with upstream's -Werror:
  sr_port/mupip_set_journal.c:57:23: error: type of 'grlist' does not match original declaration [-Werror=lto-type-mismatch]
  sr_port/gbldefs.c:247:5: note: type 'struct tp_region' should match type 'struct mu_set_rlist'

In Ubuntu, LTO is enabled by default. To allow the package to build cleanly,
we disable LTO by adding 'optimize=-lto' to DEB_BUILD_MAINT_OPTIONS in debian/rules.

Attached is the patch.

Thanks,
Viktor Pashaiev