On Wed, May 27, 2009 at 5:38 PM, Roger Pack <rogerdpack / gmail.com> wrote:
> Just tried compiling ruby TRUNK with mingw 4.4
>
> The result this time?
>
> In file included from ../ruby_1_9/signal.c:531:
> c:\dev\ruby\rubyinstaller\sandbox\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/pthread.h:307:
> error: redefinition of 'struct timespec'
> make: *** [signal.o] Error 1
> rake aborted!
> Command failed with status (2): ["C:/dev/ruby/rubyinstaller/sandbox/msys/bi...]
>
> Anybody else run into this before?   
> pthread on a windows platform throwing it for loops?

Even if you configure with --disable-pthreads, still tries to build
with pthreads, so you need to remove the headers and the libs, so the
ifdef macro is incorrect.

The issue with time stuff is related to missing, something that Ruby
includes that is theorically "missing" form Windows, but MinGW already
includes.

Ruby should be evaluating if that already exist, either using
configure and HAVE_XXX or if defined macros.

-- 
Luis Lavena
AREA 17
-
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-Exupy