eventmachine/evma_httpserver — Issue #13: Doesn't install on jruby and darwin
Author: matee911
Created: 2011-11-18 15:29:44+00:00
State: open

```

bundle update
Fetching source index for http://rubygems.org/
Using eventmachine (0.12.10)
Installing eventmachine_httpserver (0.2.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/Users/matee/.rvm/rubies/jruby-1.6.4/bin/jruby extconf.rb
WARNING: JRuby does not support native extensions or the `mkmf' library very well.
Check http://kenai.com/projects/jruby/pages/Home for alternatives.
checking for main() in -lpthread... yes
checking for main() in -lssl... yes
checking for main() in -lcrypto... yes
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
creating Makefile

make
g++ -I. -I. -I/Users/matee/.rvm/rubies/jruby-1.6.4/lib/native/include/ruby -I. -DHAVE_OPENSSL_SSL_H -DHAVE_OPENSSL_ERR_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -DOS_UNIX -DBUILD_FOR_RUBY -DWITH_SSL -fPIC -DTARGET_RT_MAC_CFM=0 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -arch x86_64 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -c http.cpp
g++ -I. -I. -I/Users/matee/.rvm/rubies/jruby-1.6.4/lib/native/include/ruby -I. -DHAVE_OPENSSL_SSL_H -DHAVE_OPENSSL_ERR_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -DOS_UNIX -DBUILD_FOR_RUBY -DWITH_SSL -fPIC -DTARGET_RT_MAC_CFM=0 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -arch x86_64 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -c rubyhttp.cpp
g++ -shared -o eventmachine_httpserver.bundle http.o rubyhttp.o -L"." -L"/Users/matee/.rvm/rubies/jruby-1.6.4/lib" -bundle -framework JavaVM -Wl,-syslibroot, -mmacosx-version-min=10.4 -arch x86_64 -lcrypto -lssl -lpthread
i686-apple-darwin10-g++-4.2.1: -bundle not allowed with -dynamiclib
make: *** [eventmachine_httpserver.bundle] Error 1

Gem files will remain installed in /Users/matee/.rvm/gems/jruby-1.6.4/gems/eventmachine_httpserver-0.2.1 for inspection.
Results logged to /Users/matee/.rvm/gems/jruby-1.6.4/gems/eventmachine_httpserver-0.2.1/ext/gem_make.out
An error occured while installing eventmachine_httpserver (0.2.1), and Bundler cannot continue.
Make sure that `gem install eventmachine_httpserver -v '0.2.1'` succeeds before bundling.
```

gem_make.out

```
/Users/matee/.rvm/rubies/jruby-1.6.4/bin/jruby extconf.rb
WARNING: JRuby does not support native extensions or the `mkmf' library very well.
Check http://kenai.com/projects/jruby/pages/Home for alternatives.
checking for main() in -lpthread... yes
checking for main() in -lssl... yes
checking for main() in -lcrypto... yes
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
creating Makefile

make
g++ -I. -I. -I/Users/matee/.rvm/rubies/jruby-1.6.4/lib/native/include/ruby -I. -DHAVE_OPENSSL_SSL_H -DHAVE_OPENSSL_ERR_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -DOS_UNIX -DBUILD_FOR_RUBY -DWITH_SSL -fPIC -DTARGET_RT_MAC_CFM=0 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -arch x86_64 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -c http.cpp
g++ -I. -I. -I/Users/matee/.rvm/rubies/jruby-1.6.4/lib/native/include/ruby -I. -DHAVE_OPENSSL_SSL_H -DHAVE_OPENSSL_ERR_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -DOS_UNIX -DBUILD_FOR_RUBY -DWITH_SSL -fPIC -DTARGET_RT_MAC_CFM=0 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -arch x86_64 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -c rubyhttp.cpp
g++ -shared -o eventmachine_httpserver.bundle http.o rubyhttp.o -L"." -L"/Users/matee/.rvm/rubies/jruby-1.6.4/lib" -bundle -framework JavaVM -Wl,-syslibroot, -mmacosx-version-min=10.4 -arch x86_64 -lcrypto -lssl -lpthread
i686-apple-darwin10-g++-4.2.1: -bundle not allowed with -dynamiclib
make: *** [eventmachine_httpserver.bundle] Error 1
```

jRuby
```ruby --version
jruby 1.6.4 (ruby-1.8.7-p330) (2011-08-23 17ea768) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_29) [darwin-x86_64-java]
```