From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27360 invoked by alias); 22 Aug 2016 18:49:00 -0000 Mailing-List: contact cygwin-developers-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner@cygwin.com Mail-Followup-To: cygwin-developers@cygwin.com Received: (qmail 27332 invoked by uid 89); 22 Aug 2016 18:49:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-95.0 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_BRBL_LASTEXT,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=ham version=3.3.2 spammy=Hx-languages-length:1155 X-HELO: calimero.vinschen.de Received: from ipbcc0190b.dynamic.kabel-deutschland.de (HELO calimero.vinschen.de) (188.192.25.11) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 22 Aug 2016 18:48:59 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 1931EA804DD; Mon, 22 Aug 2016 20:48:57 +0200 (CEST) Date: Mon, 22 Aug 2016 18:49:00 -0000 From: Corinna Vinschen To: cygwin-developers@cygwin.com Subject: Re: About the dll search algorithm of dlopen Message-ID: <20160822184857.GC2971@calimero.vinschen.de> Reply-To: cygwin-developers@cygwin.com Mail-Followup-To: cygwin-developers@cygwin.com References: <574E835E.7090109@ssi-schaefer.com> <20160601110947.GE11431@calimero.vinschen.de> <574EF07B.1060806@ssi-schaefer.com> <20160601201748.GI11431@calimero.vinschen.de> <57B735D5.4070401@ssi-schaefer.com> <57B7362D.8060707@ssi-schaefer.com> <20160820193243.vbmpfjc5mjdhrndh@calimero.vinschen.de> <4d4481ce-c163-0ec9-29f5-59bbe13260fa@ssi-schaefer.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ieNMXl1Fr3cevapt" Content-Disposition: inline In-Reply-To: <4d4481ce-c163-0ec9-29f5-59bbe13260fa@ssi-schaefer.com> User-Agent: Mutt/1.6.2 (2016-07-01) X-SW-Source: 2016-08/txt/msg00008.txt.bz2 --ieNMXl1Fr3cevapt Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1149 Hi Michael, On Aug 22 14:15, Michael Haubenwallner wrote: > For dlopen, it is more important to find the same dll file as would be > found when the exe was linked against that dll file, rather than using > the Linux-known algorithm and environment variables - and differ from > process startup: Both really should result in the same algorithm here, > even if that means some difference compared to Linux. IMHO there is no good reason to have a DLL in a 3rd party subdir which is available as system DLL. DT_RPATH/DT_RUNPATH semantics are not created to overload system DLLs, rather to add a safe search path. Why would you want to install a system DLL under the same name and thus the same version in a non- system dir and expect the application to load that? Ultimately this is bound to becoming outdated, fail if the dependencies of the system DLL change, etc. Even *if* we add the application dir adding it to dlopen should be configurable, not statically, invisible under the hood. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --ieNMXl1Fr3cevapt Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXu0kYAAoJEPU2Bp2uRE+gPu0QAKQ/LVkPn+ROhfC5JgnF4/fi tMUixryUg/AVIMR7dr9WBvPLWFVID48ightiPNNlg1iOa5k5cs3gag3HviebZXnJ 3eqyFxhqzi9iCJ23wNzuyTK8WXPCMUyiVBackyIXMCq76IYJYy8MtTT+Q0nZ1By9 Rru8gDACuNwkudusq/KkgZic2vORrV/fBYq+pSUhHVM38QApFJXYvzyJs+FVH90n VoVTwc/P5mgSNCPIBsAi3q1n6n9m3xp+4qF6oUpK8iO0nro8s8QdV7UQ4/z9oCVP jIA2K7/15mJBn1hzQg/LAcTlBdPCume5TG9tNtQzE2Wy+xNXrblR7suy/aneJlwB ttDZRV98TX60M8bbILZhYfnkthnRJmJQlUWdgg+IYRXeriTlqZSjhFdutib3oABH JlWqQxPEMZwYcHtJqZimDIdq9eWSowZCGM/7XAhwXuq7W3xTLDBeaKsbf09DOvcb KF+Ia0EErZEAJJylddSr6dFQu7iUgkY8UdPclgum4y4dtABJkn2wVv7mUeWGOtK/ U8GzprZ6stc9F4rg+0HE26eUKZpC1W/5TBOdN/dD4YFgPR7HMLxRyfi+EbSVc0Tw FJKwSHOsAHiyncU/U/U0wMCstYeU0XxiTQQJyIH0ShtDSUgc7ZLxLcbT3q6Ifise d7vcfkgmvNef39RSLbnU =7mB6 -----END PGP SIGNATURE----- --ieNMXl1Fr3cevapt--