Bug 2354525 - perl-WWW-Curl-4.17-42.fc43 FTBFS: curlopt-constants.c:44:63: error: ‘CURL_HAS_DECLSPEC_ATTRIBUTE’ undeclared
Summary: perl-WWW-Curl-4.17-42.fc43 FTBFS: curlopt-constants.c:44:63: error: ‘CURL_HAS...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-WWW-Curl
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Emmanuel Seyman
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F43FTBFS, RAWHIDEFTBFS
TreeView+ depends on / blocked
 
Reported: 2025-03-24 13:12 UTC by Petr Pisar
Modified: 2025-05-04 22:28 UTC (History)
4 users (show)

Fixed In Version: perl-WWW-Curl-4.17-42.fc43
Clone Of:
Environment:
Last Closed: 2025-05-04 22:28:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Debian BTS 1101234 0 None None None 2025-04-13 07:22:18 UTC
Github szbalint WWW--Curl issues 29 0 None open libwww-curl-perl: FTBFS: curlopt-constants.c:44:63: error: 'CURL_HAS_DECLSPEC_ATTRIBUTE' undeclared 2025-04-13 07:22:18 UTC

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


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