From: timsuth@... (Tim Sutherland) Date: 2004-01-09T13:56:39+09:00 Subject: Re: mysql-ruby for ruby 1.8.1 on windows ... In article , Tim Sutherland wrote: >In article , Tim Sutherland wrote: >>In article , Tim Sutherland wrote: >>>In article , Useko Netsumi wrote: >>>>Does anyone ever compiled them sucessfully? Please post the binary ... >>>>thanks >>> >>>Yes, I have done compiled this. I'll upload instructions/libs tomorrow in >>>about 15 hours when I'm at work. >>[...] >> >>I have put instructions at >> http://rubydotnetproxy.rubyforge.org/mysql_win.html > >Oops, my instructions are completely wrong! Don't use them yet... I've "fixed" the instructions, in the sense that they make sense to me, however the mysql.so library I build this way segfaults on me sometimes. (But a binary I built a while ago in a similar way doesn't seem to segfault, at least I can't reproduce it.) The basic issue with building the mysql library is that in the Mysql distribution, mysql/lib/Readme says the dlls are compiled with __cdecl, while the mysql/include header files say that everything uses __stdcall. Possibly the Readme is wrong and they really are using __stdcall. This could explain the segfaults. -- /* gcc -ansi -o sig sig.c -lcrypt */ int main(){int l=0,$=0;char _[8]="To:";while(l-3?(_<:l:>=$++??("#u,UTGK gpFyLY " #define p(r)p%:%:r("\45\56\52\163",(l=_[3])|7<:_:>%$,crypt(_,_+4%$)|_[6]%$); "7&nvXD(AqEhsZA`Oh@in #oI.ZX #pXXhe"]):l)++l%8||p(rintf)sorry:gnu_crypt_only:%>