Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Thu, 3 Feb 2005 11:37:19 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Olivier Mesmeur 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: References: <000501c509dc$89c8f1f0$5102a8c0 AT yaccom DOT lan> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 . > 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 . 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/