From: Luis Lavena Date: 2009-02-07T11:58:21+09:00 Subject: [ruby-core:21903] [Bug #1127] error while compiling Win32API under MinGW Bug #1127: error while compiling Win32API under MinGW http://redmine.ruby-lang.org/issues/show/1127 Author: Luis Lavena Status: Open, Priority: Normal Target version: Ruby 1.8.6 ruby -v: Luis@KEORE (D:\Users\Luis\projects\oss\oci\dsl2\sandbox\ruby\1.8.6-svn\build) $ ruby -v ruby 1.8.6 (2008-03-03 patchlevel 114) [i386-mingw32] I've been trying to build both p287 and svn branch using MinGW: gcc.exe (GCC) 3.4.5 (mingw-vista special r3) autoconf (GNU Autoconf) 2.61 GNU Make 3.81 (cpmake and csmake) Subversion information: Luis@KEORE (D:\Users\Luis\projects\oss\oci\dsl2\sandbox\ruby\1.8.6-svn\build) $ svn info ..\source Path: ..\source URL: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6 Repository Root: http://svn.ruby-lang.org/repos/ruby Repository UUID: b2dd03c8-39d4-4d8f-98ff-823fe69b080e Revision: 22102 Node Kind: directory Schedule: normal Last Changed Author: shyouhei Last Changed Rev: 22065 Last Changed Date: 2009-02-04 22:38:22 -0200 (Wed, 04 Feb 2009) Configure options: ../source/configure --enable-shared --disable-install-doc --with-winsock2 --prefix=/ Last lines of 'make' Luis@KEORE (D:\Users\Luis\projects\oss\oci\dsl2\sandbox\ruby\1.8.6-svn\build) $ ..\..\..\msys\1.0.11\source\bin\sh.exe -login -c 'make'

gcc -g -O2   -DRUBY_EXPORT  -L.  -Wl,--stack,0x02000000   main.o dmydln.o libmsvcrt-ruby18-static.a -lshell32 -lws2_32   -o miniruby.exe
rbconfig.rb updated
windres --include-dir . --include-dir . --include-dir ../source/win32 msvcrt-ruby18.rc msvcrt-ruby18.res.o
gcc -shared -s -Wl,--enable-auto-image-base,--enable-auto-import,--export-all -Wl,--out-implib=libmsvcrt-ruby18.dll.a   array.o bignum.o class.o compar.o dir.o dln.o enum.o error.o eval.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 prec.o random.o range.o re.o regex.o ruby.o signal.o sprintf.o st.o string.o struct.o time.o util.o variable.o version.o fileblocks.o crypt.o flock.o win32.o  dmyext.o msvcrt-ruby18.res.o -lshell32 -lws2_32   -o msvcrt-ruby18.dll
Creating library file: libmsvcrt-ruby18.dll.a
-e:2: syntax error, unexpected tSTRING_BEG, expecting $end
compiling Win32API
make[1]: Entering directory `/d/Users/Luis/projects/oss/oci/dsl2/sandbox/ruby/1.8.6-svn/build/ext/Win32API'
mkdir -p ../../.ext/i386-mingw32
make[1]: *** No rule to make target `Win32API.c', needed by `Win32API.o'.  Stop.
make[1]: Leaving directory `/d/Users/Luis/projects/oss/oci/dsl2/sandbox/ruby/1.8.6-svn/build/ext/Win32API'
make: *** [all] Error 1
Both p287 and svn checkout fail in the same place. Historically, the only way I could build ruby is using make 2.79, 2.81 always fail. 1.9.1-p0, on the other hand, build successfuly See attached both configure output and make full output. Thank you. ---------------------------------------- http://redmine.ruby-lang.org