Public bug reported:

Binary package hint: gpac

i tried to compile gpac 0.4.5 against xulrunner-2.0b7 mozjs.
but failed.


cc -O3  -fPIC -DPIC -I/usr/include/xulrunner-2.0b7 -DXP_UNIX -Wall -g 
-fno-strict-aliasing -Wno-pointer-sign -I/media/sdc1/gpac-0.4.5/include  -I../ 
-DGPAC_HAVE_CONFIG_H   -DMOZILLA_1_8_BRANCH -DXP_UNIX 
-I/usr/include/xulrunner-2.0b7 -c -o scenegraph/vrml_smjs.o 
scenegraph/vrml_smjs.c 
scenegraph/vrml_smjs.c: In function ‘getCurrentSpeed’:
scenegraph/vrml_smjs.c:242: warning: implicit declaration of function 
‘JS_NewDouble’
scenegraph/vrml_smjs.c: In function ‘createVrmlFromString’:
scenegraph/vrml_smjs.c:516: warning: overflow in implicit constant conversion
scenegraph/vrml_smjs.c: In function ‘getOption’:
scenegraph/vrml_smjs.c:540: warning: overflow in implicit constant conversion
scenegraph/vrml_smjs.c:542: warning: overflow in implicit constant conversion
scenegraph/vrml_smjs.c:546: warning: overflow in implicit constant conversion
scenegraph/vrml_smjs.c:552: warning: overflow in implicit constant conversion
scenegraph/vrml_smjs.c: In function ‘setOption’:
scenegraph/vrml_smjs.c:565: warning: overflow in implicit constant conversion
scenegraph/vrml_smjs.c:567: warning: overflow in implicit constant conversion
scenegraph/vrml_smjs.c:571: warning: overflow in implicit constant conversion
scenegraph/vrml_smjs.c:575: warning: overflow in implicit constant conversion
scenegraph/vrml_smjs.c:580: warning: overflow in implicit constant conversion
scenegraph/vrml_smjs.c:582: warning: overflow in implicit constant conversion
scenegraph/vrml_smjs.c: In function ‘SFNodeConstructor’:
scenegraph/vrml_smjs.c:859: warning: implicit declaration of function 
‘JS_AddRoot’
scenegraph/vrml_smjs.c: In function ‘image_setProperty’:
scenegraph/vrml_smjs.c:1096: warning: passing argument 1 of ‘JSVAL_TO_INT’ 
makes integer from pointer without a cast
/usr/include/xulrunner-2.0b7/jsapi.h:118: note: expected ‘jsval’ but argument 
is of type ‘jsval *’
scenegraph/vrml_smjs.c:1102: warning: passing argument 1 of ‘JSVAL_TO_INT’ 
makes integer from pointer without a cast
/usr/include/xulrunner-2.0b7/jsapi.h:118: note: expected ‘jsval’ but argument 
is of type ‘jsval *’
scenegraph/vrml_smjs.c:1108: warning: passing argument 1 of ‘JSVAL_TO_INT’ 
makes integer from pointer without a cast
/usr/include/xulrunner-2.0b7/jsapi.h:118: note: expected ‘jsval’ but argument 
is of type ‘jsval *’
scenegraph/vrml_smjs.c: In function ‘array_finalize_ex’:
scenegraph/vrml_smjs.c:1886: warning: implicit declaration of function 
‘JS_RemoveRoot’
scenegraph/vrml_smjs.c: In function ‘gf_sg_script_init_sm_api’:
scenegraph/vrml_smjs.c:2287: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2290: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2293: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2293: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2293: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2296: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2296: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2296: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2299: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2299: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2299: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2302: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2302: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2302: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2305: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2305: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2305: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2308: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2308: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2308: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2311: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2311: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2311: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2314: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2314: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2314: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2317: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2317: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2317: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2320: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2320: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2320: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2323: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2323: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2323: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2326: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2326: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2326: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2329: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2329: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2329: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2332: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2332: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2332: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2335: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2335: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2335: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2338: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2338: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2338: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2341: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2341: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2341: warning: assignment from incompatible pointer type
scenegraph/vrml_smjs.c:2350: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2367: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2368: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2369: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2370: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2371: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2372: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2373: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2374: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2375: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2376: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2377: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2378: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2379: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2380: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2381: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2382: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2383: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2391: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2393: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2394: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2395: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2396: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2397: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2405: warning: passing argument 5 of ‘JS_InitClass’ from 
incompatible pointer type
/usr/include/xulrunner-2.0b7/jsapi.h:1843: note: expected ‘JSNative’ but 
argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  
jsval *, jsval *)’
scenegraph/vrml_smjs.c:2414: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2415: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2416: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2417: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2418: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2419: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2420: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2421: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2422: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2425: warning: passing argument 5 of ‘JS_InitClass’ from 
incompatible pointer type
/usr/include/xulrunner-2.0b7/jsapi.h:1843: note: expected ‘JSNative’ but 
argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  
jsval *, jsval *)’
scenegraph/vrml_smjs.c:2435: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2436: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2437: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2438: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2439: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2440: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2441: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2442: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2443: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2444: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2447: warning: passing argument 5 of ‘JS_InitClass’ from 
incompatible pointer type
/usr/include/xulrunner-2.0b7/jsapi.h:1843: note: expected ‘JSNative’ but 
argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  
jsval *, jsval *)’
scenegraph/vrml_smjs.c:2458: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2459: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2460: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2461: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2462: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2463: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2464: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2467: warning: passing argument 5 of ‘JS_InitClass’ from 
incompatible pointer type
/usr/include/xulrunner-2.0b7/jsapi.h:1843: note: expected ‘JSNative’ but 
argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  
jsval *, jsval *)’
scenegraph/vrml_smjs.c:2477: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2477: warning: excess elements in struct initializer
scenegraph/vrml_smjs.c:2477: warning: (near initialization for 
‘SFColorMethods[0]’)
scenegraph/vrml_smjs.c:2478: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2478: warning: excess elements in struct initializer
scenegraph/vrml_smjs.c:2478: warning: (near initialization for 
‘SFColorMethods[1]’)
scenegraph/vrml_smjs.c:2479: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2479: warning: excess elements in struct initializer
scenegraph/vrml_smjs.c:2479: warning: (near initialization for 
‘SFColorMethods[2]’)
scenegraph/vrml_smjs.c:2480: warning: excess elements in struct initializer
scenegraph/vrml_smjs.c:2480: warning: (near initialization for 
‘SFColorMethods[3]’)
scenegraph/vrml_smjs.c:2482: warning: passing argument 5 of ‘JS_InitClass’ from 
incompatible pointer type
/usr/include/xulrunner-2.0b7/jsapi.h:1843: note: expected ‘JSNative’ but 
argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  
jsval *, jsval *)’
scenegraph/vrml_smjs.c:2492: warning: passing argument 5 of ‘JS_InitClass’ from 
incompatible pointer type
/usr/include/xulrunner-2.0b7/jsapi.h:1843: note: expected ‘JSNative’ but 
argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  
jsval *, jsval *)’
scenegraph/vrml_smjs.c:2497: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2497: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2498: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2498: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2502: warning: initialization from incompatible pointer 
type
scenegraph/vrml_smjs.c:2506: warning: passing argument 5 of ‘JS_InitClass’ from 
incompatible pointer type
/usr/include/xulrunner-2.0b7/jsapi.h:1843: note: expected ‘JSNative’ but 
argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  
jsval *, jsval *)’
scenegraph/vrml_smjs.c:2507: warning: passing argument 5 of ‘JS_InitClass’ from 
incompatible pointer type
/usr/include/xulrunner-2.0b7/jsapi.h:1843: note: expected ‘JSNative’ but 
argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  
jsval *, jsval *)’
scenegraph/vrml_smjs.c:2508: warning: passing argument 5 of ‘JS_InitClass’ from 
incompatible pointer type
/usr/include/xulrunner-2.0b7/jsapi.h:1843: note: expected ‘JSNative’ but 
argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  
jsval *, jsval *)’
scenegraph/vrml_smjs.c:2509: warning: passing argument 5 of ‘JS_InitClass’ from 
incompatible pointer type
/usr/include/xulrunner-2.0b7/jsapi.h:1843: note: expected ‘JSNative’ but 
argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  
jsval *, jsval *)’
scenegraph/vrml_smjs.c:2510: warning: passing argument 5 of ‘JS_InitClass’ from 
incompatible pointer type
/usr/include/xulrunner-2.0b7/jsapi.h:1843: note: expected ‘JSNative’ but 
argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  
jsval *, jsval *)’
scenegraph/vrml_smjs.c:2511: warning: passing argument 5 of ‘JS_InitClass’ from 
incompatible pointer type
/usr/include/xulrunner-2.0b7/jsapi.h:1843: note: expected ‘JSNative’ but 
argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  
jsval *, jsval *)’
scenegraph/vrml_smjs.c:2512: warning: passing argument 5 of ‘JS_InitClass’ from 
incompatible pointer type
/usr/include/xulrunner-2.0b7/jsapi.h:1843: note: expected ‘JSNative’ but 
argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  
jsval *, jsval *)’
scenegraph/vrml_smjs.c:2513: warning: passing argument 5 of ‘JS_InitClass’ from 
incompatible pointer type
/usr/include/xulrunner-2.0b7/jsapi.h:1843: note: expected ‘JSNative’ but 
argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  
jsval *, jsval *)’
scenegraph/vrml_smjs.c:2514: warning: passing argument 5 of ‘JS_InitClass’ from 
incompatible pointer type
/usr/include/xulrunner-2.0b7/jsapi.h:1843: note: expected ‘JSNative’ but 
argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  
jsval *, jsval *)’
scenegraph/vrml_smjs.c:2515: warning: passing argument 5 of ‘JS_InitClass’ from 
incompatible pointer type
/usr/include/xulrunner-2.0b7/jsapi.h:1843: note: expected ‘JSNative’ but 
argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  
jsval *, jsval *)’
scenegraph/vrml_smjs.c:2516: warning: passing argument 5 of ‘JS_InitClass’ from 
incompatible pointer type
/usr/include/xulrunner-2.0b7/jsapi.h:1843: note: expected ‘JSNative’ but 
argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  
jsval *, jsval *)’
scenegraph/vrml_smjs.c: In function ‘gf_sg_script_to_smjs_field’:
scenegraph/vrml_smjs.c:2866: warning: assignment makes pointer from integer 
without a cast
scenegraph/vrml_smjs.c:2867: error: incompatible type for argument 1 of 
‘DOUBLE_TO_JSVAL’
/usr/include/xulrunner-2.0b7/jsapi.h:154: note: expected ‘jsdouble’ but 
argument is of type ‘jsdouble *’
scenegraph/vrml_smjs.c:2869: warning: assignment makes pointer from integer 
without a cast
scenegraph/vrml_smjs.c:2870: error: incompatible type for argument 1 of 
‘DOUBLE_TO_JSVAL’
/usr/include/xulrunner-2.0b7/jsapi.h:154: note: expected ‘jsdouble’ but 
argument is of type ‘jsdouble *’
scenegraph/vrml_smjs.c: In function ‘JS_InitScriptFields’:
scenegraph/vrml_smjs.c:3334: warning: passing argument 6 of ‘JS_DefineProperty’ 
from incompatible pointer type
/usr/include/xulrunner-2.0b7/jsapi.h:1956: note: expected ‘JSPropertyOp’ but 
argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, jsval,  
jsval *)’
scenegraph/vrml_smjs.c: In function ‘vrml_js_load_script’:
scenegraph/vrml_smjs.c:3430: warning: ignoring return value of ‘fread’, 
declared with attribute warn_unused_result
make[2]: *** [scenegraph/vrml_smjs.o] error 1
make[2]: Leaving directory `/media/sdc1/gpac-0.4.5/src'
make[1]: *** [lib] error 2
make[1]: Leaving directory `/media/sdc1/gpac-0.4.5'
make: *** [build-stamp] error 2

** Affects: gpac (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/693482

Title:
  error: incompatible type for argument 1 of ‘DOUBLE_TO_JSVAL’ 

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to