delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/03/15:31:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Sat, 3 May 2003 21:30:33 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin survey: Next vim version with perl support?
Message-ID: <20030503193033.GD6266@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <b8u6vc$4te$1 AT main DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 44 DOT 0305021253400 DOT 25128-100000 AT slinky DOT cs DOT nyu DOT edu>
Mime-Version: 1.0
In-Reply-To: <Pine.GSO.4.44.0305021253400.25128-100000@slinky.cs.nyu.edu>
User-Agent: Mutt/1.4.1i

On Fri, May 02, 2003 at 01:08:10PM -0400, Igor Pechtchanski wrote:
> I can see one way out of this that would keep everyone happy: make the
> has("perl") test dynamic, and check for the presence of the needed perl
> DLL before invoking the feature (instead of just returning the
> compile-time value).  IMO, vim shouldn't try to load the perl DLL unless
> the perl scripting feature is used.  Putting a test for perl in
> has("perl") will guard against accidental use. The same goes for all the
> scripting features.  This will most likely require rewriting some of the
> vim code and convincing upstream maintainers to apply the patches, but is,
> IMO, "the right thing to do"...
> 	Igor
> P.S. I just looked through eval.c in the vim source, and it seems some
> kind sould has already gone through the trouble of implementing the above,
> when DYNAMIC_PERL is defined.  Same goes for other scripting languages.
> Don't know if you can set it from configure, though...

It can't.  I've made a few tests with DYNAMIC_PERL and DYNAMIC_RUBY.
All these DYNAMIC_foo stuff is only implemented for native Windows.
Trying to tweak it for Cygwin isn't just as simple as setting some
defines.  While I was able to jolt over the compiler pass, I wasn't
able to link vim with dynamic perl support due to missing symbols.
The ruby version built but didn't work (unable to load the DLL, though
the path was correct).

Sorry, this needs more to work than I'm willing to invest into the port.
If somebody else is interested to work on this, go ahead.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019