delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/03/11:37:58

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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: Thu, 3 Feb 2005 11:37:19 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Olivier Mesmeur <omesmeur AT yaccom DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: RE : problem loading JNI Dll with IPC
In-Reply-To: <000501c509dc$89c8f1f0$5102a8c0@yaccom.lan>
Message-ID: <Pine.GSO.4.61.0502031133020.5350@slinky.cs.nyu.edu>
References: <000501c509dc$89c8f1f0$5102a8c0 AT yaccom DOT lan>
MIME-Version: 1.0

On Thu, 3 Feb 2005, Olivier Mesmeur wrote:

> >>Hi,
> >>
> >>We have a problem using JNI and IPC under cygwin.
> >>
> >>We compile a DLL using gcc but without -mno-cygwin option because we
> >>need IPC functionalities.
> >>
> >>It's worked fine with previous version of cygwin (< 1.5.5), but now
> >>that we are using cygwin version 1.5.9, java crashs when we launch the
> >>DLL with system.loadlibrary().
> >>
> >>This is exactly the same problem (same project) in the mail (see link
> >>below) but the proposed solution only work on version < 1.5.5 of
> >>cygwin:
> >>
> >>http://sources.redhat.com/ml/cygwin/2003-01/msg01026.html
> >>
> >>Is it possible to load a DLL, compiled with gcc without -mno-cygwin,
> >>with java in new version of cygwin?
>
> >No, loading cygwin1.dll in this way is not supported.  We need someone
> >interested in getting this working to provide a patch.
>
> Thanks, I am interesting to provide a patch but I don't know how to
> start! I think that I need CVS source

You do.  See <http://cygwin.com/cvs.html>.

> but which components of cygwin I need to modify?

Probably the DLL initialization code...

> And do you have an idea about the time needed to develop the patch?

The fact that it hasn't been implemented yet seems to indicate that it's
non-trivial.

I'd suggest getting this down to a small example that reproduces the
problem (i.e., a main program with just the LoadLibrary call, and a DLL
with a trivial function that depends on cygwin1.dll) before trying to fix
it.

Also note that any non-trivial patch requires a Cygwin copyright
assignment, as described in <http://cygwin.com/contrib.html>.

Good luck,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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