delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/08/10/15:15:16

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A4DE33850417
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1597086867;
bh=5N7huqjNveNtdODcLYxymOa+8gNV6rvXZvAns7XEh60=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=sY96lYc3FfqgKq0UPZnIAXjZB7YQiTaxDKlnVqXbx9sq5/jYd8/D6+mVLINMBh2L7
P/x29NBSebukfPFqXFPlNKsGAYc48Ax2stB1IOXEuY/WFIWkB66MHbs6oHs545oi5y
8Cd7G9o6DR9iBK2rXnvIrthUSzyorsff/9kdi8/Y=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 822623857C53
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=bZCbuo41HEbn69MeqgN1nw3B+MJoisRlMGc+lcsRQ+bTNBiTxhnmS7F4onWIxccgH3rr8LmJsMyOL1FZr7w15ulgnewSeUW0PjGXSCvr9RaTJPmbpqXL8n0FiTjaEMhsfaqb6yc0eXRNEn0qKHpnfGGg4k1JywiD2544DO4vmbndoy8WlDmjjHpYPPTjDXTJGQpIL57ffcu0mUflUI/Q9k+NinqLBrxfpd2nRNEAmSCGsVscYubHrQHR9OfeKgY3eozxxUrw3+H6RGwPY82kR35jgbVPLGvRqLmcnZDKcWKfZeXpYq4vU/1jI1X+XVSdvmGekjjKhj4sJjDFF31eNg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=EUXhzOJyjXTNSW9tE/bp3EVl7NaCGq5p0ZDocZJoNmk=;
b=KLw6bgUVKOiTj8CZYWNaAJ8giuHiHMrVA90u+xHy2fYLmqEqkzdxLJtZAwzrU6YnvpQJ6C4axJOx9+joike+3s96YCkPzKUo6zhJVbvi8DkWOto0KQgnqcg5EUxBROi8l9uZ7NBhuMnwGbCS4D3HT1ArJXd87zSn/NfAM0mN68Rb+YrtKRxSUjfRKnTNeP6ohrKp6dAPLTggVcCUpWRJLLSaU4j2kvOo8mJNKhEEwiSE+sBr5bsBuIp6Q2EdHVygf1I/JYnCV2Pyq7C4raOTt+5g+VomOzLPoDrkmKspcyXqgRIi3pj/j8WSeYM6W2TJOxwoFInm62K/b1VEzEtzBQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu;
dkim=pass header.d=cornell.edu; arc=none
Subject: Re: [ANNOUNCEMENT] Updated: curl 7.71.1-1
To: cygwin AT cygwin DOT com
References: <announce DOT c4e534c5-4c2e-9c35-3674-5f652695d778 AT SystematicSw DOT ab DOT ca>
<CA+kUOa=-AJxr_2TaZoNerOquMGR8FCzi7hg3DyuvntuQqpAVOg AT mail DOT gmail DOT com>
<CA+kUOakEVPde-W_8jocGZBwNw=wRodKBySRgxAE7_AU8As7FDA AT mail DOT gmail DOT com>
<4f1d6241-c86b-f2f9-7b49-a9f5b998b0eb AT SystematicSw DOT ab DOT ca>
<53c7f2a7-3bd8-f90c-b574-969d6b31f300 AT cornell DOT edu>
<b66aea8b-2764-357c-8602-0a2e780bc90f AT SystematicSw DOT ab DOT ca>
Message-ID: <d66364d2-06c4-3f8e-4989-2426ec9fde9d@cornell.edu>
Date: Mon, 10 Aug 2020 15:14:16 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.11.0
In-Reply-To: <b66aea8b-2764-357c-8602-0a2e780bc90f@SystematicSw.ab.ca>
X-ClientProxiedBy: CH2PR16CA0030.namprd16.prod.outlook.com
(2603:10b6:610:50::40) To MN2PR04MB6176.namprd04.prod.outlook.com
(2603:10b6:208:e3::13)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
X-Originating-IP: [68.175.129.7]
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: bb568501-07d4-4511-8c75-08d83d619456
X-MS-TrafficTypeDiagnostic: MN2PR04MB5583:
X-Microsoft-Antispam-PRVS: <MN2PR04MB55833870237F378907D96182D8440 AT MN2PR04MB5583 DOT namprd04 DOT prod DOT outlook DOT com>
X-MS-Oob-TLC-OOBClassifiers: OLM:10000;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: CPpwyUfBa+/teVWdSc91lOQs0i9+M8k4tnXiINqrvGncE4TaWu/suXdw6LLvUZR9qa8APhqzE8DT02a5mym8ewWPi9rgJA4H+nJI0SvgVS9jfS6AzgnwUThAbifnwLDF5mCg+xG5rmjMgcLlPjVR4CVmpkv5aiuOhZJo+0HkOrZKwyitVq9lMj3SbzAvqDWVDg2sGjJQYbxbBJMlCzusKhMUeMMFKRhv4D/g83kTAeGuqhrLJn7ZM6UK+oUu4KC4WJcpvli1t6qo3deClqMhugl20fPzVOc4HW9pvFjxQu5BBahcIdgovao/H3n2pquMlmDZvuN2kDrsDeKajoYYaWyOYPbZugGlTgEK9kGw/zy2NpXzEfwMUHx5kSN+oYcy81FpiMNZcCFeLlV5s0Qhgppe1WFMBT9YzX44kq9HZjMSplWV9GcNLdq270WpBsEdbqhxAOjUFRmUk+fOipIMvw==
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:MN2PR04MB6176.namprd04.prod.outlook.com; PTR:; CAT:NONE;
SFTY:;
SFS:(4636009)(376002)(136003)(346002)(396003)(39860400002)(366004)(8936002)(5660300002)(31686004)(235185007)(2616005)(8676002)(316002)(786003)(16576012)(83380400001)(956004)(75432002)(16526019)(186003)(26005)(33964004)(52116002)(31696002)(478600001)(966005)(53546011)(86362001)(66616009)(6916009)(66556008)(6486002)(2906002)(15650500001)(36756003)(66946007)(66476007)(43740500002);
DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData: w4dvMRAqYLo69zLw/t8B4darUHgNgzU4FStimFjqvudW6vojYMbJNCcmZtj4E/rh19UFJYKzrKStID76pGM7RjIO8rbWyZScJmdBfZiTO3Y40LS8sSYnNLYroM3Vbadpv2+WPp1MeCG5uppGMX4f29ostAmqC4f2GUSUX6PIbUrMmL3g5Pn0iXDAbOBesMjlO0E7jaL++zS4uUsxef1rRkAoQLoSCvPi6yeT8zQpLddmIsXYy20A/lBRo2rMhmSTWmB7uSjqXw0QSHe7V7KaLwqHQiXMPjr4ocuF4LjddxHsOfVA4CNI9vyeXNIU2SFzLoaUs950vx204USwOKUQi/3Nsyp0qC/h1yl4SUy2Kxs/tguDjdN0dQB01jBNedFz4qMcq2dUK9UPRZ/nr6LyJ/dwT4IRK3w5l9bdijTV7+FOXMo8Tpin6oUrYx9S2AAJsQ16vfxOA8ucDZLEN/6n3sCfBqlath9efkCdkNSNQ+Cofo6M9pXVFbiL5YrNMMutJ4l9GgsIZBmQ1kkSGshC6yegWib2wM6enKwfl0g7Nyr4sGQwhOsHu6HImiUqqBBkcOsFKBYL6IXMh3auX1qWXkJaygfXcTBtgo3Rb9SHPbPshc/33QafWHKYO/I6yqCpMqYMP+qqwUC0ceO9fg0Z4g==
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: bb568501-07d4-4511-8c75-08d83d619456
X-MS-Exchange-CrossTenant-AuthSource: MN2PR04MB6176.namprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2020 19:14:18.5795 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: ihp+j6ABqVMhni3pQIAy51Nwp9UxmcHdK+PkcZbcIYggXii0YOoi1ZbQJ7h/SUm8yOAZIBHxue6ncWGYGPsX5w==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB5583
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_00, DKIM_INVALID,
DKIM_SIGNED, KAM_DMARC_STATUS, KAM_NUMSUBJECT, KAM_SHORT,
MSGID_FROM_MTA_HEADER, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,
SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Ken Brown via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Ken Brown <kbrown AT cornell DOT edu>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

