From 96947f15c6283730eff4ea7b45a67316011cf909 Mon Sep 17 00:00:00 2001 From: Mattias Ellert Date: Thu, 8 Jan 2026 13:01:58 +0100 Subject: [PATCH] Fix linking error with gcc 16 This is the same fix for using versioned symbols with link time optimization that is already applied in globus-common. After updating to gcc 16 it is needed for globus-gsi-proxy-core too. --- gsi/proxy/proxy_core/source/configure.ac | 7 ++++--- gsi/proxy/proxy_core/source/library/Makefile.am | 5 ++++- packaging/debian/globus-gsi-proxy-core/debian/changelog.in | 6 ++++++ packaging/fedora/globus-gsi-proxy-core.spec | 5 ++++- 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/gsi/proxy/proxy_core/source/configure.ac b/gsi/proxy/proxy_core/source/configure.ac index 8d96206bbe..cc2a4a2f66 100644 --- a/gsi/proxy/proxy_core/source/configure.ac +++ b/gsi/proxy/proxy_core/source/configure.ac @@ -1,6 +1,6 @@ AC_PREREQ([2.60]) -AC_INIT([globus_gsi_proxy_core],[9.8],[https://github.com/gridcf/gct/issues]) +AC_INIT([globus_gsi_proxy_core],[9.9],[https://github.com/gridcf/gct/issues]) AC_CONFIG_MACRO_DIR([m4]) AC_SUBST([MAJOR_VERSION], [${PACKAGE_VERSION%%.*}]) AC_SUBST([MINOR_VERSION], [${PACKAGE_VERSION##*.}]) @@ -50,6 +50,7 @@ if test "$use_symbol_versions" = yes; then AC_DEFINE(USE_SYMBOL_VERSIONS, 1, [Use backward-compatibility symbol versioning]) fi +AM_CONDITIONAL(USES_LTO, [echo $CFLAGS | grep -q -- -flto]) AC_PATH_PROGS([DOXYGEN], doxygen) AM_CONDITIONAL([ENABLE_DOXYGEN], [test "$DOXYGEN" != ""]) @@ -58,8 +59,8 @@ AC_OUTPUT( globus-gsi-proxy-core.pc globus-gsi-proxy-core-uninstalled.pc Makefile - library/Makefile + library/Makefile library/Doxyfile test/Makefile - version.h + version.h ) diff --git a/gsi/proxy/proxy_core/source/library/Makefile.am b/gsi/proxy/proxy_core/source/library/Makefile.am index 3b7acf0afe..0adefa4732 100644 --- a/gsi/proxy/proxy_core/source/library/Makefile.am +++ b/gsi/proxy/proxy_core/source/library/Makefile.am @@ -9,9 +9,12 @@ libglobus_gsi_proxy_core_la_CPPFLAGS = \ libglobus_gsi_proxy_core_la_LIBADD = $(PACKAGE_DEP_LIBS) $(OPENSSL_LIBS) libglobus_gsi_proxy_core_la_LDFLAGS = \ -version-info $(MAJOR_VERSION):$(MINOR_VERSION):$(AGE_VERSION) \ - -no-undefined + -no-undefined if USE_SYMBOL_VERSIONS libglobus_gsi_proxy_core_la_LDFLAGS += -Wl,--version-script,$(srcdir)/sym +if USES_LTO +libglobus_gsi_proxy_core_la_LDFLAGS += -flto-partition=none +endif endif libglobus_gsi_proxy_core_la_SOURCES = \ diff --git a/packaging/debian/globus-gsi-proxy-core/debian/changelog.in b/packaging/debian/globus-gsi-proxy-core/debian/changelog.in index 0baf49bf9a..01f88c2a08 100644 --- a/packaging/debian/globus-gsi-proxy-core/debian/changelog.in +++ b/packaging/debian/globus-gsi-proxy-core/debian/changelog.in @@ -1,3 +1,9 @@ +globus-gsi-proxy-core (9.9-1+gct.@distro@) @distro@; urgency=medium + + * Fix linking error with gcc 16 + + -- Mattias Ellert Thu, 08 Jan 2026 12:54:27 +0100 + globus-gsi-proxy-core (9.8-1+gct.@distro@) @distro@; urgency=medium * Fix some compiler warnings diff --git a/packaging/fedora/globus-gsi-proxy-core.spec b/packaging/fedora/globus-gsi-proxy-core.spec index b065888717..d6ed217397 100644 --- a/packaging/fedora/globus-gsi-proxy-core.spec +++ b/packaging/fedora/globus-gsi-proxy-core.spec @@ -3,7 +3,7 @@ Name: globus-gsi-proxy-core %global soname 0 %global _name %(echo %{name} | tr - _) -Version: 9.8 +Version: 9.9 Release: 1%{?dist} Summary: Grid Community Toolkit - Globus GSI Proxy Core Library @@ -143,6 +143,9 @@ make %{?_smp_mflags} check VERBOSE=1 %doc %{_pkgdocdir}/GLOBUS_LICENSE %changelog +* Thu Jan 08 2026 Mattias Ellert - 9.9-1 +- Fix linking error with gcc 16 + * Thu Mar 10 2022 Mattias Ellert - 9.8-1 - Fix some compiler warnings