Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 2173299 - Curl 7.85 compilation issue with curl_easy_header() function
Summary: Curl 7.85 compilation issue with curl_easy_header() function
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: curl
Version: 37
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Kamil Dudka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-25 14:31 UTC by Tomasz Cz
Modified: 2023-03-01 01:58 UTC (History)
6 users (show)

Fixed In Version: curl-7.85.0-7.fc37
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-01 01:58:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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