Luis Lavena created JRUBY-6671:
----------------------------------
Summary: jruby-launcher fails to compile with GCC 4.6.3 on OSX
Key: JRUBY-6671
URL: https://jira.codehaus.org/browse/JRUBY-6671
Project: JRuby
Issue Type: Bug
Components: C Extensions, Launcher
Affects Versions: JRuby 1.6.7
Environment: OSX 10.8.0 (Snow Leopard) i386 Kernel
GCC 4.6.3 (MacPorts provided)
Reporter: Luis Lavena
Assignee: Thomas E Enebo
When trying to install jruby-launcher gem, it fails with the following output:
<pre>
mkdir -p build/unix/Darwin
rm -f build/unix/Darwin/argparser.o.d
g++ -O2 -Wall -I/opt/local/include -c argparser.cpp -MMD -MP -MF
build/unix/Darwin/argparser.o.d -o build/unix/Darwin/argparser.o
argparser.cpp: In member function 'bool ArgParser::initPlatformDir()':
argparser.cpp:126:15: error: 'MAX_PATH' was not declared in this scope
argparser.cpp:130:40: warning: converting to non-pointer type 'char' from NULL
[-Wconversion-null]
argparser.cpp:131:17: error: 'path' was not declared in this scope
argparser.cpp:150:44: error: 'path' was not declared in this scope
argparser.cpp:155:40: error: 'path' was not declared in this scope
argparser.cpp:181:17: error: 'path' was not declared in this scope
argparser.cpp:187:16: error: 'path' was not declared in this scope
argparser.cpp:196:17: error: 'path' was not declared in this scope
argparser.cpp:201:16: error: 'path' was not declared in this scope
make[2]: *** [build/unix/Darwin/argparser.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
</pre>
This works under Apple's GCC 4.2.1 (port select --set gcc gcc42).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email