hparra / ruby-serialport

ruby-serialport is a Ruby library that provides a class for using RS-232 serial ports

Home Page:http://rubygems.org/gems/serialport

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gem don't compile with ruby-1.9.1 in Windows

atimin opened this issue · comments

C:/Ruby19/bin/ruby.exe extconf.rb
checking for OS... mingw
creating Makefile

make
gcc -I. -IC:/Ruby19/include/ruby-1.9.1/i386-mingw32 -I/C/Ruby19/include/ruby-1.9.1/ruby/backward -I/C/Ruby19/include/ruby-1.9.1 -Isrc -O2 -g -Wall -Wno-parentheses -DOS_MINGW -DRUBY_19 -o posix_serialport_impl.o -c src/posix_serialport_impl.c
gcc -I. -IC:/Ruby19/include/ruby-1.9.1/i386-mingw32 -I/C/Ruby19/include/ruby-1.9.1/ruby/backward -I/C/Ruby19/include/ruby-1.9.1 -Isrc -O2 -g -Wall -Wno-parentheses -DOS_MINGW -DRUBY_19 -o serialport.o -c src/serialport.c
gcc -I. -IC:/Ruby19/include/ruby-1.9.1/i386-mingw32 -I/C/Ruby19/include/ruby-1.9.1/ruby/backward -I/C/Ruby19/include/ruby-1.9.1 -Isrc -O2 -g -Wall -Wno-parentheses -DOS_MINGW -DRUBY_19 -o win_serialport_impl.o -c src/win_serialport_impl.c
src/win_serialport_impl.c: In function get_handle_helper': src/win_serialport_impl.c:38: error:fptr' undeclared (first use in this function)
src/win_serialport_impl.c:38: error: (Each undeclared identifier is reported only once
src/win_serialport_impl.c:38: error: for each function it appears in.)
src/win_serialport_impl.c: In function sp_create_impl': src/win_serialport_impl.c:47: error:fp' undeclared (first use in this function)
src/win_serialport_impl.c:78: error: structure has no member named ptr' src/win_serialport_impl.c: In functionget_line_signals_helper_impl':
src/win_serialport_impl.c:543: warning: passing arg 2 of `GetCommModemStatus' from incompatible pointer type
make: *** [win_serialport_impl.o] Error 1

I'm using:
rubyinstaller-1.9.1-p243-rc1 with devkit devkit-3.4.5r3
OS: Windosws XP, Windows 7

Yes, this is a known issue. There are differences in the 1.8 and 1.9 IO libs.

I saw your fork. Will pull it.

This has been fixed (RUBY_1_9) merged in experimental branch. Thank you!

Yes, I create fork for this issue. Now serialport compiled for Ruby1.9 but don;t run(((((
http://groups.google.com/group/rubyinstaller/browse_thread/thread/92ecf042368082fb/1fcd36661473bfba#1fcd36661473bfba