From: Luis Lavena Date: 2009-11-11T08:27:05+09:00 Subject: [ruby-core:26670] [Bug #2354] Undefined BLOCKING_REGION definitions when compiling under MinGW Bug #2354: Undefined BLOCKING_REGION definitions when compiling under MinGW http://redmine.ruby-lang.org/issues/show/2354 Author: Luis Lavena Status: Open, Priority: Normal Category: core, Target version: 1.9.2 ruby -v: ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32] miniruby.exe fails to compile due missing defition of BLOCKING_REGION, which is a macro translated to blocking_region_begin, which is only present in thread.c, but neither exported or shared with thread_win32.c

gcc -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -L.  -Wl,--stack,0x00200000,--enable-auto-import   main.o dmydln.o dmyencoding.o miniprelude.o array.o bignum.o class.o compar.o complex.o dir.o enum.o enumerator.o error.o eval.o load.o proc.o file.o gc.o hash.o inits.o io.o marshal.o math.o numeric.o object.o pack.o parse.o process.o random.o range.o rational.o re.o regcomp.o regenc.o regerror.o regexec.o regparse.o regsyntax.o ruby.o safe.o signal.o sprintf.o st.o strftime.o string.o struct.o time.o transcode.o util.o variable.o version.o
compile.o debug.o iseq.o vm.o vm_dump.o thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o newline.o langinfo.o fileblocks.o crypt.o lgamma_r.o strlcpy.o strlcat.o win32.o  dmyext.o -lshell32 -lws2_32   -o miniruby.exe

thread.o: In function `rb_w32_Sleep':
C:/Users/Luis/Projects/oss/oci/rubyinstaller/sandbox/ruby19_build/../ruby_1_9/thread_win32.c:202: undefined reference to `blocking_region_begin'
thread.o: In function `rb_w32_wait_events':
C:/Users/Luis/Projects/oss/oci/rubyinstaller/sandbox/ruby19_build/../ruby_1_9/thread_win32.c:150: undefined reference to `blocking_region_begin'
collect2: ld returned 1 exit status
make: *** [miniruby.exe] Error 1
Subversion information:

C:\Users\Luis\Projects\oss\oci\rubyinstaller>svn info downloads\ruby_1_9
Path: downloads\ruby_1_9
URL: http://svn.ruby-lang.org/repos/ruby/trunk
Repository Root: http://svn.ruby-lang.org/repos/ruby
Repository UUID: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Revision: 25711
Node Kind: directory
Schedule: normal
Last Changed Author: tenderlove
Last Changed Rev: 25711
Last Changed Date: 2009-11-10 19:51:24 -0300 (mar, 10 nov 2009)
Thank you. ---------------------------------------- http://redmine.ruby-lang.org