Skip Menu |

This queue is for tickets about the JavaScript CPAN distribution.

Report information
The Basics
Id: 90830
Status: new
Priority: 0/
Queue: JavaScript

People
Owner: Nobody in particular
Requestors: daxim [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.16
Fixed in: (no value)



Subject: JavaScript-1.16 does not build with mozjs-24.1.0
~/.cpanm/work/1385470943.22927/JavaScript-1.16$ LANG=C JS_LIB=/tmp/mozjs/lib JS_INC=/tmp/mozjs/include/mozjs-24.1 perl Makefile.PL Is your SpiderMonkey compiled with JS_THREADSAFE (most things will fail if you answer wrong)? [y/N] N Is your SpiderMonkey compiled with support for unicode (t/23-unicode.t will fail if you answer wrong) ? [y/N] [N] y Do you want support for E4X (requires SpiderMonkey > 1.5) ? [y/N] [N] y In file included from /tmp/mozjs/include/mozjs-24.1/mozilla/Casting.h:12:0, from /tmp/mozjs/include/mozjs-24.1/mozilla/FloatingPoint.h:13, from /tmp/mozjs/include/mozjs-24.1/jsapi.h:12, from JavaScript_Env.h:10, from test_js.c:2: /tmp/mozjs/include/mozjs-24.1/mozilla/TypeTraits.h:19:1: error: unknown type name 'namespace' namespace mozilla { ^ /tmp/mozjs/include/mozjs-24.1/mozilla/TypeTraits.h:19:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token namespace mozilla { ^ In file included from /tmp/mozjs/include/mozjs-24.1/mozilla/FloatingPoint.h:13:0, from /tmp/mozjs/include/mozjs-24.1/jsapi.h:12, from JavaScript_Env.h:10, from test_js.c:2: /tmp/mozjs/include/mozjs-24.1/mozilla/Casting.h:16:1: error: unknown type name 'namespace' namespace mozilla { ^ /tmp/mozjs/include/mozjs-24.1/mozilla/Casting.h:16:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token namespace mozilla { ^ In file included from /tmp/mozjs/include/mozjs-24.1/jsapi.h:12:0, from JavaScript_Env.h:10, from test_js.c:2: /tmp/mozjs/include/mozjs-24.1/mozilla/FloatingPoint.h:16:1: error: unknown type name 'namespace' namespace mozilla { ^ /tmp/mozjs/include/mozjs-24.1/mozilla/FloatingPoint.h:16:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token namespace mozilla { ^ In file included from /tmp/mozjs/include/mozjs-24.1/jsapi.h:13:0, from JavaScript_Env.h:10, from test_js.c:2: /tmp/mozjs/include/mozjs-24.1/mozilla/RangedPtr.h:18:1: error: unknown type name 'namespace' namespace mozilla { ^ /tmp/mozjs/include/mozjs-24.1/mozilla/RangedPtr.h:18:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token namespace mozilla { ^ In file included from /tmp/mozjs/include/mozjs-24.1/jsapi.h:15:0, from JavaScript_Env.h:10, from test_js.c:2: /tmp/mozjs/include/mozjs-24.1/mozilla/ThreadLocal.h:32:1: error: unknown type name 'namespace' namespace mozilla { ^ /tmp/mozjs/include/mozjs-24.1/mozilla/ThreadLocal.h:32:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token namespace mozilla { ^ In file included from /tmp/mozjs/include/mozjs-24.1/js/Utility.h:13:0, from /tmp/mozjs/include/mozjs-24.1/jsalloc.h:10, from /tmp/mozjs/include/mozjs-24.1/jsapi.h:23, from JavaScript_Env.h:10, from test_js.c:2: /tmp/mozjs/include/mozjs-24.1/mozilla/Scoped.h:56:1: error: unknown type name 'namespace' namespace mozilla { ^ /tmp/mozjs/include/mozjs-24.1/mozilla/Scoped.h:56:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token namespace mozilla { ^ In file included from /tmp/mozjs/include/mozjs-24.1/js/Utility.h:25:0, from /tmp/mozjs/include/mozjs-24.1/jsalloc.h:10, from /tmp/mozjs/include/mozjs-24.1/jsapi.h:23, from JavaScript_Env.h:10, from test_js.c:2: /tmp/mozjs/include/mozjs-24.1/js/TemplateLib.h:19:1: error: unknown type name 'namespace' namespace js { ^ /tmp/mozjs/include/mozjs-24.1/js/TemplateLib.h:19:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token namespace js { ^ In file included from /tmp/mozjs/include/mozjs-24.1/jsalloc.h:10:0, from /tmp/mozjs/include/mozjs-24.1/jsapi.h:23, from JavaScript_Env.h:10, from test_js.c:2: /tmp/mozjs/include/mozjs-24.1/js/Utility.h:28:1: error: unknown type name 'namespace' namespace JS {} ^ /tmp/mozjs/include/mozjs-24.1/js/Utility.h:28:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token namespace JS {} ^ /tmp/mozjs/include/mozjs-24.1/js/Utility.h:31:1: error: unknown type name 'namespace' namespace mozilla {} ^ /tmp/mozjs/include/mozjs-24.1/js/Utility.h:31:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token namespace mozilla {} ^ /tmp/mozjs/include/mozjs-24.1/js/Utility.h:34:1: error: unknown type name 'namespace' namespace js {} ^ /tmp/mozjs/include/mozjs-24.1/js/Utility.h:34:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token namespace js {} ^ /tmp/mozjs/include/mozjs-24.1/js/Utility.h:163:24: error: conflicting types for 'js_calloc' static JS_INLINE void* js_calloc(size_t nmemb, size_t size) ^ /tmp/mozjs/include/mozjs-24.1/js/Utility.h:157:24: note: previous definition of 'js_calloc' was here static JS_INLINE void* js_calloc(size_t bytes) ^ /tmp/mozjs/include/mozjs-24.1/js/Utility.h:368:15: fatal error: new: No such file or directory #include <new> ^ compilation terminated. Failed compiling test_js.c. ABORTING cc -o /tmp/A29GHfYVDc test_js.c -I. -I/tmp/mozjs/include/mozjs-24.1 -L/tmp/mozjs/lib -ljs