odbc.k on Mac OS X

Does anyone have experience with building odbc.k on Mac OS X?

I’m using 32-bit version of kdb+ on Mac.

I managed to build odbc.c into odbc.so (-arch i386) with unixODBC and FreeTDS I got from brew.

When \l odbc.k, there was no error. So I initially assumed that my build was successful.

But when I did .odbc.open"DRIVER=…", I noticed that the “open” function in odbc.c received x->t==5 and y->t==3, which are obviously not the exacted 10 and 7, respectively.

I’m suspecting that the calling convention or dylib linkage was wrong, but I’m not able to further debug it as I’m not that experience with building dylibs on Mac.

Please kindly let me know if there is any more specific information that I could provide to help further debug the problem.

Hi

What is it you want to do - can you use babel instead? 

http://code.kx.com/wiki/Babel

babel is usually easier to set up than odbc.k

Thanks 

Jonny

when compiling, what did you set KXVER to?

Which version of kdb+ are you loading it into?

Thanks for the recommendation. I was aware of babel. But as babel requires a separate process as a gateway service, and I had previous experience with setting up unixODBC on RHEL, I opted to try odbc.k out first. I’ll certainly try babel out if the odbc.k path is proven more difficult than necessary. 

Thanks for the pointer! Being on v3 for so long, I totally forgot about the KXVER macro… I’ll give it a try later on and post back with any results.