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=fLCktU/h/BU2P17dNyGCLnohzN+BklLWXm2gVylRSok49CXfgAu8m b5pfbrKhwmkZxBeuOc/EcWY1xrzsfzYaZ/crrx0iV+rxWQUWUbOkO78jgKlK+XLg KyorGe53ka01HO/5ujEhmIa9tIsAYKW7EwskL8XsrybJWaSsl/OYTI= 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=6GnD/VvIxRSHUZ1EgNsZZunQQqk=; b=EGjco+l/BBGz5DOq1VJs4zQ9Kckl YLwa3nnaNQ+Lr3J2r8/mLLPu4ROFFPAXA6Y+uMgb87VMFUon9egDveQ+Om/Tn0MN xUqQZX4ABDoP2jfm05VZvOJeoDKx6j8uaP9NlkmGZ3ErYYbJSnqB7UGE7/bks9pa yoTdhCJVuQG1HEQ= 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=0.2 required=5.0 tests=AWL,BAYES_50,RDNS_NONE autolearn=no version=3.3.1 Date: Mon, 29 Jul 2013 21:26:58 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: cyglsa-config not working properly in cygwin 1.7.22 Message-ID: <20130729192658.GH4166@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <2B53C7C1-54F1-4477-91B4-F23CD4A55F0F AT basissw DOT com> <20130729165818 DOT GE4166 AT calimero DOT vinschen DOT de> <6A02E3C2-3208-4526-A066-C76AF86AA372 AT basissw DOT com> <20130729190814 DOT GF4166 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20130729190814.GF4166@calimero.vinschen.de> User-Agent: Mutt/1.5.21 (2010-09-15) On Jul 29 21:08, Corinna Vinschen wrote: > On Jul 29 13:21, J. P. Abelanet wrote: > > On Jul 29, 2013, at 11:58 AM, Corinna Vinschen wrote: > > > > > > > > No. I can confirm that this happens, and it seems the cyglsa.dll > > > doesn't get loaded at all. But as for the reason, I have no idea. > > > It's the same source code we're using for ages. We switched the > > > compiler to build it, but that's it. So, for some reason, when > > > building the stuff with mingw-w64-gcc, the result is not runnable. > > > > > > Sorry, but I'm at a loss right now. > > > > > Thanks for the quick reply. If in the future you have any ideas, > > I'll be happy to test them out. > > I think I found the problem. The older compiler didn't reorder > functions for optimization purposes, but the new one does. The entry > point for the cyglsa DLL was not explicitely mentioned, but it was based > on the fact that it is the first function in the source code. > > However, the new compiler reorders function by default with -O2 > optimization. So the entry point was not at the start of the executable > anymore and the LSA failed to load the cyglsa DLL. I changed the > Makefile to specify the entry point of the DLL explicitely to make sure > the right function is called at load time. > > This seems to work again in my testing on 32 and 64 bit, but more > testing never hurts. So I'd like to ask you to check the today's > developer snapshot from http://cygwin.com/snapshots/ and copy the cyglsa > DLL from the snapshot into /bin/cyglsa. Given that the DLL there isn't > loaded, you should be able to overwrite it, like this: > > On a 32 bit OS: > > cp /bin/cyglsa.dll /bin/cyglsa/ > > On a 64 bit OS: > > cp /bin/cyglsa64.dll /bin/cyglsa/ > > Kep in mind that the x86 snapshots contains both DLLs, while the x86_64 > snapshot only contains the 64 bit DLL. > > > Thanks for a great product overall - > > Thanks to you for the report! The today's 32 and 64 bit snapshots > should be uploaded in an hour at the latest. Snapshots are up. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple