[Win32utils-devel] win32-daemon 0.6.1 problem
luislavena at gmail.com
Mon Jan 26 16:13:12 EST 2009
On Mon, Jan 26, 2009 at 3:09 PM, Berger, Daniel <Daniel.Berger at qwest.com> wrote:
>> -----Original Message-----
>> From: win32utils-devel-bounces at rubyforge.org
>> [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of
>> Heesob Park
>> Sent: Friday, January 23, 2009 3:41 PM
>> To: Development and ideas for win32utils projects
>> Subject: Re: [Win32utils-devel] win32-daemon 0.6.1 problem
>> 2009/1/24 Berger, Daniel <Daniel.Berger at qwest.com>:
>> >> -----Original Message-----
>> >> From: win32utils-devel-bounces at rubyforge.org
>> >> [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf
>> Of Heesob
>> >> Park
>> >> Sent: Thursday, January 22, 2009 8:10 PM
>> >> To: Development and ideas for win32utils projects
>> >> Subject: Re: [Win32utils-devel] win32-daemon 0.6.1 problem
>> > <snip>
>> >> > Well, FFI is supposed to be universal now, though I
>> can't get it to
>> >> > build on Windows at the moment. So it would be the same code for
>> >> > MRI
>> >> > (1.8 and 1.9) and Jruby.
>> >> >
>> >> In my thought, the current ruby ffi implementation don't
>> care of the
>> >> Windows support. As far as I know, the ffi developers have no
>> >> definite plan about releasing of Windows binary. If it
>> were built to
>> >> binary with mingw compiler, It cannot work with Windows
>> API. It uses
>> >> dlopen,dlsym and dlclose instead of LoadLibrary,GetProcAddress and
>> >> FreeLibrary.
>> > That's unfortunate.
>> >> I managed to build MSVC version of ruby ffi-0.2.0 using
>> win32 libffi
>> >> source ported by the Python's ctypes library. You can
>> download ctypes
>> >> at sourceforge .
>> >> What's your thought about implementing ruby-ffi windows
>> version? Is
>> >> it worthwhile or meaningless?
>> > It's only worthwhile if the other implementations can run it.
>> > Otherwise, I don't see a practical advantage over win32-api. Do you?
>> I don't care of it. I just want to implement win32 version of libffi.
>> > Also, do you mean that your version requires Python's
>> ctypes library?
>> > Or do you mean you've ported it to Ruby?
>> I have pasted the ctypes libffi win32 folder to ruby-ffi just
>> as Lua did on alien library.
>> At last, I succeeded callback function testing.
>> The patched source code and binary gem is at
> Very impressive!
> In theory we should be able to rewrite win32-api with your FFI and it
> would be compatible with Jruby, Rubinius, etc.
> Is there a way to build and install it from source on Windows using MS
I think not without a fight. the libffi bundled in ruby-ffi includes
makefiles that conform gnu-make format and don't play realy nice with
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
More information about the win32utils-devel