Issue #6 new

Can't install Zip/Ruby on ruby 1.9.3 x86-mingw (by Ruby Installer project)

Dice (no last name)
created an issue

Hi. My name is dice. I use Zip/Ruby on some my projects. It is speedy and easy to use, Thanks!

I tried to install Zip/Ruby gem to ruby 1.9.3 x86-mingw with DevKit. But, zipruby.so compiling was failure.

So I tried next to use compiled gem. Its zipruby.so can work on ruby 1.8.7 x86-mingw. But it can't work on ruby 1.9.3 x86-mingw.

Please provide compiled gem for ruby 1.9 x86-mswin32 or x86-mingw, or enable compiling zipruby.so on DevKit of RubyInstaller. Please give your regarding.

== ruby version: == {{{ ruby 1.9.3p194 (2012-04-20) [i386-mingw32] }}} (from http://rubyinstaller.org/)

== gem_make.out: == {{{ D:/rubies/ruby-1.9.3-mingw32/bin/ruby.exe extconf.rb checking for zlib.h... yes checking for main() in -lz... yes checking for fseeko()... yes checking for ftello()... yes checking for mkstemp()... no creating Makefile

make generating zipruby-i386-mingw32.def compiling mkstemp.c mkstemp.c:51:0: warning: "S_ISDIR" redefined d:\devkit\mingw\bin../lib/gcc/mingw32/4.5.2/../../../../include/sys/stat.h:68:0: note: this is the location of the previous definition compiling tmpfile.c tmpfile.c: In function 'zipruby_tmpnam': tmpfile.c:56:3: warning: implicit declaration of function 'strcpy_s' tmpfile.c:62:5: warning: implicit declaration of function '_sopen_s' compiling zipruby.c In file included from zipruby_archive.h:4:0, from zipruby.c:7: zip.h:50:13: error: conflicting types for 'ssize_t' d:\devkit\mingw\bin../lib/gcc/mingw32/4.5.2/../../../../include/sys/types.h:118:18: note: previous declaration of 'ssize_t' was here make: *** [zipruby.o] Error 1

}}}

== mkmf.log: == {{{ have_header: checking for zlib.h... -------------------- yes

"gcc -o conftest -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1/i386-mingw32 -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1/ruby/backward -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1 -I. -DFD_SETSIZE=32767 -DFD_SETSIZE=32767 -O3 -fno-omit-frame-pointer -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c -L. -LD:/rubies/ruby-1.9.3-mingw32/lib -L. -lmsvcrt-ruby191 -lshell32 -lws2_32 -limagehlp " checked program was: / begin / 1: #include "ruby.h" 2: 3: #include <winsock2.h> 4: #include <windows.h> 5: int main() {return 0;} / end /

"gcc -E -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1/i386-mingw32 -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1/ruby/backward -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1 -I. -DFD_SETSIZE=32767 -DFD_SETSIZE=32767 -O3 -fno-omit-frame-pointer -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c -o conftest.i" checked program was: / begin / 1: #include "ruby.h" 2: 3: #include <winsock2.h> 4: #include <windows.h> 5: #include <zlib.h> / end /


have_library: checking for main() in -lz... -------------------- yes

"gcc -o conftest -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1/i386-mingw32 -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1/ruby/backward -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1 -I. -DFD_SETSIZE=32767 -DFD_SETSIZE=32767 -O3 -fno-omit-frame-pointer -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c -L. -LD:/rubies/ruby-1.9.3-mingw32/lib -L. -lmsvcrt-ruby191 -lz -lshell32 -lws2_32 -limagehlp " checked program was: / begin / 1: #include "ruby.h" 2: 3: #include <winsock2.h> 4: #include <windows.h> 5: 6: /top/ 7: int main() {return 0;} 8: int t() { void ((volatile p)()); p = (void (()()))main; return 0; } / end /


have_func: checking for fseeko()... -------------------- yes

"gcc -o conftest -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1/i386-mingw32 -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1/ruby/backward -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1 -I. -DFD_SETSIZE=32767 -DFD_SETSIZE=32767 -O3 -fno-omit-frame-pointer -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c -L. -LD:/rubies/ruby-1.9.3-mingw32/lib -L. -lz -lmsvcrt-ruby191 -lz -lshell32 -lws2_32 -limagehlp " checked program was: / begin / 1: #include "ruby.h" 2: 3: #include <winsock2.h> 4: #include <windows.h> 5: 6: /top/ 7: int main() {return 0;} 8: int t() { void ((volatile p)()); p = (void (()()))fseeko; return 0; } / end /


have_func: checking for ftello()... -------------------- yes

"gcc -o conftest -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1/i386-mingw32 -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1/ruby/backward -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1 -I. -DFD_SETSIZE=32767 -DFD_SETSIZE=32767 -O3 -fno-omit-frame-pointer -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c -L. -LD:/rubies/ruby-1.9.3-mingw32/lib -L. -lz -lmsvcrt-ruby191 -lz -lshell32 -lws2_32 -limagehlp " checked program was: / begin / 1: #include "ruby.h" 2: 3: #include <winsock2.h> 4: #include <windows.h> 5: 6: /top/ 7: int main() {return 0;} 8: int t() { void ((volatile p)()); p = (void (()()))ftello; return 0; } / end /


have_func: checking for mkstemp()... -------------------- no

"gcc -o conftest -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1/i386-mingw32 -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1/ruby/backward -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1 -I. -DFD_SETSIZE=32767 -DFD_SETSIZE=32767 -O3 -fno-omit-frame-pointer -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c -L. -LD:/rubies/ruby-1.9.3-mingw32/lib -L. -lz -lmsvcrt-ruby191 -lz -lshell32 -lws2_32 -limagehlp " conftest.c: In function 't': conftest.c:8:53: error: 'mkstemp' undeclared (first use in this function) conftest.c:8:53: note: each undeclared identifier is reported only once for each function it appears in checked program was: / begin / 1: #include "ruby.h" 2: 3: #include <winsock2.h> 4: #include <windows.h> 5: 6: /top/ 7: int main() {return 0;} 8: int t() { void ((volatile p)()); p = (void (()()))mkstemp; return 0; } / end /

"gcc -o conftest -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1/i386-mingw32 -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1/ruby/backward -ID:/rubies/ruby-1.9.3-mingw32/include/ruby-1.9.1 -I. -DFD_SETSIZE=32767 -DFD_SETSIZE=32767 -O3 -fno-omit-frame-pointer -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c -L. -LD:/rubies/ruby-1.9.3-mingw32/lib -L. -lz -lmsvcrt-ruby191 -lz -lshell32 -lws2_32 -limagehlp " conftest.c: In function 't': conftest.c:8:1: warning: implicit declaration of function 'mkstemp' C:\Users\watson\AppData\Local\Temp\ccYnGV3J.o: In function t': D:\rubies\ruby-1.9.3-mingw32\lib\ruby\gems\1.9.1\gems\zipruby-0.3.6\ext/conftest.c:8: undefined reference tomkstemp' collect2: ld returned 1 exit status checked program was: / begin / 1: #include "ruby.h" 2: 3: #include <winsock2.h> 4: #include <windows.h> 5: 6: /top/ 7: int main() {return 0;} 8: int t() { mkstemp(); return 0; } / end /


}}}

Comments (2)

  1. Dice (no last name) reporter

    I find today that zipruby1.9 can be installed by following command on mingw32 ruby.

    gem install zipruby1.9 --platform mswin32
    

    (mswin32's binary and mingw32's binary are compatible)

    My problem has been solved, but I can't judge to close its issue. So I think to not close.

  2. Log in to comment