https://bugs.openldap.org/show_bug.cgi?id=10011
Issue ID: 10011 Summary: Incompatibilities with stricter C99 compilers Product: OpenLDAP Version: 2.6.4 Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: build Assignee: bugs@openldap.org Reporter: sam@gentoo.org Target Milestone: ---
Newer C compilers (>= Clang 16 and likely >= GCC 14) reject some constructs removed in C99 like implicit function declarations and implicit ints. Some compilers are also starting to reject obsolete K&R prototypes which were removed in C23.
I've filed an MR at https://git.openldap.org/openldap/openldap/-/merge_requests/605 to address the issues in configure as well as a small number of issues in the codebase itself.
For more information, see LWN.net [0] or LLVM's Discourse [1], the Gentoo wiki [2], or the (new) c-std-porting mailing list [3]. [0] https://lwn.net/Articles/913505/ [1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-i... [2] https://wiki.gentoo.org/wiki/Modern_C_porting [3] hosted at lists.linux.dev.
https://bugs.openldap.org/show_bug.cgi?id=10011
Sam James sam@gentoo.org changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://git.openldap.org/op | |enldap/openldap/-/merge_req | |uests/605
https://bugs.openldap.org/show_bug.cgi?id=10011
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|https://git.openldap.org/op | |enldap/openldap/-/merge_req | |uests/605 |
--- Comment #1 from Quanah Gibson-Mount quanah@openldap.org --- https://git.openldap.org/openldap/openldap/-/merge_requests/605
https://bugs.openldap.org/show_bug.cgi?id=10011
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs_review | Target Milestone|--- |2.5.15
https://bugs.openldap.org/show_bug.cgi?id=10011
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |TEST
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- head:
Commits: • 14f81bc4 by Sam James at 2023-02-10T23:22:43+00:00 ITS#10011 build: fix compatibility with stricter C99 compilers
• 480be3ee by Sam James at 2023-02-10T23:22:53+00:00 ITS#10011 contrib: fix old-style K&R declarations
• b260205f by Sam James at 2023-02-10T23:22:54+00:00 ITS#10011 servers: fix -Wstrict-prototypes
https://bugs.openldap.org/show_bug.cgi?id=10011
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- RE26:
• eac40944 by Sam James at 2023-04-17T18:48:15+00:00 ITS#10011 build: fix compatibility with stricter C99 compilers
• 965bfbb2 by Sam James at 2023-04-17T18:48:23+00:00 ITS#10011 contrib: fix old-style K&R declarations
• 58b6c59c by Sam James at 2023-04-17T18:48:29+00:00 ITS#10011 servers: fix -Wstrict-prototypes
https://bugs.openldap.org/show_bug.cgi?id=10011
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|TEST |FIXED
--- Comment #4 from Quanah Gibson-Mount quanah@openldap.org --- RE25:
• 4a9aaf7c by Sam James at 2023-04-17T18:48:40+00:00 ITS#10011 build: fix compatibility with stricter C99 compilers
• ca22c4d9 by Sam James at 2023-04-17T18:48:45+00:00 ITS#10011 contrib: fix old-style K&R declarations
• 139effd7 by Sam James at 2023-04-17T18:48:49+00:00 ITS#10011 servers: fix -Wstrict-prototypes
https://bugs.openldap.org/show_bug.cgi?id=10011
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED