wdm icon indicating copy to clipboard operation
wdm copied to clipboard

WDM 0.1.1 fails to install on Windows 7 (Cygwin 32bit latest, ruby 2.2.5p319)

Open r0ssIV opened this issue 8 years ago • 1 comments

Building native extensions.  This could take a while...
ERROR:  Error installing wdm:
        ERROR: Failed to build gem native extension.

    /usr/bin/ruby.exe -r ./siteconf20170130-3776-189cdvs.rb extconf.rb
checking for main() in -lkernel32... yes
checking for windows.h... yes
checking for ruby.h... yes
checking for HAVE_RUBY_ENCODING_H... yes
checking for rb_thread_call_without_gvl()... yes
creating Makefile

make "DESTDIR=" clean
rm -f
rm -f wdm_ext.so  *.o  *.bak mkmf.log .*.time
make "DESTDIR="
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DHAVE_WINDOWS_H -DHAVE_RUBY_H -DHAVE_CONST_HAVE_RUBY_ENCODING_H -DHAVE_RB_THREAD_CALL_WITHOUT_GVL     -ggdb -O2 -pipe -Wimplicit-function-declaration    -o entry.o -c entry.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DHAVE_WINDOWS_H -DHAVE_RUBY_H -DHAVE_CONST_HAVE_RUBY_ENCODING_H -DHAVE_RB_THREAD_CALL_WITHOUT_GVL     -ggdb -O2 -pipe -Wimplicit-function-declaration    -o memory.o -c memory.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DHAVE_WINDOWS_H -DHAVE_RUBY_H -DHAVE_CONST_HAVE_RUBY_ENCODING_H -DHAVE_RB_THREAD_CALL_WITHOUT_GVL     -ggdb -O2 -pipe -Wimplicit-function-declaration    -o monitor.o -c monitor.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DHAVE_WINDOWS_H -DHAVE_RUBY_H -DHAVE_CONST_HAVE_RUBY_ENCODING_H -DHAVE_RB_THREAD_CALL_WITHOUT_GVL     -ggdb -O2 -pipe -Wimplicit-function-declaration    -o queue.o -c queue.c
queue.c: In function ‘wdm_queue_item_error_new’:
queue.c:28:14: warning: implicit declaration of function ‘_vscprintf’ [-Wimplicit-function-declaration]
     length = _vscprintf(format, ap);
              ^
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DHAVE_WINDOWS_H -DHAVE_RUBY_H -DHAVE_CONST_HAVE_RUBY_ENCODING_H -DHAVE_RB_THREAD_CALL_WITHOUT_GVL     -ggdb -O2 -pipe -Wimplicit-function-declaration    -o rb_change.o -c rb_change.c
rb_change.c: In function ‘extract_absolute_path_from_notification’:
rb_change.c:47:16: error: ‘_MAX_FNAME’ undeclared (first use in this function)
     WCHAR file[_MAX_FNAME], ext[_MAX_EXT], filename[WDM_MAX_FILENAME];
                ^
rb_change.c:47:16: note: each undeclared identifier is reported only once for each function it appears in
rb_change.c:47:33: error: ‘_MAX_EXT’ undeclared (first use in this function)
     WCHAR file[_MAX_FNAME], ext[_MAX_EXT], filename[WDM_MAX_FILENAME];
                                 ^
rb_change.c:74:5: warning: implicit declaration of function ‘_wsplitpath’ [-Wimplicit-function-declaration]
     _wsplitpath(buffer, NULL, NULL, file, ext);
     ^
make: *** [Makefile:239: rb_change.o] Error 1

Version of software installed: ruby 2.2.5p319 (2016-04-26 revision 54774) [i386-cygwin]

r0ssIV avatar Jan 30 '17 08:01 r0ssIV

I have the same problem with ruby 2.3.3p222 (2016-11-21 revision 9808) [i386-cygwin]. I can't figure out any way around it.

ellisonch avatar Apr 14 '17 22:04 ellisonch