thoughtbot/capybara-webkit — Issue #208: g++: error: unrecognized option ‘-h’ using jruby
Author: sobrinho
Created: 2011-11-08 12:33:15+00:00
State: open

Hello,

I'm trying to install capybara-webkit on my integration server and I receive that error.

I guess this is the relevant info:

```
g++ -headerpad_max_install_names -o webkit_server main.o WebPage.o Server.o Connection.o Command.o Visit.o Find.o Reset.o Node.o JavascriptInvocation.o Url.o Source.o Evaluate.o Execute.o FrameFocus.o Response.o NetworkAccessManager.o NetworkCookieJar.o Header.o Render.o body.o Status.o Headers.o UnsupportedContentHandler.o SetCookie.o ClearCookies.o GetCookies.o moc_WebPage.o moc_Server.o moc_Connection.o moc_Command.o moc_Visit.o moc_Find.o moc_Reset.o moc_Node.o moc_JavascriptInvocation.o moc_Url.o moc_Source.o moc_Evaluate.o moc_Execute.o moc_FrameFocus.o moc_NetworkAccessManager.o moc_NetworkCookieJar.o moc_Header.o moc_Render.o moc_Body.o moc_Status.o moc_Headers.o moc_UnsupportedContentHandler.o moc_SetCookie.o moc_ClearCookies.o moc_GetCookies.o qrc_webkit_server.o -L/usr/lib/i386-linux-gnu -lQtWebKit -lQtGui -lQtNetwork -lQtCore
g++: error: unrecognized option ‘-h’
make[1]: Leaving directory `/var/lib/jenkins/.rbenv/versions/jruby-1.6.5/lib/ruby/gems/1.8/gems/capybara-webkit-0.7.2/src'
make[1]: *** [webkit_server] Error 1
make: *** [sub-src-webkit_server-pro-make_default-ordered] Error 2

make
cd src/ && make -f Makefile.webkit_server
make[1]: Entering directory `/var/lib/jenkins/.rbenv/versions/jruby-1.6.5/lib/ruby/gems/1.8/gems/capybara-webkit-0.7.2/src'
g++ -headerpad_max_install_names -o webkit_server main.o WebPage.o Server.o Connection.o Command.o Visit.o Find.o Reset.o Node.o JavascriptInvocation.o Url.o Source.o Evaluate.o Execute.o FrameFocus.o Response.o NetworkAccessManager.o NetworkCookieJar.o Header.o Render.o body.o Status.o Headers.o UnsupportedContentHandler.o SetCookie.o ClearCookies.o GetCookies.o moc_WebPage.o moc_Server.o moc_Connection.o moc_Command.o moc_Visit.o moc_Find.o moc_Reset.o moc_Node.o moc_JavascriptInvocation.o moc_Url.o moc_Source.o moc_Evaluate.o moc_Execute.o moc_FrameFocus.o moc_NetworkAccessManager.o moc_NetworkCookieJar.o moc_Header.o moc_Render.o moc_Body.o moc_Status.o moc_Headers.o moc_UnsupportedContentHandler.o moc_SetCookie.o moc_ClearCookies.o moc_GetCookies.o qrc_webkit_server.o -L/usr/lib/i386-linux-gnu -lQtWebKit -lQtGui -lQtNetwork -lQtCore
g++: error: unrecognized option ‘-h’
make[1]: *** [webkit_server] Error 1
make[1]: Leaving directory `/var/lib/jenkins/.rbenv/versions/jruby-1.6.5/lib/ruby/gems/1.8/gems/capybara-webkit-0.7.2/src'
make: *** [sub-src-webkit_server-pro-make_default-ordered] Error 2
```

On my local machine (mac os x lion), it compiles.

Using ruby 1.9.2-p290 it compiles on integration server (linux).

What info you need to trace this?