From: Luis Lavena Date: 2010-08-08T07:34:54+09:00 Subject: [ruby-core:31647] [Backport #3666] Backport of r26311 (Bug #2587) Backport #3666: Backport of r26311 (Bug #2587) http://redmine.ruby-lang.org/issues/show/3666 Author: Luis Lavena Status: Open, Priority: Normal Category: core Hello, Working on getting Ruby 1.8.7, using branch ruby_1_8_7 at revision 28669 is not possible to cross-compile it. Configure process completes perfectly, but compilation fails: $ make rbconfig.rb updated i686-w64-mingw32-windres --include-dir . --include-dir . --include-dir ../win32 msvcrt-ruby18.rc msvcrt-ruby18.res.o i686-w64-mingw32-gcc -g -O2 -DRUBY_EXPORT -I. -I.. -c ../array.c In file included from ../defines.h:186:0, from ../ruby.h:37, from ../array.c:15: ../win32/win32.h:154:8: error: redefinition of ���struct timezone��� /home/luis/mingw/w32/bin/../lib/gcc/i686-w64-mingw32/4.5.2/../../../../i686-w64-mingw32/include/time.h:260:8: note: originally defined here make: *** [array.o] Error 1 compiler used: i686-w64-mingw32 (32bits mingw-w64 project) OS: Ubuntu. i686-w64-mingw32-gcc (GCC) 4.5.2 20100802 (prerelease) There should be a backport of the changes reported in bug #2587. Cross-compilation of Ruby using MinGW is important for OSX/Linux developers to provide native gems for Windows. Thank you. ---------------------------------------- http://redmine.ruby-lang.org