[Win32utils-devel] MSVC and FFI build warnings

Heesob Park phasis at gmail.com
Fri Jan 20 09:57:39 EST 2012


Hi,

2012/1/20 Daniel Berger <djberg96 at gmail.com>:
> Hi,
>
> I noticed a couple warnings with FFI on Windows Vista with VC++ 9:
>
> .\src\x86\win32.asm(842) : warning A6004:procedure argument or local not
> referenced : FORCEFRAME
> .\src\x86\win32.asm(995) : warning A6004:procedure argument or local not
> referenced : FORCEFRAME
>
> Thread.c
> Thread.c(224) : warning C4101: 'res' : unreferenced local variable
> Thread.c(255) : warning C4101: 'res' : unreferenced local variable
> Thread.c(254) : warning C4101: 'state' : unreferenced local variable
>
> I also seem to be having trouble with 1.8.7. It builds fine, but won't load:
>
> irb(main):001:0> require 'ffi'
> LoadError: 127: The specified procedure could not be found.   - Init_ffi
> c:/rubyvc9/lib/ruby/site_ruby/1.8/i386-msvcr90/ffi.so
>        from c:/rubyvc9/lib/ruby/site_ruby/1.8/i386-msvcr90/ffi.so
>        from (irb):1
>        from :0
>
> I tried both the manual approach and the "gem install" approach. Seems to be
> ok on my 1.9.2 built with VC9, though.
>
I think the warnings are ignorable.

require 'ffi' is actulally require 'ffi.rb'.
And in ffi.rb, you can see require 'ffi_c'.

I cannot understand why "ffi.so" is created.
/ext/ffi_c/extconf.rb creates Makefile for ffi_c.so.
Could you show me the generated Makefile?


Regards,

Park Heesob


More information about the win32utils-devel mailing list