Comment 2 for bug 722611

Revision history for this message
kuh3h3 (kuh3h3) wrote :

attached patch compile failed.

libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../.. -D__STDC_CONSTANT_MACROS -DNDEBUG -DGGL_MODULE_DIR=\"/usr/lib/google-gadgets/modules\" -DGGL_INCLUDE_DIR=\"/usr/include/google-gadgets\" -DGGL_SYSDEPS_INCLUDE_DIR=\"/usr/lib/google-gadgets/include\" -DGGL_LIBEXEC_DIR=\"/usr/lib/google-gadgets\" -DGGL_RESOURCE_DIR=\"/usr/share/google-gadgets\" -DGGL_HOST_LINUX=1 -DGGL_LITTLE_ENDIAN -DHAVE_PTHREAD=1 -DHAVE_X11=1 -DHAVE_DBUS_LIBRARY -DHAVE_RSVG_LIBRARY -DHAVE_STARTUP_NOTIFICATION -DHAVE_NETWORK_MANAGER -DHAVE_NEW_NETWORK_MANAGER_API -DHAVE_JAVA_SCRIPT_H -DGGL_GTK_WEBKIT_SUPPORT_JSC -DHAVE_MKDTEMP -DHAVE_MMAP "-DGGL_DIST_INFO=\"linux-i686 (Ubuntu natty (development branch)) (-)\"" -DGGL_DEFAULT_GST_AUDIO_SINK=\"autoaudiosink\" -DGGL_DEFAULT_BROWSER_PLUGINS_DIR=\"/usr/lib/xulrunner-addons/plugins\" -DGGL_ENABLE_XDGMIME -DGGL_GTK_HTML_SCRIPT_ENGINE=\"xulrunner\" -DGGL_GTK_XML_HTTP_REQUEST=\"soup\" -DGGL_QT_SCRIPT_ENGINE=\"smjs\" -DXP_UNIX -DJS_THREADSAFE -I/usr/include/xulrunner-2.0b7 -I/usr/include/nspr -DHAVE_JSVERSION_H -DHAVE_JS_SetOperationCallback -DHAVE_JS_TriggerAllOperationCallbacks -DXPCOM_GLUE -fshort-wchar -I/usr/include/xulrunner-2.0b7 -I/usr/include/xulrunner-2.0b7/nspr -I/usr/include/xulrunner-2.0b7 -I/usr/include/xulrunner-2.0b7/content -I/usr/include/xulrunner-2.0b7/dom -I/usr/include/xulrunner-2.0b7/xpconnect -I/usr/include/xulrunner-2.0b7/widget -I/usr/include/xulrunner-2.0b7/gtkembedmoz -I/usr/include/xulrunner-2.0b7/xpcom -I/usr/include/xulrunner-2.0b7/string -DMOZILLA_FIVE_HOME=\"/usr/lib/xulrunner-2.0b7\" -DGGL_MOZJS_LIBNAME=\"libmozjs.so\" -O2 -Wall -fstack-protector -fcheck-new -g -O2 -c js_script_context.cc -fPIC -DPIC -o .libs/libggadget_smjs_la-js_script_context.o
In file included from js_script_context.cc:22:0:
/usr/include/xulrunner-2.0b7/jscntxt.h: In function ‘JSContext* js_ContextFromLinkField(JSCList*)’:
/usr/include/xulrunner-2.0b7/jscntxt.h:3007:44: warning: invalid access to non-static data member ‘JSContext::link’ of NULL object
/usr/include/xulrunner-2.0b7/jscntxt.h:3007:44: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
js_script_context.cc: At global scope:
js_script_context.cc:102:1: error: invalid conversion from ‘JSBool (*)(JSContext*, const char*, jsval*)’ to ‘JSBool (*)(JSContext*, char*, jsval*)’
js_script_context.cc: In member function ‘ggadget::smjs::NativeJSWrapper* ggadget::smjs::JSScriptContext::WrapNativeObjectToJSInternal(JSObject*, ggadget::smjs::NativeJSWrapper*, ggadget::ScriptableInterface*, JSBool)’:
js_script_context.cc:293:23: error: request for member ‘func’ in ‘ggadget::libmozjs::JS_BeginRequest.ggadget::libmozjs::JS_BeginRequestType::func’, which is of non-class type ‘void (*)(JSContext*)’
make[4]: *** [libggadget_smjs_la-js_script_context.lo] error 1
make[4]: Leaving directory `/media/sdc1/google-gadgets-0.11.2/extensions/smjs_script_runtime'
make[3]: *** [all-recursive] error 1
make[3]: Leaving directory `/media/sdc1/google-gadgets-0.11.2/extensions/smjs_script_runtime'
make[2]: *** [all-recursive] error 1
make[2]: Leaving directory `/media/sdc1/google-gadgets-0.11.2/extensions'
make[1]: *** [all-recursive] error 1
make[1]: Leaving directory `/media/sdc1/google-gadgets-0.11.2'
make: *** [all] error 2