On Thu, 15 Nov 2012, Christian J. Robinson wrote:

I would like to note that I have /never/ been able to get Make_ming.mak to work under Cygwin, although other people appear to know the "magic incantations." If someone could give me a hint, perhaps it would work where Make_cyg.mak now fails.

I was able to get Make_ming.mak to compile a native Windows gvim.exe using Cygwin's MinGW packages as long as I don't try to include Ruby.

When I try to include Ruby I get the following errors:

i686-w64-mingw32-gcc -c -Iproto -DWIN32 -DWINVER=0x0500 -D_WIN32_WINNT=0x0500  -DHAVE_PATHDEF 
-DFEAT_BIG -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT -DMSWINPS -DFEAT_OLE -DFEAT_CSCOPE 
-DFEAT_NETBEANS_INTG -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME 
-DDYNAMIC_ICONV -pipe -w -march=i386 -Wall -I/cygdrive/c/strawberry/perl/lib/Core -DFEAT_PERL 
-L/cygdrive/c/strawberry/perl/lib/Core -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl56.dll\" 
-DFEAT_RUBY -I /cygdrive/c/Ruby192/lib/ruby/1.9.1/i386-mingw32 -I 
/cygdrive/c/Ruby192/include/ruby-1.9.1 -I /cygdrive/c/Ruby192/include/ruby-1.9.1/i386-mingw32 
-DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"msvcrt-ruby191.dll\" -DDYNAMIC_RUBY_VER=191 
-DFEAT_PYTHON  -DDYNAMIC_PYTHON -DFEAT_XPM_W32 -I xpm/x86/include -I xpm/x86/../include -O3 
-fomit-frame-pointer -freg-struct-return -s if_ruby.c -o gobji386/if_ruby.o
In file included from 
/cygdrive/c/Ruby192/include/ruby-1.9.1/ruby/defines.h:205:0,
                 from /cygdrive/c/Ruby192/include/ruby-1.9.1/ruby/ruby.h:74,
                 from /cygdrive/c/Ruby192/include/ruby-1.9.1/ruby.h:32,
                 from if_ruby.c:88:
/cygdrive/c/Ruby192/include/ruby-1.9.1/ruby/win32.h:376:18: error: conflicting 
types for ‘fseeko’
/usr/i686-w64-mingw32/sys-root/mingw/include/stdio.h:473:7: note: previous 
declaration of ‘fseeko’ was here
/cygdrive/c/Ruby192/include/ruby-1.9.1/ruby/win32.h:377:18: error: conflicting 
types for ‘ftello’
/usr/i686-w64-mingw32/sys-root/mingw/include/stdio.h:484:10: note: previous 
declaration of ‘ftello’ was here
In file included from /cygdrive/c/Ruby192/include/ruby-1.9.1/ruby/ruby.h:1326:0,
                 from /cygdrive/c/Ruby192/include/ruby-1.9.1/ruby.h:32,
                 from if_ruby.c:88:
/cygdrive/c/Ruby192/include/ruby-1.9.1/ruby/missing.h:35:8: error: redefinition 
of ‘struct timespec’
/usr/i686-w64-mingw32/sys-root/mingw/include/sys/types.h:89:8: note: originally 
defined here
/cygdrive/c/Ruby192/include/ruby-1.9.1/ruby/missing.h:42:8: error: redefinition 
of ‘struct timezone’
/usr/i686-w64-mingw32/sys-root/mingw/include/time.h:260:8: note: originally 
defined here
if_ruby.c:339:21: error: static declaration of ‘rb_num2long_stub’ follows 
non-static declaration
/cygdrive/c/Ruby192/include/ruby-1.9.1/ruby/ruby.h:478:14: note: previous 
declaration of ‘rb_num2long_stub’ was here
if_ruby.c:343:14: error: static declaration of ‘rb_int2big_stub’ follows 
non-static declaration
/cygdrive/c/Ruby192/include/ruby-1.9.1/ruby/intern.h:85:7: note: previous 
declaration of ‘rb_int2big_stub’ was here
Make_ming.mak:715: recipe for target `gobji386/if_ruby.o' failed
make: *** [gobji386/if_ruby.o] Error 1


I wonder if this would be a problem if I used a non-Cygwin MinGW distribution, but this has become too much trouble already. Hopefully someone can suggest a fix, or I'll just live without the Ruby interpreter. (+perl/dyn and +python/dyn were included without issue.)

- Christian

--
                          "Once,"  adverb:  Enough.
Christian J. Robinson <[email protected]>      http://christianrobinson.name/

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui