Bug 2219728

Summary: package using <crash/defs.h> FTBFS: decl conflict with strlcpy
Product: [Fedora] Fedora Reporter: Frank Ch. Eigler <fche>
Component: crashAssignee: lijiang
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: anderson, lijiang, ruyang, sergio
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: crash-8.0.3-4.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-25 03:02:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Frank Ch. Eigler 2023-07-05 02:14:46 UTC
An autoconf test for 
AC_CHECK_HEADER(crash/defs.h)
fails on rawhide (gcc 13.1.1, glibc 2.37.9000), with this message:

/usr/include/crash/defs.h:5555:8: error: conflicting types for 'strlcpy'; have 'size_t(char *, char *, size_t)' {aka 'long unsigned int(char *, char *, long unsigned int)'}
 5555 | size_t strlcpy(char *, char *, size_t);
      |        ^~~~~~~
In file included from /usr/include/crash/defs.h:35:
/usr/include/string.h:506:15: note: previous declaration of 'strlcpy' with type 'size_t(char * restrict,  const char * restrict,  size_t)' {aka 'long unsigned int(char * restrict,  const char * restrict,  long unsigned int)'}
  506 | extern size_t strlcpy (char *__restrict __dest,
      |               ^~~~~~~
configure:11766: $? = 1
configure: failed program was:
| /* confdefs.h */


Reproducible: Always




Observed as FTBFS of systemtap rpm, failing during %configure stage.