Issue #888 has been updated by Luis Lavena.


If you're building Ruby with VC9 (VS2008) then you need to also build zlib with VC9.

The problems you're experiencing can (and most of the cases are) related to cross CRT issues.

zlib is linked to MSVCRT while your Ruby links to MSVCR90. Freeing and allocating memory across CRTs generates errors, segfaults and other weird results.

Daniel Berger had problems building zlib with VC8/9 too. Why don't you try MinGW (GCC)?

----------------------------------------
http://redmine.ruby-lang.org/issues/show/888

----------------------------------------
http://redmine.ruby-lang.org