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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type; q=dns; s=default; b=LUPIl6 a+JXdhNjwH3FuaQFhV2gFniq4140d2/lDWo4U5Kox1WszJppwA6K434oCVgY1XAf fhDzzRuz27ZXb/0DxSCi3ohXBaooa+n9Z5W8Et1J/RSZLJt1GdoWPdBNxLHobleU 7KdC+qWfpGSvjBMVS0jMUHu11cKh5KKwL4xXw= 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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type; s=default; bh=plaEPHA9kVUM +i/osaC7NJlkM1g=; b=BOP2Rrs+D/uBawG33ZMXuXsNvNcy+4KAQ0HxFEWzYo+j +eHRZl92+Lz/lGE37ry0zREZoAunXBT5Nzbi9Aq1MG1C/upGb57wvvLVG09CxjZF Xbn/7pnMjWn6cO9B2kPppe02Dl57c8PBPjxUFDoNzcw3l7715N/WH4LqLEbR+PM= 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 X-Spam-SWARE-Status: No, score=-5.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_PGP_SIGNED,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RDNS_NONE,SPF_PASS autolearn=no version=3.3.1 X-Received: by 10.66.49.68 with SMTP id s4mr73565063pan.98.1375265646603; Wed, 31 Jul 2013 03:14:06 -0700 (PDT) Message-ID: <51F8E342.5020509@gmail.com> Date: Wed, 31 Jul 2013 18:13:22 +0800 From: JonY <10walls AT gmail DOT com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: [BUG ?] Failed to rebuild Cygwin References: <003401ce8dcb$a630b310$f2921930$%fedin AT samsung DOT com> <20130731095949 DOT GV4166 AT calimero DOT vinschen DOT de> In-Reply-To: <20130731095949.GV4166@calimero.vinschen.de> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2EKGWXVVIGHMSCWRQQOJS" X-Virus-Found: No ------enig2EKGWXVVIGHMSCWRQQOJS Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 7/31/2013 17:59, Corinna Vinschen wrote: > On Jul 31 12:55, Pavel Fedin wrote: >> Hello! >> >> I have occasionally found a little problem in path check code. Attempt = to >> reference thing like '/..' fails, however at least under Linux this reso= lves >> to root, and you can actually attempt to go past-root as many times as y= ou >> want, e. g. '/../../../..'. The bug was occasionally revealed by 'make' = test >> suite. >> I wanted to fix it, but cannot rebuild Cygwin DLL. The build ends up in: >> --- cut --- >> x86_64-w64-mingw32-g++ -o strace.exe strace.o path.o -L/usr/lib/w32api >> -static -lntdll >> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/crt2.o: In function >> `__tmainCRTStartup': >> /usr/src/debug/mingw64-x86_64-runtime-3.0b_svn5935-1/crt/crtexe.c:285: >> undefined reference to `_set_invalid_parameter_handler' >> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libmingwex.a(lib64_lib= ming >> wex_a-mingw_pformat.o): In function `__pformat_exponent_digits': >> /usr/src/debug/mingw64-x86_64-runtime-3.0b_svn5935-1/stdio/mingw_pformat= .c:1 >> 76: undefined reference to `_get_output_format' >> collect2: error: ld returned 1 exit status >> Makefile:143: recipe for target `cygwin-console-helper.exe' failed >> make[3]: *** [cygwin-console-helper.exe] Error 1 >> --- cut --- >> Likely some MinGW CRT bug ? >=20 > This also occurs on Fedora right now. >=20 > AFAICS, the culprit is that the latest Cygwin w32api package doesn't > match the files from mingw-crt for some reason. >=20 > The build uses -L/usr/lib/w32api (-L/usr/i686-pc-cygwin/lib/w32api when > cross building on Fedora), so the libs are taken from the w32api-runtime > package. However, the compiler uses the default crt file > /usr/i686-w64-mingw32/sys-root/mingw/lib/../lib/crt2.o which is provided > by the mingw-crt package. >=20 > This is a bug in Cygwin's Makefile since you should never use the w32api > stuff for mingw executables, only for Cygwin executables, but still... >=20 > JonY, do you have an idea why the mingw-crt differs that much from the > w32api stuff that the above error occurs? >=20 Likely, because _set_invalid_parameter_handler was a stub in mingwex that loads msvcrt.dll, it was disabled as a quickfix, as it was using mingw-w64 stdlib.h directly. I did not think Cygwin win32api might need it. The build should be fixed on trunk, I will roll out a new release soon. ------enig2EKGWXVVIGHMSCWRQQOJS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (MingW32) iQIcBAEBAgAGBQJR+ONmAAoJEHE7X+KcFF1F8ooQAIkuDs2s0MpQzbISIgMxvrrc 4tgPh+gOzKomwuocJBYoGxs5wvr4UhMYQaFYLBqIOTrH0/qu6vb54O1d5O9hy60B wD9CDbRUt21IDqk8YcocZKY468fUPuukj5EGWwZzSl3KoTmtAp/xcrdznkPBEmvh /RWdWFr7h/Kg67lah9IGO7mepX5BXoOpBenqr3dc2F6+Os//kg4xXrYEmmnmNkBx gj5C+mYt3oDhRgeVdAvvLMmWHq5Y2Ltudp8irDBU0wY17uaqBBw8TEgTKHKFOfN3 vnVfFmBLzEbtIkUlk9m6p5zLLFTurnvotug1ZmxaFDqsWkOIFkcPqgGyAPJB72Xv N9BxsmwGiPEvCKHQqPn4daVGSae9swK1gfJ8LDYvQP+jd4gMP3fA8MV0bCrB4VxL LOwg5nwAnmtPb+gKn1vmA46ArMHPSfgQJR5hVQofsacyvIUxCaQxwI+pTShZ6oHd HTmhB83qznA4cz0djT6PwptYQgngd8my4oUl5YJxPgkEEAc1OTCUTpIyAD2lWsd4 YeOcWq09SQfv8nrsX//ZVzuLorqdBqsE0CSKlnDwrSQIgpFnC2SMe+zCSR0KX44S uY1zAuLVfdi6PoVtiYkHo/ayRBMIiGWdvikQ1JBvsmhsl9OGfRbNjuJ9MvxAQJRX jQuXwO0ZnOwsdp3igFNf =I6Qj -----END PGP SIGNATURE----- ------enig2EKGWXVVIGHMSCWRQQOJS--