cygwin1 dll and JAVA-JNI dll loading is buggy

2004-11-17 Thread Gilles Bourgeois
Hello Next year (using the current version of cygwin which I can not remember), I managed to load from java (JNI) a dll (build against cygwin1.dll) compiled with gcc under cygwin. Now , I have updated my cygwin (1.5.9 for me tooday), and it does not work any more. I saw on the cygwin mailing l

PUTENV works fine if debugged with insight gdb but fails if in a standalone program !

2003-03-04 Thread gilles bourgeois
hi folks, i am using getenv/putenv from stdlib (my source comes from UNIX world). the point is that getenv works fine, but I CANNOT modify variables with PUTENV !! Actually, if I debug with "insight gdb" a little foo.c using setenv , it works fine !!! I really do not undestand why (I suppose it is

correction, I got the answer, sorry for disturb

2003-02-28 Thread gilles bourgeois
sorry, it was only a question of bash : bash -c make a bash with string args. sorry again gilles -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://

how to run a process from DOS within a cygwin .bat file

2003-02-28 Thread gilles bourgeois
hello again does someone knows how to launch a cygwin shell and further commands from DOS, e.g with a help of a .bat file. I had a look of cygwin.bat file but I do not know the right syntax to give the command to the bash shell thanks gilles -- Unsubscribe info: http://cygwin.com/ml/#unsu

IPC message queue through JNI may not work because of java exec !

2003-02-27 Thread gilles bourgeois
Hi folks, I have a java graphical debugging tool which communicates with a process (written in C) both shall communicate through IPC message queue (historic : the tools where running under solaris) The point is : >From java side, ipc message queue is created with the help of a native dll beeing

LD_LIBRARY_PATH not accessible through java under cygwin for JNI

2003-02-27 Thread gilles bourgeois
hi folks, I am currently using my JNI so/dll library under solaris, linux and cygwin. with solaris and linux, no problem, I bind to it using load(..) since the LD_LIBRARY_PATH is set. BUT, under cygwin/windows, it does not work and I shall tell the absolute path when I load the library. I hav alrea

PUTENV is not running

2003-02-26 Thread gilles BOURGEOIS
Hi folks, since getenv works fine, I manage to set a var with putenv, but it does not perfom any operation at all. (I am working with JNI, but I also tested putenv in a little simple foo programm) Does anyone know about this manipulation ? TIA gilles -- Unsubscribe info: http://cygwin.com

FIONREAD (fillio.h)

2003-02-14 Thread gilles BOURGEOIS
I have an old source code using filio.h and FIOREAD: since this is not in the cygwin distribution, I DO need FION READ and FIONBIO definitions for my program. Does cywgin define this constant somewhere ? thanks GBO -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reportin

mainCRTStartup not found at link time (ld)

2003-02-10 Thread gilles BOURGEOIS
hi folks, I am compiling and linking a g++ parser program , I am using ld in my makefile: I got a warning at link time, then at execution time , my program failed (windows Segmentation fault, I even can not break with gdb in main main() code. the warning is : cannot find entry symbol _mainCRTStar

Re: Using cygwin and JAVA/JNI

2003-01-17 Thread gilles BOURGEOIS
32/ > > > I think Randall R Schulz wrote: > > Gilles, > > > > I don't believe the ABI (application binary interface) used by the > > Microsoft compilers is compatible with that used by GCC and hence the Sun > > JVM, being compiled by the Microsoft tools, cann

Using cygwin and JAVA/JNI

2003-01-17 Thread gilles BOURGEOIS
hello I wonder if it is possible to use JNI upon a DLL .i.e a shared libray like .so file generated with gcc, without the mno-cygwin option. (my lib uses IPC SYSTEM V, that is why I rely on the cygwin and cygipc libraries) I am mot a newbie with java/jni or gcc, but mixing all of them seems to cras

msgget (IPC message queue) implementation

2003-01-14 Thread gilles BOURGEOIS
hi folks, is msgget (cygipc package) still running , and I ran msgget which return -1 (and does not set errno) in my code. thanks for help gilles -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cy

Re: mkfifo implementation ?

2003-01-14 Thread gilles BOURGEOIS
And what about IPC message queue (msgget) ? It does returns -1 too, but may be error handling is not implemented ? - Original Message - From: "Pavel Tsekov" <[EMAIL PROTECTED]> To: "gilles BOURGEOIS" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Se

mkfifo implementation ?

2003-01-14 Thread gilles BOURGEOIS
hi folks, is mkfifo still not implemented (I read mailing list archive fron end of 2003) , and I ran mkfifo which return -1 (and does not set errno) in my code. thanks gilles -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Doc

setitimer failure

2002-12-30 Thread gilles BOURGEOIS
hello. I really have to know if the setitimer() primitive works well using cywgin dll I am currently using NT5.0 (2000) I call setitimer(ITIMER_VIRTUAL, &interval, NULL) and it returns -1 with bad argument as errno . I do not understand why, because my arguments seemes to be ok to me ! Any help ver

setitimer/SIGVTALRM error form cygwin shell.

2002-12-30 Thread gilles BOURGEOIS
Hello I am trying to simulate a tick timer under cygwin but it does not work : with the following code : /* Initialise timer structure */ interval.it_interval.tv_sec = 1; interval.it_interval.tv_usec = 0; interval.it_value.tv_sec = 1; interval.it_value.tv_usec = 0; /* Initialise vir