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.
Thank you for reporting it! I will backport the upstream commit.
Fedora commit: https://src.fedoraproject.org/rpms/curl/c/ad400d6dddabfb99aec78004b4c197ff17eb281a?branch=f37
FEDORA-2023-47b45d025f has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-47b45d025f
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.
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.