Bug 2219728 - package using <crash/defs.h> FTBFS: decl conflict with strlcpy
Summary: package using <crash/defs.h> FTBFS: decl conflict with strlcpy
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: crash
Version: rawhide
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: ---
Assignee: lijiang
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-05 02:14 UTC by Frank Ch. Eigler
Modified: 2023-07-25 03:02 UTC (History)
4 users (show)

Fixed In Version: crash-8.0.3-4.fc39
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-25 03:02:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-887 0 None None None 2023-07-05 02:17:48 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.