Bug 2173299

Summary: Curl 7.85 compilation issue with curl_easy_header() function
Product: [Fedora] Fedora Reporter: Tomasz Cz <tomek3319>
Component: curlAssignee: Kamil Dudka <kdudka>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: kdudka, lzaoral, msekleta, paul, svashisht, vmihalko
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: curl-7.85.0-7.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-01 01:58:49 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:

Description Tomasz Cz 2023-02-25 14:31:04 UTC
Description of problem:
Compilation issue on Fedora 37 with libcurl 7.85 and function curl_easy_header() regardless of the compiler. Libcurl should be updated to at least 7.86.


Version-Release number of selected component (if applicable):
Compilation breaks on libcurl 7.85. Working libcurl is at least 7.86. This issue was fixed by https://github.com/curl/curl/commit/9c822a99944fd185ba58d8bca935ad5c5e6cd3e1


How reproducible:
Compile the code below on Fedora 37 with OS version gcc (12.2.1) or clang (15.0.7)


Steps to Reproduce:
1. Following code does not compile:
//curl_issue.cpp
#include <curl/curl.h>                                                                                            
int main()
{
return curl_easy_header(nullptr, nullptr, 0, 0, 0, nullptr);
}

2. Install dependencies libcurl and libcurl-devel
2. Compile this file.
   g++ curl_issue.cpp -lcurl


Actual results:
/usr/bin/ld: /tmp/ccuqRE3g.o: in function `main':
asd.cpp:(.text+0x25): undefined reference to `curl_easy_header(void*, char const*, unsigned long, unsigned int, int, curl_header**)'
collect2: error: ld returned 1 exit status


Expected results:
Code that uses curl_easy_header() function should compile.

Comment 1 Kamil Dudka 2023-02-27 09:11:13 UTC
Thank you for reporting it!  I will backport the upstream commit.

Comment 3 Fedora Update System 2023-02-27 12:46:39 UTC
FEDORA-2023-47b45d025f has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-47b45d025f

Comment 4 Fedora Update System 2023-02-28 02:53:53 UTC
FEDORA-2023-47b45d025f has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-47b45d025f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-47b45d025f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-03-01 01:58:49 UTC
FEDORA-2023-47b45d025f has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.