Bug 2354525

Summary: perl-WWW-Curl-4.17-42.fc43 FTBFS: curlopt-constants.c:44:63: error: ‘CURL_HAS_DECLSPEC_ATTRIBUTE’ undeclared
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-WWW-CurlAssignee: Emmanuel Seyman <emmanuel>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: emmanuel, mspacek, perl-devel, xavier
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/perl-WWW-Curl
Whiteboard:
Fixed In Version: perl-WWW-Curl-4.17-42.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-05-04 22:28:14 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: 2339432    

Description Petr Pisar 2025-03-24 13:12:23 UTC
perl-WWW-Curl-4.17-42.fc43 fails to build in Fedora 43:

gcc -c  -I/usr/include -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -DVERSION=\"4.17\" -DXS_VERSION=\"4.17\" -fPIC "-I/usr/lib64/perl5/CORE"   Curl.c
[...]
curlopt-constants.c:44:63: error: ‘CURL_HAS_DECLSPEC_ATTRIBUTE’ undeclared (first use in this function)
   44 |             if (strEQ(name, "HAS_DECLSPEC_ATTRIBUTE")) return CURL_HAS_DECLSPEC_ATTRIBUTE;
      |                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~

A difference between passing and failing build root is at <https://koschei.fedoraproject.org/build/20062692>. An upgrade of libcurl-devel from 8.12.1-1.fc43 to 8.13.0~rc1-2.fc43 looks suspicious.
1

Comment 1 Emmanuel Seyman 2025-05-04 22:28:14 UTC
Fixed in perl-WWW-Curl-4.17-42.fc43:
https://koji.fedoraproject.org/koji/buildinfo?buildID=2709581