Project

General

Profile

Actions

Bug #2354

closed

Undefined BLOCKING_REGION definitions when compiling under MinGW

Added by luislavena (Luis Lavena) over 14 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32]
Backport:
[ruby-core:26670]

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

Actions

Also available in: Atom PDF

Like0
Like0