X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Wed, 4 Nov 2009 10:29:38 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Shall dlopen("foo") succeeed if only "foo.dll" exists? Message-ID: <20091104092938.GB31924@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20091102164807 DOT GA2897 AT calimero DOT vinschen DOT de> <4AEF9E10 DOT 6030804 AT byu DOT net> <20091103100045 DOT GA18643 AT calimero DOT vinschen DOT de> <4AF0D545 DOT 7060407 AT cwilson DOT fastmail DOT fm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AF0D545.7060407@cwilson.fastmail.fm> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Nov 3 20:13, Charles Wilson wrote: > Corinna Vinschen wrote: > > Maybe Chuck can make this definitive? > > But that's not to say there aren't some packages out there that do > something evil like this: > > #if defined(__HPUX__) > # define MODULE_EXTENSION ".sl" > #elif !defined(__CYGWIN__) && !defined(_WIN32) > # define MODULE_EXTENSION ".so" > #else > # define MODULE_EXTENSION "" > #endif > #define MODULE "libfoo" MODULE_EXTENSION > > But, IMO, they should Not. Do. That. and deserve whatever pain they get. And then again, as Yaakov already wrote, packages with runtime modules like ruby, apache, and openssl use the .so suffix on all platforms. But what about perl? It uses the .dll suffix for modules on Cygwin. Does it call dlopen("foo.dll") or dlopen("foo")? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader 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