Closed Bug 540274 Opened 16 years ago Closed 15 years ago

AIX compilation error in jscntxt.h

Categories

(Core :: JavaScript Engine, defect)

PowerPC
AIX
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ul-mcamafia, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; AIX 5.1; en-US; rv:1.9.1.7) Gecko/20100105 SeaMonkey/2.0.2 Build Identifier: Firefox 3.6rc1 xlC_r -o json.o -c -DOSTYPE=\"AIX5.1\" -DOSARCH=AIX -DEXPORT_JS_API -DJS_USE_SAFE_ARENA -I/home/ulink/src/fx36/mozilla-1.9.2/js/src -I. -I./../../dist/include -I./../../dist/include/nsprpub -I/home/ulink/src/fx36/mozilla-1.9.2/FX36_OBJ/dist/include/nspr -I/home/ulink/src/fx36/mozilla-1.9.2/js/src -qflag=w:w -DNDEBUG -DTRIMMED -O2 -qarch=com -qmaxmem=-1 -qalias=noansi -DAIX=1 -DHAVE_SYS_INTTYPES_H=1 -DNSCAP_DISABLE_DEBUG_PTR_TYPES=1 -DD_INO=d_ino -DSTDC_HEADERS=1 -DHAVE_ST_BLKSIZE=1 -DHAVE_SIGINFO_T=1 -DJS_HAVE_STDINT_H=1 -DJS_BYTES_PER_WORD=4 -DJS_BITS_PER_WORD_LOG2=5 -DJS_ALIGN_OF_POINTER=4 -DJS_BYTES_PER_DOUBLE=8 -DHAVE_INT16_T=1 -DHAVE_INT32_T=1 -DHAVE_INT64_T=1 -DHAVE_INT64=1 -DHAVE_UINT=1 -DHAVE_UINT_T=1 -DHAVE_UINT16_T=1 -DHAVE_DIRENT_H=1 -DHAVE_MEMORY_H=1 -DHAVE_UNISTD_H=1 -DHAVE_NL_TYPES_H=1 -DHAVE_MALLOC_H=1 -DHAVE_X11_XKBLIB_H=1 -DHAVE_SYS_STATVFS_H=1 -DHAVE_SYS_STATFS_H=1 -DHAVE_SYS_VFS_H=1 -DNEW_H=\<new\> -DHAVE_LIBC_R=1 -DHAVE_LIBM=1 -DHAVE_LIBDL=1 -DHAVE_LIBC_R=1 -D_REENTRANT=1 -DHAVE_FCHMOD=1 -DHAVE_FLOCKFILE=1 -DHAVE_GETC_UNLOCKED=1 -DHAVE_GETPAGESIZE=1 -DHAVE_LCHOWN=1 -DHAVE_LOCALTIME_R=1 -DHAVE_LSTAT64=1 -DHAVE_MEMMOVE=1 -DHAVE_RANDOM=1 -DHAVE_RINT=1 -DHAVE_SBRK=1 -DHAVE_SNPRINTF=1 -DHAVE_STAT64=1 -DHAVE_STATVFS=1 -DHAVE_STRERROR=1 -DHAVE_STRTOK_R=1 -DHAVE_TRUNCATE64=1 -DHAVE_WCRTOMB=1 -DHAVE_MBRTOWC=1 -DHAVE_RES_NINIT=1 -DHAVE_ICONV=1 -DHAVE_ICONV_WITH_CONST_INPUT=1 -DHAVE_CPP_EXPLICIT=1 -DHAVE_CPP_TYPENAME=1 -DHAVE_CPP_MODERN_SPECIALIZE_TEMPLATE_SYNTAX=1 -DHAVE_CPP_PARTIAL_SPECIALIZATION=1 -DHAVE_CPP_AMBIGUITY_RESOLVING_USING=1 -DHAVE_CPP_NAMESPACE_STD=1 -DHAVE_CPP_UNAMBIGUOUS_STD_NOTEQUAL=1 -DHAVE_CPP_NEW_CASTS=1 -DNEED_CPP_UNUSED_IMPLEMENTATIONS=1 -DHAVE_I18N_LC_MESSAGES=1 -DCPP_THROW_NEW=throw\(\) -DEDITLINE=1 -DMOZ_DLL_SUFFIX=\".so\" -DXP_UNIX=1 -DUNIX_ASYNC_DNS=1 -DJS_THREADSAFE=1 -DHAVE_SETLOCALE=1 -D_JS_CONFDEFS_H_ -DMOZILLA_CLIENT /home/ulink/src/fx36/mozilla-1.9.2/js/src/json.cpp "/home/ulink/src/fx36/mozilla-1.9.2/js/src/jsvector.h", line 183.16: 1540-0198 (W) The omitted keyword "private" is assumed for base class "AllocPolicy". "/home/ulink/src/fx36/mozilla-1.9.2/js/src/jsvector.h", line 183.16: 1540-0198 (W) The omitted keyword "private" is assumed for base class "AllocPolicy". "/home/ulink/src/fx36/mozilla-1.9.2/js/src/jsvector.h", line 183.16: 1540-0198 (W) The omitted keyword "private" is assumed for base class "AllocPolicy". "/home/ulink/src/fx36/mozilla-1.9.2/js/src/jscntxt.h", line 1271.9: 1540-0218 (S) The call does not match any parameter list for "::operator new". "/usr/vacpp/include/new", line 99.10: 1540-1283 (I) "operator new(unsigned long)" is not a viable candidate. "/home/ulink/src/fx36/mozilla-1.9.2/js/src/jscntxt.h", line 1271.9: 1540-0215 (I) The wrong number of arguments have been specified for "operator new(unsigned long)". "/home/ulink/src/fx36/mozilla-1.9.2/js/src/jscntxt.h", line 1271.9: 1540-1284 (I) Predefined "operator new(unsigned long, const char *, unsigned long)" is not a viable candidate. "/home/ulink/src/fx36/mozilla-1.9.2/js/src/jscntxt.h", line 1271.9: 1540-0256 (I) A parameter of type "const char *" cannot be initialized with an expression of type "void *". "/usr/vacpp/include/new", line 101.10: 1540-1298 (I) "void *operator new(size_t, void *) throw()" needs to be declared in the containing scope to be found by name lookup. "/home/ulink/src/fx36/mozilla-1.9.2/js/src/jscntxt.h", line 1270.25: 1540-0700 (I) The previous message was produced while processing "JSContext::create<JSONParser,JSContext *>(JSContext * const &)". "/home/ulink/src/fx36/mozilla-1.9.2/js/src/json.cpp", line 664.24: 1540-0700 (I) The previous message was produced while processing "js_BeginJSONParse(JSContext *, jsval *)". "/home/ulink/src/fx36/mozilla-1.9.2/js/src/jscntxt.h", line 1530.44: 1540-1281 (W) "offsetof" cannot be applied to "struct JSContext". It is not a POD (plain old data) type. gmake[3]: *** [json.o] Error 1 gmake[3]: Leaving directory `/home/ulink/src/fx36/mozilla-1.9.2/FX36_OBJ/js/src' gmake[2]: *** [libs_tier_js] Error 2 Reproducible: Always Steps to Reproduce: 1. Compile on AIX 5.1 with XLC/C++ 8.0.0.16 Actual Results: compilation broken Expected Results: successfull compilation
Status: UNCONFIRMED → NEW
Ever confirmed: true
Surprisingly just #include <new> gets us past this error on AIX 5.3 with xlC Version: 08.00.0000.0024
this fix makes AIX 5.1 with IBM XLC/C++ 8.0.0.15 happy. Not needed with IBM XLC/C++ 9.0 or newer which is available on AIX 5.2. Closing this bug WORKSFORME
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: