On Thu, 26 Aug 2010 09:48:21 -0400, Richard Hipp <[email protected]>
wrote:
> Using the templates provided by "boytm" here:
> (http://www.fossil-scm.org/fossil/info/11622724e5 [1]) I have entered
> code that strives to implement popen2() on windows. But I do not
> have a good way to test this. I do not have a windows machine (I
> have to use wine or VMWare) and I do not have a command-line version
> of ssh for windows. The code compiles but it probably does not work.
>
> Volunteers are requested to help get the windows popen2() port
> working and then test the ssh:// sync method on windows.
>
> Also, if somebody knows of a command-line ssh.exe that we can use
> (that does not require a full cygwin install) please let me know.
I get this error message when compiling with mingw for fossil version
[72147afc9d] 2010-08-26 14:13:15 UTC
gcc -Os -Wall -DFOSSIL_I18N=0 -L/mingw/lib -I/mingw/include -I.
-I./src -o ./wo
bj/popen.o -c popen_.c
popen_.c: In function 'popen2':
popen_.c:120: warning: passing argument 1 of '_open_osfhandle' makes
integer fro
m pointer without a cast
c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/io.h:241:
note: expect
ed 'intptr_t' but argument is of type 'HANDLE'
popen_.c:121: warning: passing argument 1 of '_open_osfhandle' makes
integer fro
m pointer without a cast
c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/io.h:241:
note: expect
ed 'intptr_t' but argument is of type 'HANDLE'
popen_.c:100: warning: 'childPid' may be used uninitialized in this
function
i get these when compiling with DMC
c:\DM\bin\dmc -mn -Dstrncasecmp=memicmp -Dstrcasecmp=stricmp
-DFOSSIL_I18N=0 -I
. -Isrc -Iwin\include -Ic:\DM\extra\include -odmcobj\popen.obj -c
popen_.c
*pfdIn = _open_osfhandle(hStdoutRd, 0);
^
popen_.c(120) : Error: need explicit cast for function parameter 1 to
get
from: void *
to : long
fd = _open_osfhandle(hStdoutWr, 0);
^
popen_.c(121) : Error: need explicit cast for function parameter 1 to
get
from: void *
to : long
I'm looking into it but don't have a solution yet :-(
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users