X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=oNU9XB6Rv2PEDy7J3/jGBH6emVibCAFirVmzLgCcfrM0EVrSDZ3WM 7H1v25BY86e3JfqgvHerR3Trck68NvHj/Xo3J437h/RRIUXIIwcaL5APK6MU5iRq ER8CDOCRnrQUC3SV3cFN4dvE9a1Ui/sDNBJ4iq3L4T5QbIsI1Sc0mc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=T0KJJXKlu9D5YEcbSonti4ceyrE=; b=rZ+2b19HOcI+jD3+BsBCwV93EYkT z2yF1MhbbRp3quYPoS+BSU1/RiDzcujvR/t1YJYM5aDpP/3qS6DI6h2yQdVyLuGA 6VheXZ84aWAzmDzCIta+EWdvnhJYoCkrWKIIzqM0rpXWlrN9Fh0qAOmtvCtluROv R++RfQiwCwhUr30= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-101.9 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: drew.franken.de Date: Wed, 31 Jan 2018 15:40:46 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: environ: fix link error on 64-bit Cygwin Message-ID: <20180131144046.GD4223@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <36131639 DOT liFsmjX0ip AT omega> <0d2666a8-1037-fc9c-a17f-72cc59e9d977 AT redhat DOT com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NtwzykIc2mflq5ck" Content-Disposition: inline In-Reply-To: <0d2666a8-1037-fc9c-a17f-72cc59e9d977@redhat.com> User-Agent: Mutt/1.9.1 (2017-09-22) --NtwzykIc2mflq5ck Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jan 31 07:52, Eric Blake wrote: > Forwarding from the gnulib list; is this something we should fix in > cygwin proper? Why does anybody remove the -Wl,--disable-auto-import flag? What for? The idea was to never use this flag on Cygwin and to get rid of the dllimport/dllexport nonsense... > On 01/31/2018 04:42 AM, Bruno Haible wrote: > > On 64-bit Cygwin, a libunistring build fails like this: > > [...] > > libtool: link: x86_64-pc-cygwin-gcc -g -O2 -Wl,--disable-auto-import -o= .libs/test-environ.exe test-environ.o -L/usr/local/cygwin64/lib libtests.= a ../lib/.libs/libunistring.dll.a -liconv libtests.a -L/usr/local/cygwin64/= lib > > test-environ.o:test-environ.c:(.rdata$.refptr.environ[.refptr.environ]+= 0x0): undefined reference to `environ' > > collect2: error: ld returned 1 exit status > >=20 > > This fixes it. > > [...] > > +_GL_EXTERN_C __declspec(dllimport) char **environ; But, other than that, an equivalent newlib patch would be ok. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --NtwzykIc2mflq5ck Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlpx1W4ACgkQ9TYGna5E T6ADCw//XvlrOxGAjxTUQLJxOviM1dd8Wck/ARoD7Koe2vRCRjplaiIR1jRfWHRD TqRJMJFfPq1QeFvocjEeBZNwGR0i1lzOm/0aXRMBwHiCX6h3pt2Ptfd2xjmGkmkv WMeIFirJZ5DXNHWUZ1Ov+smxuUzELJlz9Zl0NsvGBjkcPdlgli+bWSzJatPFnl39 LXuqqK1bHfSMXkGJ8T0PnsciiX0FpMzqZ8SxuhVXSbz3OrUg6XfXMnsq/us54uf1 AnY6yAVY5XLFpaEgySey+UFTKCnbwMCgGb1kDRlKEoKQiOEIrLAUUBiS0rp4rgVN Il9eCnCwoDJOs1GLy7IVUcAgzdACh2EfygTSqu9Iumije/At2hu8ACiJ7aP2IW3g kc2IvXtDtd+BlEFBEMCqP2rGr9hrzgs9buK16PzIypK0Mh9qL974mKUavWXs9hP2 DjZG0uZJA2TrJXIaeeWGfMFQNbGANtTclPrcnaw8nwras3upFokERZ8/Xs8po4jX fMrZayWskv6IEO2ndXqMPD6xtLwERrdEMVbBzkl985JopeVfUM808wEF1dPYYlVX XcZI/mt/Gjc6GvJCHI98fYveX1YDho5CBKpg5Tv4GdgMDBn+VDUHvpM6yeyq8uc9 VPlAWFQIoaCqMHNzc3GWFrh8LgJGBBWeHSlmlZSi8yhUr+n4Dts= =nRtB -----END PGP SIGNATURE----- --NtwzykIc2mflq5ck--