--------------8BB46A093B1912C416D13201
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: quoted-printable

On 8/10/2020 1:33 PM, Brian Inglis wrote:
> On 2020-08-10 08:52, Ken Brown via Cygwin wrote:
>> On 8/9/2020 5:48 PM, Brian Inglis wrote:
>>> On 2020-08-09 12:28, Adam Dinwoodie wrote:
>>>> On Fri, 24 Jul 2020 at 13:56, Adam Dinwoodie wrote:
>>>>> In the failing case, the `/configure` stage includes the following
>>>>> text: `configure: Setting CURL_LDFLAGS to '-lcurl -lnghttp2 -lidn2
>>>>> -lssh -lpsl -lssl -lcrypto -lldap -llber -lbrotlidec -lbrotlidec
>>>>> -lz'`; in the working case using -7.66.0-1, the corresponding line =
is
>>>>> just `configure: Setting CURL_LDFLAGS to '-lcurl'`.
>> [...]
>>> Meanwhile, that info likely comes from:
>>>
>>> $ tail -vn15 /lib/pkgconfig/libcurl.pc
>>> =3D=3D> /lib/pkgconfig/libcurl.pc <=3D=3D
>>> #
>>> prefix=3D/usr
>>> exec_prefix=3D/usr
>>> libdir=3D${exec_prefix}/lib
>>> includedir=3D${prefix}/include
>>> supported_protocols=3D"DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAP=
S LDAP LDAPS
>>> POP3 POP3S RTSP SCP SFTP SMB SMBS SMTP SMTPS TELNET TFTP"
>>> supported_features=3D"SSL IPv6 UnixSockets libz brotli AsynchDNS IDN =
PSL NTLM
>>> NTLM_WB TLS-SRP HTTP2 HTTPS-proxy"
>>>
>>> Name: libcurl
>>> URL: https://curl.haxx.se/
>>> Description: Library to transfer files with ftp, http, etc.
>>> Version: 7.71.1
>>> Libs: -L${libdir} -lcurl
>>> Libs.private: -lnghttp2 -lidn2 -lssh -lpsl -lssl -lcrypto -lldap -llb=
er
>>> -lbrotlidec -lbrotlidec -lz
>>> Cflags: -I${includedir}
>>>
>>> it looks like your git build should be using Libs for dynamic builds =
and adding
>>> Libs.private for static builds
>=20
>> If you look at configure.ac in the git sources, you'll see that it use=
s
>> curl-config, not pkg-config.=A0 The former reports:
>>
>> $ curl-config --libs
>> -lcurl -lnghttp2 -lidn2 -lssh -lpsl -lssl -lcrypto -lldap -llber -lbro=
tlidec
>> -lbrotlidec -lz
>>
>> Yaakov's build of earlier versions of curl used a patch 7.33.0-libdeps=
.patch to
>> prevent the unnecessary libs from being listed.=A0 He even had a comme=
nt at the
>> beginning of the patch, explaining the reason for it: "These are neede=
d only for
>> static linking, but we build with --disable-static".
>=20
> I try to avoid looking at autotools plumbing if I can possibly avoid it=
! ;^>
> Someone cleaned up the approach used, as the patch did not apply and wa=
s dropped.

