Actions
Bug #2354
closedUndefined BLOCKING_REGION definitions when compiling under MinGW
Description
=begin
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.
=end
Updated by akr (Akira Tanaka) about 15 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
This issue was solved with changeset r25713.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
Actions
Like0
Like0