Bug 2143306

Summary: FTBFS with autoconf 2.72
Product: [Fedora] Fedora Reporter: Frédéric Bérat <fberat>
Component: krb5Assignee: Julien Rische <jrische>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: abokovoy, antorres, ftrivino, jrische, j, npmccallum, sam, sbose, ssorce
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: krb5-1.21-2.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-11 01:26:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2143303    

Description Frédéric Bérat 2022-11-16 15:10:31 UTC
Autoconf 2.72 seems to be under preparation upstream, I therefore started to build dependent components to verify that they can be built once it lands in Fedora.

Your component fails to build with the new version of autoconf, due to the following error:

---
checking for IPv6 compile-time support without -DINET6... ./configure: line 10559: syntax error near unexpected token `;;'
./configure: line 10559: `rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;'
+ cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Kerberos 5 configure 1.19.2, which was
generated by GNU Autoconf 2.72c.47-75861.  Invocation command line was
---

Further investigation as shown a bug in the aclocal.m4 file from krb5, a misplace closing "fi".
Please look at the following diff for further details:

diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 5afb96e..cb9a1bf 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -404,8 +404,9 @@ AC_TRY_COMPILE([
   struct sockaddr_in6 in;
   AF_INET6;
   IN6_IS_ADDR_LINKLOCAL (&in.sin6_addr);
-],krb5_cv_inet6=yes,krb5_cv_inet6=no)])
+],krb5_cv_inet6=yes,krb5_cv_inet6=no)
 fi
+])
 AC_MSG_RESULT($krb5_cv_inet6)
 if test "$krb5_cv_inet6" = no && test "$ac_cv_func_inet_ntop" = yes; then
 AC_MSG_CHECKING(for IPv6 compile-time support with -DINET6)
-- 
2.38.1

Comment 1 Julien Rische 2022-11-17 14:22:45 UTC
Hello Frédéric,

Thank you for reporting the issue. I opened an upstream pull request:
https://github.com/krb5/krb5/pull/1272

Comment 2 Julien Rische 2022-11-21 08:34:00 UTC
The fix has been merged upstream.

Comment 3 Julien Rische 2023-06-12 14:48:32 UTC
Fedora pull request:
https://src.fedoraproject.org/rpms/krb5/pull-request/36

Comment 4 Fedora Update System 2023-06-13 13:41:11 UTC
FEDORA-2023-5cd7789569 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-5cd7789569

Comment 5 Fedora Update System 2023-06-13 13:55:21 UTC
FEDORA-2023-5cd7789569 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2023-07-10 08:51:57 UTC
FEDORA-2023-f7841e7a29 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-f7841e7a29

Comment 7 Fedora Update System 2023-07-11 01:26:44 UTC
FEDORA-2023-f7841e7a29 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.