delorie.com/archives/browse.cgi | search |
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=DoRplZoKWP7J8TJSZoVDcFftaFbS5Io5OBXQ22LF3H6P/VGM23vYH | |
XDtLUV5zMg/Guvb53NhbiBbKdQ6X42DLVYJY0qQ72PfNqMr2kUvqJox7bGMLptI3 | |
zrkHpv30xVeyss/dsG4Ln4T9LDRng1Mvz33TsR9THkWN+sZt5qxwGE= | |
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=h9DPTodFk47w1hp2UQfp3yXvP+I=; b=x1oInL00QDz7Z1EibQ4T3nGgGiBd | |
P9dgjYTAk0HsKtA2fcFog/yLbn8Sf2NJpj3379q2ocZT+QHa39J3nMd6junq091B | |
1oSUTdFt47aaimbBULiyhtA1q12IiaV21md+bFcigJlRR9Ue4Gfs46HMoELsICzy | |
4bemRshFcSZ0dbs= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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=patiently |
X-HELO: | drew.franken.de |
X-Spam-Score: | -2.9 |
Date: | Tue, 27 Feb 2018 11:38:03 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: environ: fix link error on 64-bit Cygwin |
Message-ID: | <20180227103803.GC3806@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> <20180131144046 DOT GD4223 AT calimero DOT vinschen DOT de> <0d34d107-43ff-18f5-4284-b8a6ada9a927 AT cornell DOT edu> |
MIME-Version: | 1.0 |
In-Reply-To: | <0d34d107-43ff-18f5-4284-b8a6ada9a927@cornell.edu> |
User-Agent: | Mutt/1.9.2 (2017-12-15) |
--yLVHuoLXiP9kZBkt Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Feb 26 16:28, Ken Brown wrote: > On 1/31/2018 9:40 AM, Corinna Vinschen wrote: > > On Jan 31 07:52, Eric Blake wrote: > > > Forwarding from the gnulib list; is this something we should fix in > > > cygwin proper? > >=20 > > 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... > >=20 > > > 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-impor= t -o .libs/test-environ.exe test-environ.o -L/usr/local/cygwin64/lib libte= sts.a ../lib/.libs/libunistring.dll.a -liconv libtests.a -L/usr/local/cygwi= n64/lib > > > > test-environ.o:test-environ.c:(.rdata$.refptr.environ[.refptr.envir= on]+0x0): undefined reference to `environ' > > > > collect2: error: ld returned 1 exit status > > > >=20 > > > > This fixes it. > > > > [...] > > > > +_GL_EXTERN_C __declspec(dllimport) char **environ; > >=20 > > But, other than that, an equivalent newlib patch would be ok. >=20 > Before patching newlib, please note that Bruno's patch doesn't work on > 32-bit Cygwin. Projects (like emacs and clisp) that use gnulib's unistd > module with that patch will get link errors like this: >=20 > undefined reference to `_imp__environ' >=20 > I have no idea why this error occurs only on 32-bit. >=20 > I've made Bruno aware of the problem, and I'm waiting to see what he comes > up with. No worries. I'll wait patiently for a newlib patch. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --yLVHuoLXiP9kZBkt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlqVNQoACgkQ9TYGna5E T6CPUQ//aJpF53vFNyHDp0FKm7tdE1bVdkx4Strwa4+7sZjJgWtK/T9JZX1FW9KF nQQaj07STGbZgKCS4hCnfL98sin1VQq1aeKZMkxk5NKXgk3FMt5ttyEd87JLJYbE 94JYMwoqBfIyEts0RMO5Cxs1JGVjHREycUfBbIy1XNpzlqNVoLMTFDrVPwLnaZaa w2sHXo+nSmJdjwlFL37mDEhpYwV6vt7X0tZEsJv8oXFb9QM+TITvUROphWyj3iT2 xyCjQvWaowvizYGK4m0cOqa3bnQ0nTrFU34AneDXD+9WIpj3KGi5B2Az2+A6Fi5N 3qafL0gP1KdwrLdPOfZJSjgCvPS+/aYq+qxd9l1UPAtpyfGZ/9csDItoPaIpuXXZ BUBOlMNPLFxx6cl3EASQVVkG1A3TJvDpT8HJ3bYfGfkUomai0gSSE9kX3gdazCTl 7dCmeC03TkJpW/En1ERAKEM/Oxr/9FVDumHhpPiWiQucPUpO9VPirkDd+wTqdjju dkNy3jBDdT8rg8un7FBA87fDszitWSBDkzE68MsZwZq1lgd1DVQ99AtQ5aC8JQ/Z mheAfSHTgwMlKdAFxgo6gP87DBjtG0K9TavyuRdJNdW9cN1O31IJ634KXZr5H9pR 48l66PfJcgd1ganBvhBv5AMokUbzreogq/cwN2xwNxjUwkiXYLQ= =VesV -----END PGP SIGNATURE----- --yLVHuoLXiP9kZBkt--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |