Use of -Werror when compiling C extension support causes error on OpenBSD amd64 -------------------------------------------------------------------------------
Key: JRUBY-5473 URL: http://jira.codehaus.org/browse/JRUBY-5473 Project: JRuby Issue Type: Bug Reporter: Jeremy Evans Assignee: Thomas E Enebo Attachments: patch-cext_src_Makefile_1 When compiling the C extension support, gmake exits with the following message: cc1plus: warnings being treated as errors /usr/obj/ports/jruby-1.6.0rc2/jruby-1.6.0.RC2/cext/src/invoke.cpp: In function 'jlong Java_org_jruby_cext_Native_callFunction(JNIEnv*, _jobject*, jlong, jlong)': /usr/obj/ports/jruby-1.6.0rc2/jruby-1.6.0.RC2/cext/src/invoke.cpp:299: warning: NULL used in arithmetic I'm not sure if the error message is valid, since the NULL is explicitly casted to jlong. Removing the -Werror in the Makefile should fix the issue. I'll attach a patch for this. Assuming -Werror is actually desired, it could be made conditional so as to not take effect on OpenBSD, or you could just fix the issue by using 0 instead of NULL on line 299. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.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