My point is that the patch shouldn't have been dropped.  It should have b=
een=20
modified to apply to the updated sources.  (I've done this.  See the atta=
ched.)=20
As Yaakov wrote, the patch is needed to prevent 'curl-config --libs' from=
=20
including libs that are only needed for static linking.

With the modified patch applied, curl-config gives the expected result:

$ curl-config --libs
-lcurl

> If you look at my later post, cygport git build and tests worked for me=
 with no
> problems other than at first missing some package build dependencies

Those were not really build dependencies.  They only appeared to be neede=
d=20
because 'curl-config --libs' erroneously included libs that are only need=
ed for=20
static linking.

Ken

--------------8BB46A093B1912C416D13201
Content-Type: text/plain; charset=UTF-8;
 name="7.71.1-libdeps.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="7.71.1-libdeps.patch"

These are needed only for static linking, but we build with --disable-static

--- origsrc/curl-7.71.1/curl-config.in	2020-06-27 18:03:53.000000000 -0400
+++ src/curl-7.71.1/curl-config.in	2020-08-10 14:31:22.719684300 -0400
@@ -160,7 +160,7 @@ while test $# -gt 0; do
         else
            CURLLIBDIR=""
         fi
-        if test "X AT ENABLE_SHARED@" = "Xno" -o "X AT REQUIRE_LIB_DEPS@" = "Xyes"; then
+        if test "X AT ENABLE_SHARED@" = "Xno" -o "X AT REQUIRE_LIB_DEPS@" = "Xnothanks"; then
           echo ${CURLLIBDIR}-lcurl @LIBCURL_LIBS@
         else
           echo ${CURLLIBDIR}-lcurl
--- origsrc/curl-7.71.1/libcurl.pc.in	2020-06-27 18:03:53.000000000 -0400
+++ src/curl-7.71.1/libcurl.pc.in	2020-08-10 14:33:36.069651700 -0400
@@ -35,5 +35,4 @@ URL: https://curl.haxx.se/
 Description: Library to transfer files with ftp, http, etc.
 Version: @CURLVERSION@
 Libs: -L${libdir} -lcurl @LIBCURL_NO_SHARED@
-Libs.private: @LIBCURL_LIBS@
 Cflags: -I${includedir} @CPPFLAG_CURL_STATICLIB@

--------------8BB46A093B1912C416D13201
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

--------------8BB46A093B1912C416D13201--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019