Re: c client on win32

2009-11-24 Thread Maarten Koopmans
I applied the patch to the trunk, but somehow autoconf fails on the fresh checkout (or my brain fails me, more likely ;-) What do you do on checkout to get a build of the trunk? --Maarten Patrick Hunt schreef: I have 1.5 installed. 1.7 is not official yet afaict (anyway, we probably want to

Re: c client on win32

2009-11-24 Thread Maarten Koopmans
Hm, seems like my cygwin on Win7 fails me. I get a crash on checking the static flag for g++ in configure in 3.2.1 Weird. Maarten Koopmans schreef: I applied the patch to the trunk, but somehow autoconf fails on the fresh checkout (or my brain fails me, more likely ;-) What do you do on

Re: c client on win32

2009-11-24 Thread Patrick Hunt
I'm on g++ 3.4.4 with XP and it's fine. That's unusual. Is cygwin officially supported on win7? 32 or 64bit? (i'm 32bit) (ps. let's move followups to zookeeper-dev and off the user list) Regards, Patrick Maarten Koopmans wrote: Hm, seems like my cygwin on Win7 fails me. I get a crash on

Re: c client on win32

2009-11-24 Thread Maarten Koopmans
Yes, I am on Win7 64 bit - weird stuff. I'll try to dig into it, but I am using zkfuse now as well. That is a much shorter route (even shorter and much faster than REST). I joined zookeeper-dev. Regards, Maarten Patrick Hunt schreef: I'm on g++ 3.4.4 with XP and it's fine. That's unusual. Is

Re: c client on win32

2009-11-23 Thread Patrick Hunt
fyi, this patch allows compilation under cygwin but the tests are currently not passing (probably not handling the space in windows directory names correctly, but haven't had a chance to track it down). This should go into 3.3.0 https://issues.apache.org/jira/browse/ZOOKEEPER-586 Maarten

Re: c client on win32

2009-11-23 Thread maar...@vrijheid
Cygwin 1.5 or 1.7? I'll cross test tomorrow. --Maarten Op 23 nov 2009 om 18:38 heeft Patrick Hunt ph...@apache.org het volgende geschreven:\ fyi, this patch allows compilation under cygwin but the tests are currently not passing (probably not handling the space in windows directory

Re: c client on win32

2009-11-23 Thread Patrick Hunt
I have 1.5 installed. 1.7 is not official yet afaict (anyway, we probably want to continue to support 1.5, I suspect that if 1.5 works it should continue to work in 1.7... but would be nice to find out at some point) Patrick maar...@vrijheid wrote: Cygwin 1.5 or 1.7? I'll cross test

c client on win32

2009-11-20 Thread Maarten Koopmans
Hi, Has anybody managed to get the c client / dll compiled on Win32, and if so, how? I did a quick pass with MunGW and Cygwin, and they failed horribly. I'd like to load the DLL to bind it to a scripting language on windows as well. Thanks, Maarten

Re: c client on win32

2009-11-20 Thread Patrick Hunt
Maarten, I just tried this with cygwin and it fails for me too. It seems that cygwin does not support getaddrinfo! Please create a JIRA and I'll see what we can do. Patrick Maarten Koopmans wrote: Hi, Has anybody managed to get the c client / dll compiled on Win32, and if so, how? I did a

Re: c client on win32

2009-11-20 Thread Patrick Hunt
Well I can tell you that the C API is the more heavily used API of the two (c/java) inside Yahoo, it's also the basis of the python and perl bindings. The issue here is that no one seems to have tried it on windows in quite some time. I believe Cygwin 1.7 (currently in beta) does have

Re: c client on win32

2009-11-20 Thread Maarten Koopmans
Good to know. I'll check on Cygwin 1.7 and switch to Linux otherwise. I want to do a quick REBOL binding (so I need to figure out the C calls that are minimal, and preferably have no callback function pointers). If I can get ZooKeeper talking via C (or via TCP, but the protocol doesn't seem to

Re: c client on win32

2009-11-20 Thread Patrick Hunt
Feel free to submit for inclusion in ZK's src/contrib. Good Luck, Patrick Maarten Koopmans wrote: Good to know. I'll check on Cygwin 1.7 and switch to Linux otherwise. I want to do a quick REBOL binding (so I need to figure out the C calls that are minimal, and preferably have no callback

Please disregard - Re: Exception on close of connection (WAS - Re: c client on win32)

2009-11-20 Thread stack
Please disregard. Sorry for the noise (Patrick, of note, I am seeing this session timeout on a cluster other than Zhenyus). St.Ack On Fri, Nov 20, 2009 at 4:24 PM, stack st...@duboce.net wrote: Sorry, I had a bad subject on the below question. St.Ack On Fri, Nov 20, 2009 at 4:22 PM, stack

Re: Please disregard - Re: Exception on close of connection (WAS - Re: c client on win32)

2009-11-20 Thread Patrick Hunt
Oops too late. ;-) I'm perplexed as to why you see all these expirations though. Are you killing your clients, ie not cleaning up the ZK session gracefully via close()? Patrick stack wrote: Please disregard. Sorry for the noise (Patrick, of note, I am seeing this session timeout on a

Re: Please disregard - Re: Exception on close of connection (WAS - Re: c client on win32)

2009-11-20 Thread stack
I think now I can explain the session expirations; hbase cilents especially up in a map/reduce task can exit without closing the zk session. Will fix. St.Ack On Fri, Nov 20, 2009 at 4:45 PM, Patrick Hunt ph...@apache.org wrote: Yes, right, that's what I meant to say - what is causing the