Re: [FreeJ] libjs.a

dyne.org open discussions
Author: Gabriel Zea
Date:  
To: FreeJ mailinglist
Subject: Re: [FreeJ] libjs.a
i have the sources, but still having problems :(

please take a look:

jsapi.c:3445: warning: control reaches end of non-void function
jsapi.c: At top level:
jsapi.c:3448: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘JS_GetFunctionFlags’
jsapi.c:3454: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘JS_GetFunctionArity’
jsapi.c:3461: error: ‘JS_ObjectIsFunction’ declared as function
returning a function
jsapi.c: In function ‘JS_ObjectIsFunction’:
jsapi.c:3462: error: cast specifies function type
jsapi.c:3462: error: ‘JSObjectMap’ has no member named ‘freeslot’
jsapi.c:3462: error: ‘JSObjectMap’ has no member named ‘nslots’
jsapi.c:3462: error: ‘JSObjectMap’ has no member named ‘freeslot’
jsapi.c:3462: error: ‘JSObjectMap’ has no member named ‘nslots’
jsapi.c:3462: error: too many arguments to function ‘JS_Assert’
jsapi.c:3462: warning: left-hand operand of comma expression has no
effect
jsapi.c: At top level:
jsapi.c:3467: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c:3468: error: ‘js_generic_native_method_dispatcher’ declared as
function returning a function
jsapi.c: In function ‘js_generic_native_method_dispatcher’:
jsapi.c:3473: error: expected ‘)’ before numeric constant
jsapi.c:3474: error: cast specifies function type
jsapi.c:3483: error: expected ‘)’ before numeric constant
jsapi.c:3489: error: cast specifies function type
jsapi.c:3499: error: ‘JSFunctionSpec’ has no member named ‘nargs’
jsapi.c:3499: error: ‘argc’ undeclared (first use in this function)
jsapi.c:3499: error: ‘JSFunctionSpec’ has no member named ‘nargs’
jsapi.c:3505: error: ‘JSContext’ has no member named ‘fp’
jsapi.c:3505: error: too many arguments to function ‘JS_Assert’
jsapi.c:3506: error: expected ‘)’ before numeric constant
jsapi.c:3506: error: ‘JSContext’ has no member named ‘fp’
jsapi.c:3507: error: cast specifies function type
jsapi.c:3516: error: expected ‘)’ before numeric constant
jsapi.c:3516: error: too many arguments to function ‘fs->call’
jsapi.c: At top level:
jsapi.c:3521: error: ‘JS_DefineFunctions’ declared as function returning
a function
jsapi.c: In function ‘JS_DefineFunctions’:
jsapi.c:3522: error: ‘uintN’ undeclared (first use in this function)
jsapi.c:3522: error: expected ‘;’ before ‘flags’
jsapi.c:3529: error: ‘flags’ undeclared (first use in this function)
jsapi.c:3529: error: ‘JSFunctionSpec’ has no member named ‘flags’
jsapi.c:3539: error: cast specifies function type
jsapi.c:3545: error: ‘JSFunctionSpec’ has no member named ‘nargs’
jsapi.c:3545: error: too many arguments to function ‘JS_DefineFunction’
jsapi.c:3547: error: cast specifies function type
jsapi.c:3548: error: ‘JSFunction’ has no member named ‘extra’
jsapi.c:3548: error: ‘JSFunctionSpec’ has no member named ‘extra’
jsapi.c:3554: error: ‘JSFunction’ has no member named ‘object’
jsapi.c:3555: error: cast specifies function type
jsapi.c:3558: error: ‘JSFunctionSpec’ has no member named ‘nargs’
jsapi.c:3558: error: too many arguments to function ‘JS_DefineFunction’
jsapi.c:3560: error: cast specifies function type
jsapi.c:3561: error: ‘JSFunction’ has no member named ‘extra’
jsapi.c:3561: error: ‘JSFunctionSpec’ has no member named ‘extra’
jsapi.c:3563: error: cast specifies function type
jsapi.c:3564: warning: control reaches end of non-void function
jsapi.c: At top level:
jsapi.c:3568: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c:3568: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c: In function ‘JS_DefineFunction’:
jsapi.c:3573: error: too many arguments to function ‘js_Atomize’
jsapi.c:3576: error: ‘nargs’ undeclared (first use in this function)
jsapi.c:3576: error: ‘attrs’ undeclared (first use in this function)
jsapi.c:3576: error: too many arguments to function ‘js_DefineFunction’
jsapi.c: At top level:
jsapi.c:3581: warning: type defaults to ‘int’ in declaration of ‘jschar’
jsapi.c:3581: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
jsapi.c: In function ‘CompileTokenStream’:
jsapi.c:3602: error: cast specifies function type
jsapi.c:3603: error: ‘jsbytecode’ undeclared (first use in this
function)
jsapi.c:3604: error: ‘jssrcnote’ undeclared (first use in this function)
jsapi.c:3606: error: ‘JSTokenStream’ has no member named ‘filename’
jsapi.c:3606: error: ‘JSTokenStream’ has no member named ‘lineno’
jsapi.c:3607: error: ‘JSTokenStream’ has no member named ‘principals’
jsapi.c:3607: error: too many arguments to function
‘js_InitCodeGenerator’
jsapi.c:3611: error: ‘JSTokenStream’ has no member named ‘flags’
jsapi.c:3616: error: lvalue required as left operand of assignment
jsapi.c: At top level:
jsapi.c:3632: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c: In function ‘JS_CompileScript’:
jsapi.c:3634: error: ‘jschar’ undeclared (first use in this function)
jsapi.c:3634: error: ‘chars’ undeclared (first use in this function)
jsapi.c:3638: warning: implicit declaration of function
‘js_InflateString’
jsapi.c:3641: warning: implicit declaration of function
‘JS_CompileUCScript’
jsapi.c:3641: error: ‘lineno’ undeclared (first use in this function)
jsapi.c:3641: warning: assignment makes pointer from integer without a
cast
jsapi.c: At top level:
jsapi.c:3650: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c: In function ‘JS_CompileScriptForPrincipals’:
jsapi.c:3652: error: ‘jschar’ undeclared (first use in this function)
jsapi.c:3652: error: ‘chars’ undeclared (first use in this function)
jsapi.c:3659: warning: implicit declaration of function
‘JS_CompileUCScriptForPrincipals’
jsapi.c:3660: error: ‘lineno’ undeclared (first use in this function)
jsapi.c:3660: warning: assignment makes pointer from integer without a
cast
jsapi.c: At top level:
jsapi.c:3667: warning: type defaults to ‘int’ in declaration of ‘jschar’
jsapi.c:3667: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
jsapi.c:3696: warning: type defaults to ‘int’ in declaration of ‘jschar’
jsapi.c:3696: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
jsapi.c:3716: error: ‘JS_BufferIsCompilableUnit’ declared as function
returning a function
jsapi.c: In function ‘JS_BufferIsCompilableUnit’:
jsapi.c:3717: error: ‘jschar’ undeclared (first use in this function)
jsapi.c:3717: error: ‘chars’ undeclared (first use in this function)
jsapi.c:3727: error: cast specifies function type
jsapi.c:3733: error: cast specifies function type
jsapi.c:3735: error: ‘JSContext’ has no member named ‘tempPool’
jsapi.c:3736: warning: implicit declaration of function
‘js_NewTokenStream’
jsapi.c:3736: warning: assignment makes pointer from integer without a
cast
jsapi.c:3740: error: ‘JSTokenStream’ has no member named ‘flags’
jsapi.c:3746: error: cast specifies function type
jsapi.c:3751: error: ‘JSContext’ has no member named ‘tempPool’
jsapi.c:3751: error: ‘JSContext’ has no member named ‘tempPool’
jsapi.c:3751: error: ‘JSContext’ has no member named ‘tempPool’
jsapi.c:3751: error: ‘JSContext’ has no member named ‘tempPool’
jsapi.c:3751: error: too many arguments to function ‘JS_Assert’
jsapi.c:3751: error: too many arguments to function ‘JS_Assert’
jsapi.c:3751: error: ‘JSContext’ has no member named ‘tempPool’
jsapi.c:3756: warning: return makes integer from pointer without a cast
jsapi.c: In function ‘JS_CompileFile’:
jsapi.c:3767: error: ‘JSContext’ has no member named ‘tempPool’
jsapi.c:3772: error: ‘JSContext’ has no member named ‘fp’
jsapi.c:3772: error: ‘JSContext’ has no member named
‘lastInternalResult’
jsapi.c: In function ‘JS_CompileFileHandleForPrincipals’:
jsapi.c:3793: error: ‘JSContext’ has no member named ‘tempPool’
jsapi.c:3797: error: ‘JSTokenStream’ has no member named ‘filename’
jsapi.c:3800: error: ‘JSTokenStream’ has no member named ‘principals’
jsapi.c:3801: error: ‘JSTokenStream’ has no member named ‘principals’
jsapi.c:3804: error: ‘JSContext’ has no member named ‘fp’
jsapi.c:3804: error: ‘JSContext’ has no member named
‘lastInternalResult’
jsapi.c: In function ‘JS_NewScriptObject’:
jsapi.c:3820: error: ‘JSScript’ has no member named ‘object’
jsapi.c: In function ‘JS_GetScriptObject’:
jsapi.c:3828: error: ‘JSScript’ has no member named ‘object’
jsapi.c:3829: warning: control reaches end of non-void function
jsapi.c: At top level:
jsapi.c:3840: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c:3842: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c: In function ‘JS_CompileFunction’:
jsapi.c:3844: error: ‘jschar’ undeclared (first use in this function)
jsapi.c:3844: error: ‘chars’ undeclared (first use in this function)
jsapi.c:3851: warning: implicit declaration of function
‘JS_CompileUCFunction’
jsapi.c:3851: error: ‘nargs’ undeclared (first use in this function)
jsapi.c:3852: error: ‘lineno’ undeclared (first use in this function)
jsapi.c:3852: warning: assignment makes pointer from integer without a
cast
jsapi.c: At top level:
jsapi.c:3860: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c:3862: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c: In function ‘JS_CompileFunctionForPrincipals’:
jsapi.c:3864: error: ‘jschar’ undeclared (first use in this function)
jsapi.c:3864: error: ‘chars’ undeclared (first use in this function)
jsapi.c:3871: warning: implicit declaration of function
‘JS_CompileUCFunctionForPrincipals’
jsapi.c:3872: error: ‘nargs’ undeclared (first use in this function)
jsapi.c:3873: error: ‘lineno’ undeclared (first use in this function)
jsapi.c:3873: warning: assignment makes pointer from integer without a
cast
jsapi.c: At top level:
jsapi.c:3880: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c:3881: warning: type defaults to ‘int’ in declaration of ‘jschar’
jsapi.c:3881: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
jsapi.c:3894: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c:3895: warning: type defaults to ‘int’ in declaration of ‘jschar’
jsapi.c:3895: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
jsapi.c:3962: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c: In function ‘JS_DecompileScript’:
jsapi.c:3969: error: ‘indent’ undeclared (first use in this function)
jsapi.c:3969: error: ‘uintN’ undeclared (first use in this function)
jsapi.c:3969: error: expected ‘)’ before numeric constant
jsapi.c:3970: error: expected ‘)’ before numeric constant
jsapi.c:3970: error: too many arguments to function ‘js_NewPrinter’
jsapi.c: At top level:
jsapi.c:3982: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c: In function ‘JS_DecompileFunction’:
jsapi.c:3989: error: ‘indent’ undeclared (first use in this function)
jsapi.c:3989: error: ‘uintN’ undeclared (first use in this function)
jsapi.c:3989: error: expected ‘)’ before numeric constant
jsapi.c:3990: error: expected ‘)’ before numeric constant
jsapi.c:3990: error: too many arguments to function ‘js_NewPrinter’
jsapi.c: At top level:
jsapi.c:4002: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c: In function ‘JS_DecompileFunctionBody’:
jsapi.c:4009: error: ‘indent’ undeclared (first use in this function)
jsapi.c:4009: error: ‘uintN’ undeclared (first use in this function)
jsapi.c:4009: error: expected ‘)’ before numeric constant
jsapi.c:4010: error: expected ‘)’ before numeric constant
jsapi.c:4010: error: too many arguments to function ‘js_NewPrinter’
jsapi.c: At top level:
jsapi.c:4023: error: ‘JS_ExecuteScript’ declared as function returning a
function
jsapi.c: In function ‘JS_ExecuteScript’:
jsapi.c:4027: error: too many arguments to function ‘js_Execute’
jsapi.c:4027: error: lvalue required as left operand of assignment
jsapi.c:4028: error: ‘JSContext’ has no member named ‘fp’
jsapi.c:4028: error: ‘JSContext’ has no member named
‘lastInternalResult’
jsapi.c:4028: warning: the address of ‘ok’ will always evaluate as
‘true’
jsapi.c:4029: warning: return makes integer from pointer without a cast
jsapi.c: At top level:
jsapi.c:4035: error: ‘JS_ExecuteScriptPart’ declared as function
returning a function
jsapi.c: In function ‘JS_ExecuteScriptPart’:
jsapi.c:4043: error: ‘JSScript’ has no member named ‘length’
jsapi.c:4043: error: ‘JSScript’ has no member named ‘main’
jsapi.c:4043: error: ‘JSScript’ has no member named ‘code’
jsapi.c:4045: error: ‘JSScript’ has no member named ‘length’
jsapi.c:4045: error: ‘JSScript’ has no member named ‘main’
jsapi.c:4045: error: ‘JSScript’ has no member named ‘code’
jsapi.c:4046: error: ‘JSScript’ has no member named ‘code’
jsapi.c:4046: error: ‘JSScript’ has no member named ‘main’
jsapi.c:4050: error: ‘JSContext’ has no member named ‘runtime’
jsapi.c:4051: error: ‘JSRuntime’ has no member named ‘newScriptHook’
jsapi.c:4052: error: ‘JSRuntime’ has no member named ‘newScriptHook’
jsapi.c:4052: error: ‘JSScript’ has no member named ‘filename’
jsapi.c:4052: error: ‘JSScript’ has no member named ‘lineno’
jsapi.c:4053: error: ‘JSRuntime’ has no member named ‘newScriptHookData’
jsapi.c:4057: error: lvalue required as left operand of assignment
jsapi.c:4058: error: ‘JSRuntime’ has no member named ‘destroyScriptHook’
jsapi.c:4059: error: ‘JSRuntime’ has no member named ‘destroyScriptHook’
jsapi.c:4059: error: ‘JSRuntime’ has no member named
‘destroyScriptHookData’
jsapi.c:4060: warning: return makes integer from pointer without a cast
jsapi.c: At top level:
jsapi.c:4065: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c:4066: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c:4068: error: ‘JS_EvaluateScript’ declared as function returning
a function
jsapi.c: In function ‘JS_EvaluateScript’:
jsapi.c:4069: error: ‘nbytes’ undeclared (first use in this function)
jsapi.c:4070: error: ‘jschar’ undeclared (first use in this function)
jsapi.c:4070: error: ‘chars’ undeclared (first use in this function)
jsapi.c:4076: error: cast specifies function type
jsapi.c:4077: warning: implicit declaration of function
‘JS_EvaluateUCScript’
jsapi.c:4077: error: ‘lineno’ undeclared (first use in this function)
jsapi.c:4077: error: lvalue required as left operand of assignment
jsapi.c:4079: warning: return makes integer from pointer without a cast
jsapi.c: At top level:
jsapi.c:4085: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c:4086: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c:4088: error: ‘JS_EvaluateScriptForPrincipals’ declared as
function returning a function
jsapi.c: In function ‘JS_EvaluateScriptForPrincipals’:
jsapi.c:4089: error: ‘nbytes’ undeclared (first use in this function)
jsapi.c:4090: error: ‘jschar’ undeclared (first use in this function)
jsapi.c:4090: error: ‘chars’ undeclared (first use in this function)
jsapi.c:4096: error: cast specifies function type
jsapi.c:4097: warning: implicit declaration of function
‘JS_EvaluateUCScriptForPrincipals’
jsapi.c:4098: error: ‘lineno’ undeclared (first use in this function)
jsapi.c:4098: error: lvalue required as left operand of assignment
jsapi.c:4100: warning: return makes integer from pointer without a cast
jsapi.c: At top level:
jsapi.c:4105: warning: type defaults to ‘int’ in declaration of ‘jschar’
jsapi.c:4105: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
jsapi.c:4117: warning: type defaults to ‘int’ in declaration of ‘jschar’
jsapi.c:4117: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
jsapi.c:4140: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c:4142: error: ‘JS_CallFunction’ declared as function returning a
function
jsapi.c: In function ‘JS_CallFunction’:
jsapi.c:4146: error: ‘JSFunction’ has no member named ‘object’
jsapi.c:4146: error: ‘argc’ undeclared (first use in this function)
jsapi.c:4146: error: too many arguments to function ‘js_InternalInvoke’
jsapi.c:4146: error: lvalue required as left operand of assignment
jsapi.c:4148: error: ‘JSContext’ has no member named ‘fp’
jsapi.c:4148: error: ‘JSContext’ has no member named
‘lastInternalResult’
jsapi.c:4148: warning: the address of ‘ok’ will always evaluate as
‘true’
jsapi.c:4149: warning: return makes integer from pointer without a cast
jsapi.c: At top level:
jsapi.c:4153: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c:4155: error: ‘JS_CallFunctionName’ declared as function
returning a function
jsapi.c: In function ‘JS_CallFunctionName’:
jsapi.c:4161: error: ‘JSObjectMap’ has no member named ‘ops’
jsapi.c:4165: error: ‘JSObjectMap’ has no member named ‘ops’
jsapi.c:4166: error: too many arguments to function ‘js_Atomize’
jsapi.c:4168: error: cast specifies function type
jsapi.c:4171: error: cast specifies function type
jsapi.c:4175: error: cast specifies function type
jsapi.c:4176: error: ‘argc’ undeclared (first use in this function)
jsapi.c:4176: error: too many arguments to function ‘js_InternalInvoke’
jsapi.c:4176: error: lvalue required as left operand of assignment
jsapi.c:4177: error: ‘JSContext’ has no member named ‘fp’
jsapi.c:4177: error: ‘JSContext’ has no member named
‘lastInternalResult’
jsapi.c:4177: warning: the address of ‘ok’ will always evaluate as
‘true’
jsapi.c:4178: warning: return makes integer from pointer without a cast
jsapi.c: At top level:
jsapi.c:4182: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c:4184: error: ‘JS_CallFunctionValue’ declared as function
returning a function
jsapi.c: In function ‘JS_CallFunctionValue’:
jsapi.c:4188: error: ‘argc’ undeclared (first use in this function)
jsapi.c:4188: error: too many arguments to function ‘js_InternalInvoke’
jsapi.c:4188: error: lvalue required as left operand of assignment
jsapi.c:4189: error: ‘JSContext’ has no member named ‘fp’
jsapi.c:4189: error: ‘JSContext’ has no member named
‘lastInternalResult’
jsapi.c:4189: warning: the address of ‘ok’ will always evaluate as
‘true’
jsapi.c:4190: warning: return makes integer from pointer without a cast
jsapi.c: In function ‘JS_SetBranchCallback’:
jsapi.c:4198: error: ‘JSContext’ has no member named ‘branchCallback’
jsapi.c:4199: error: ‘JSContext’ has no member named ‘branchCallback’
jsapi.c: At top level:
jsapi.c:4205: error: ‘JS_IsRunning’ declared as function returning a
function
jsapi.c: In function ‘JS_IsRunning’:
jsapi.c:4206: error: ‘JSContext’ has no member named ‘fp’
jsapi.c:4207: warning: control reaches end of non-void function
jsapi.c: At top level:
jsapi.c:4211: error: ‘JS_IsConstructing’ declared as function returning
a function
jsapi.c: In function ‘JS_IsConstructing’:
jsapi.c:4212: error: ‘JSContext’ has no member named ‘fp’
jsapi.c:4212: error: ‘JSContext’ has no member named ‘fp’
jsapi.c:4213: warning: control reaches end of non-void function
jsapi.c: At top level:
jsapi.c:4217: error: ‘JS_IsAssigning’ declared as function returning a
function
jsapi.c: In function ‘JS_IsAssigning’:
jsapi.c:4219: error: ‘jsbytecode’ undeclared (first use in this
function)
jsapi.c:4219: error: ‘pc’ undeclared (first use in this function)
jsapi.c:4221: error: ‘JSContext’ has no member named ‘fp’
jsapi.c:4221: error: ‘JSStackFrame’ has no member named ‘down’
jsapi.c:4223: error: ‘JSStackFrame’ has no member named ‘pc’
jsapi.c:4224: error: cast specifies function type
jsapi.c:4226: warning: control reaches end of non-void function
jsapi.c: In function ‘JS_SetCallReturnValue2’:
jsapi.c:4232: error: ‘JSContext’ has no member named ‘rval2’
jsapi.c:4233: error: ‘JSContext’ has no member named ‘rval2set’
jsapi.c:4233: error: cast specifies function type
jsapi.c: In function ‘JS_NewString’:
jsapi.c:4242: error: ‘jschar’ undeclared (first use in this function)
jsapi.c:4242: error: ‘chars’ undeclared (first use in this function)
jsapi.c:4253: error: too many arguments to function ‘js_NewString’
jsapi.c: In function ‘JS_NewStringCopyN’:
jsapi.c:4268: error: ‘jschar’ undeclared (first use in this function)
jsapi.c:4268: error: ‘js’ undeclared (first use in this function)
jsapi.c:4275: error: too many arguments to function ‘js_NewString’
jsapi.c: In function ‘JS_NewStringCopyZ’:
jsapi.c:4285: error: ‘jschar’ undeclared (first use in this function)
jsapi.c:4285: error: ‘js’ undeclared (first use in this function)
jsapi.c:4290: error: ‘JSContext’ has no member named ‘runtime’
jsapi.c:4295: error: too many arguments to function ‘js_NewString’
jsapi.c: In function ‘JS_InternString’:
jsapi.c:4307: error: too many arguments to function ‘js_Atomize’
jsapi.c:4310: error: expected ‘)’ before numeric constant
jsapi.c:4311: warning: control reaches end of non-void function
jsapi.c: At top level:
jsapi.c:4314: error: expected declaration specifiers or ‘...’ before
‘jschar’
jsapi.c: In function ‘JS_NewUCString’:
jsapi.c:4317: error: ‘chars’ undeclared (first use in this function)
jsapi.c:4317: error: too many arguments to function ‘js_NewString’
jsapi.c: At top level:
jsapi.c:4321: warning: type defaults to ‘int’ in declaration of ‘jschar’
jsapi.c:4321: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
jsapi.c:4328: warning: type defaults to ‘int’ in declaration of ‘jschar’
jsapi.c:4328: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
jsapi.c:4337: warning: type defaults to ‘int’ in declaration of ‘jschar’
jsapi.c:4337: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
jsapi.c:4349: warning: type defaults to ‘int’ in declaration of ‘jschar’
jsapi.c:4349: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
jsapi.c:4363: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
jsapi.c: In function ‘JS_GetStringLength’:
jsapi.c:4387: error: ‘JS_BITS_PER_BYTE’ undeclared (first use in this
function)
jsapi.c:4388: warning: control reaches end of non-void function
jsapi.c: At top level:
jsapi.c:4392: error: ‘JS_CompareStrings’ declared as function returning
a function
jsapi.c:4397: error: expected declaration specifiers or ‘...’ before
‘jschar’
jsapi.c: In function ‘JS_NewGrowableString’:
jsapi.c:4400: error: ‘chars’ undeclared (first use in this function)
jsapi.c:4400: error: too many arguments to function ‘js_NewString’
jsapi.c: In function ‘JS_NewDependentString’:
jsapi.c:4408: error: too many arguments to function
‘js_NewDependentString’
jsapi.c: At top level:
jsapi.c:4418: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
jsapi.c:4427: error: ‘JS_MakeStringImmutable’ declared as function
returning a function
jsapi.c: In function ‘JS_MakeStringImmutable’:
jsapi.c:4429: warning: implicit declaration of function
‘js_UndependString’
jsapi.c:4430: error: cast specifies function type
jsapi.c:4432: warning: implicit declaration of function
‘js_GetGCThingFlags’
jsapi.c:4432: error: invalid type argument of ‘unary *’
jsapi.c:4433: error: cast specifies function type
jsapi.c:4434: warning: control reaches end of non-void function
jsapi.c: At top level:
jsapi.c:4437: warning: type defaults to ‘int’ in declaration of ‘jschar’
jsapi.c:4437: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
jsapi.c:4444: error: expected declaration specifiers or ‘...’ before
‘jschar’
jsapi.c:4446: error: ‘JS_DecodeBytes’ declared as function returning a
function
jsapi.c: In function ‘JS_DecodeBytes’:
jsapi.c:4447: error: ‘dst’ undeclared (first use in this function)
jsapi.c:4447: error: too many arguments to function
‘js_InflateStringToBuffer’
jsapi.c: At top level:
jsapi.c:4452: error: ‘JS_StringsAreUTF8’ declared as function returning
a function
jsapi.c: In function ‘JS_StringsAreUTF8’:
jsapi.c:4456: error: cast specifies function type
jsapi.c:4458: warning: control reaches end of non-void function
jsapi.c: In function ‘JS_ReportError’:
jsapi.c:4468: warning: passing argument 3 of ‘js_ReportErrorVA’ discards
qualifiers from pointer target type
jsapi.c:4468: error: too many arguments to function ‘js_ReportErrorVA’
jsapi.c: At top level:
jsapi.c:4473: error: expected declaration specifiers or ‘...’ before
‘JSErrorCallback’
jsapi.c:4474: warning: type defaults to ‘int’ in declaration of ‘uintN’
jsapi.c:4474: error: expected ‘;’, ‘,’ or ‘)’ before ‘errorNumber’
jsapi.c:4485: error: expected declaration specifiers or ‘...’ before
‘JSErrorCallback’
jsapi.c:4486: warning: type defaults to ‘int’ in declaration of ‘uintN’
jsapi.c:4486: error: expected ‘;’, ‘,’ or ‘)’ before ‘errorNumber’
jsapi.c:4498: error: ‘JS_ReportWarning’ declared as function returning a
function
jsapi.c: In function ‘JS_ReportWarning’:
jsapi.c:4503: warning: passing argument 2 of ‘js_ReportErrorVA’ makes
pointer from integer without a cast
jsapi.c:4503: warning: passing argument 3 of ‘js_ReportErrorVA’ discards
qualifiers from pointer target type
jsapi.c:4503: error: too many arguments to function ‘js_ReportErrorVA’
jsapi.c:4503: error: lvalue required as left operand of assignment
jsapi.c:4505: warning: return makes integer from pointer without a cast
jsapi.c: At top level:
jsapi.c:4509: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c:4510: error: expected declaration specifiers or ‘...’ before
‘JSErrorCallback’
jsapi.c:4511: warning: type defaults to ‘int’ in declaration of ‘uintN’
jsapi.c:4511: error: expected ‘;’, ‘,’ or ‘)’ before ‘errorNumber’
jsapi.c:4524: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c:4525: error: expected declaration specifiers or ‘...’ before
‘JSErrorCallback’
jsapi.c:4526: warning: type defaults to ‘int’ in declaration of ‘uintN’
jsapi.c:4526: error: expected ‘;’, ‘,’ or ‘)’ before ‘errorNumber’
jsapi.c: In function ‘JS_ReportOutOfMemory’:
jsapi.c:4541: error: ‘js_GetErrorMessage’ undeclared (first use in this
function)
jsapi.c:4541: error: too many arguments to function
‘js_ReportOutOfMemory’
jsapi.c: In function ‘JS_SetErrorReporter’:
jsapi.c:4549: error: ‘JSContext’ has no member named ‘errorReporter’
jsapi.c:4550: error: ‘JSContext’ has no member named ‘errorReporter’
jsapi.c: At top level:
jsapi.c:4560: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c: In function ‘JS_NewRegExpObject’:
jsapi.c:4563: error: ‘jschar’ undeclared (first use in this function)
jsapi.c:4563: error: ‘chars’ undeclared (first use in this function)
jsapi.c:4570: error: ‘flags’ undeclared (first use in this function)
jsapi.c:4570: error: too many arguments to function ‘js_NewRegExpObject’
jsapi.c: At top level:
jsapi.c:4580: error: expected declaration specifiers or ‘...’ before
‘jschar’
jsapi.c:4580: error: expected declaration specifiers or ‘...’ before
‘uintN’
jsapi.c: In function ‘JS_NewUCRegExpObject’:
jsapi.c:4584: error: ‘chars’ undeclared (first use in this function)
jsapi.c:4584: error: ‘flags’ undeclared (first use in this function)
jsapi.c:4584: error: too many arguments to function ‘js_NewRegExpObject’
jsapi.c: In function ‘JS_SetRegExpInput’:
jsapi.c:4598: error: ‘JSContext’ has no member named ‘regExpStatics’
jsapi.c:4601: error: ‘JSContext’ has no member named ‘runtime’
jsapi.c:4601: error: cast specifies function type
jsapi.c: In function ‘JS_ClearRegExpStatics’:
jsapi.c:4610: error: ‘JSContext’ has no member named ‘regExpStatics’
jsapi.c:4612: error: cast specifies function type
jsapi.c:4613: error: ‘JSRegExpStatics’ has no member named ‘parenCount’
jsapi.c:4614: error: ‘JSRegExpStatics’ has no member named ‘lastMatch’
jsapi.c:4614: error: ‘JSRegExpStatics’ has no member named ‘lastParen’
jsapi.c:4615: error: ‘JSRegExpStatics’ has no member named ‘leftContext’
jsapi.c:4615: error: ‘JSRegExpStatics’ has no member named
‘rightContext’
jsapi.c:4616: error: ‘JSContext’ has no member named ‘runtime’
jsapi.c:4616: error: cast specifies function type
jsapi.c: In function ‘JS_ClearRegExpRoots’:
jsapi.c:4625: error: ‘JSContext’ has no member named ‘regExpStatics’
jsapi.c:4627: error: ‘JSContext’ has no member named ‘runtime’
jsapi.c:4627: error: cast specifies function type
jsapi.c: In function ‘JS_SetLocaleCallbacks’:
jsapi.c:4637: error: ‘JSContext’ has no member named ‘localeCallbacks’
jsapi.c: In function ‘JS_GetLocaleCallbacks’:
jsapi.c:4643: error: ‘JSContext’ has no member named ‘localeCallbacks’
jsapi.c:4644: warning: control reaches end of non-void function
jsapi.c: At top level:
jsapi.c:4650: error: ‘JS_IsExceptionPending’ declared as function
returning a function
jsapi.c: In function ‘JS_IsExceptionPending’:
jsapi.c:4652: error: ‘JSContext’ has no member named ‘throwing’
jsapi.c:4656: warning: control reaches end of non-void function
jsapi.c: At top level:
jsapi.c:4660: error: ‘JS_GetPendingException’ declared as function
returning a function
jsapi.c: In function ‘JS_GetPendingException’:
jsapi.c:4663: error: ‘JSContext’ has no member named ‘throwing’
jsapi.c:4664: error: cast specifies function type
jsapi.c:4665: error: ‘JSContext’ has no member named ‘exception’
jsapi.c:4666: error: cast specifies function type
jsapi.c:4670: warning: control reaches end of non-void function
jsapi.c: In function ‘JS_SetPendingException’:
jsapi.c:4677: error: ‘JSContext’ has no member named ‘throwing’
jsapi.c:4677: error: cast specifies function type
jsapi.c:4678: error: ‘JSContext’ has no member named ‘exception’
jsapi.c: In function ‘JS_ClearPendingException’:
jsapi.c:4686: error: ‘JSContext’ has no member named ‘throwing’
jsapi.c:4686: error: cast specifies function type
jsapi.c:4687: error: ‘JSContext’ has no member named ‘exception’
jsapi.c: At top level:
jsapi.c:4693: error: ‘JS_ReportPendingException’ declared as function
returning a function
jsapi.c: In function ‘JS_ReportPendingException’:
jsapi.c:4705: error: ‘JSContext’ has no member named ‘creatingException’
jsapi.c:4706: error: ‘JSContext’ has no member named ‘creatingException’
jsapi.c:4706: error: cast specifies function type
jsapi.c:4707: error: lvalue required as left operand of assignment
jsapi.c:4708: error: ‘JSContext’ has no member named ‘creatingException’
jsapi.c:4709: warning: return makes integer from pointer without a cast
jsapi.c: At top level:
jsapi.c:4717: error: field ‘throwing’ declared as a function
jsapi.c: In function ‘JS_SaveExceptionState’:
jsapi.c:4731: warning: assignment makes pointer from integer without a
cast
jsapi.c:4732: error: expected ‘)’ before numeric constant
jsapi.c: In function ‘JS_DropExceptionState’:
jsapi.c:4762: error: expected ‘)’ before numeric constant
jsapi.c: At top level:
jsapi.c:4783: error: ‘JS_ThrowReportedError’ declared as function
returning a function
make[4]: *** [Linux_All_DBG.OBJ/jsapi.o] Error 1
make[4]: Leaving directory
`/home/zea/software/stream/freej/lib/javascript'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/zea/software/stream/freej/lib/javascript'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/zea/software/stream/freej/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/zea/software/stream/freej'
make: *** [all] Error 2


anybody can help me with this?

thanks

zea