From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7F7CC385843A; Wed, 21 Dec 2022 16:27:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7F7CC385843A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1671640068; bh=iUbyux6S5droaFCozmUq1FrJd2Mze4sqABxeO3cmnJI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=igvZqlYYca58OmFK5l/2wVGqlS9RFcxRUJGZL+k+3DgBUyFPoybwPL0Drag/hnjpC 2JudD3war/jCp3Rlp8U8zNLVM4oIj0EVsx106tmmHCXgLq03RPILKIgNOK2eedoeAS L4F1pajdGgJQIo3foTQDwU/oLVQR27kyCjnc93vw= From: "andrew at ishiboo dot com" To: elfutils-devel@sourceware.org Subject: [Bug debuginfod/29926] debuginfod using deprecated curl (since 7.55.0) curl API, fails to build with 7.87.0 Date: Wed, 21 Dec 2022 16:27:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: debuginfod X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: andrew at ishiboo dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29926 --- Comment #1 from Andrew Paprocki --- Created attachment 14535 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D14535&action=3Ded= it Fix selection of non-deprecated Curl API The `CURLINFO_SIZE_DOWNLOAD_T` and `CURLINFO_CONTENT_LENGTH_DOWNLOAD_T` identifiers are `enum`s, not pre-processor definitions, so the current `#ifdef` logic is not selecting the newer API. This results in the older identifiers being used and they now generate errors when compiled against Curl 7.87, which has silently deprecated them, causing GCC to emit `-Werror=3Ddeprecated-declarations`. Instead, the newer identifiers were added in Curl 7.55, so explicitly check for `CURL_AT_LEAST_VERSION(7, 55, 0)` instead of the current logic. This eliminates the error when compiling against Curl 7.87. Ref: https://github.com/curl/curl/pull/1511 --=20 You are receiving this mail because: You are on the CC list for the bug.=