larskanis / importtest

from bitbucket
0 stars 0 forks source link

JRuby + Windows compilation does not works #84

Open larskanis opened 13 years ago

larskanis commented 13 years ago

Original report by evgenymyasishchev (Bitbucket: evgenymyasishchev, ).


Not sure, but perhaps the issue is related to <<issue 71>>

Summary: Trying to compile pg gem under windows platform and JRuby fails. I have also checked JRuby + pg under Mac OSX and it has compiled successfully.

Compiler used: devkit (https://github.com/oneclick/rubyinstaller/wiki/development-kit).

I have also checked the same compiler under Windows and normal Ruby 1.8.7. Compiled and installed successfully (gem install pg --platform=ruby)

The error is (see attached gem_make.out for more details):

pg.c: In function 'create_crt_fd':
pg.c:2029:3: error: 'WSAPROTOCOL_INFO' undeclared (first use in this function)
pg.c:2029:3: note: each undeclared identifier is reported only once for each function it appears in
pg.c:2029:20: error: expected ';' before 'wsa_pi'
pg.c:2031:75: error: 'wsa_pi' undeclared (first use in this function)
make: *** [pg.o] Error 1 

gem env:

RubyGems Environment:
  - RUBYGEMS VERSION: 1.5.1
  - RUBY VERSION: 1.8.7 (2011-08-23 patchlevel 330) [java]
  - INSTALLATION DIRECTORY: c:/ruby/jruby-1.6.4-gems
  - RUBY EXECUTABLE: c:/ruby/jruby-1.6.4/bin/jruby.exe
  - EXECUTABLE DIRECTORY: c:/ruby/jruby-1.6.4-gems/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - universal-java-1.6
  - GEM PATHS:
     - c:/ruby/jruby-1.6.4-gems
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - "install" => "--no-rdoc --no-ri --env-shebang"
     - "update" => "--no-rdoc --no-ri --env-shebang"
  - REMOTE SOURCES:
     - http://rubygems.org/ 
larskanis commented 13 years ago

Original comment by Michael Granger (Bitbucket: ged, GitHub: ged).


Unfortunately, this is far enough outside my experience that I'm not sure how to help. I'd like to support JRuby, but I don't have the expertise or time to do so without help from someone that uses that platform. The last I'd heard, C extensions were only supported in an experimental fork of JRuby, but I'd be happy to accept patches that made it run under it or any other interpreter.

I also don't use Windows except when testing this extension under the MRI, so I'm a bit out of my depth with that as well.