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
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_SetOperation Callback -DHAVE_ JS_TriggerAllOp erationCallback s -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/gtkembedm oz -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/libggadge t_smjs_ la-js_script_ context. o context. cc:22:0: xulrunner- 2.0b7/jscntxt. h: In function ‘JSContext* js_ContextFromL inkField( JSCList* )’: xulrunner- 2.0b7/jscntxt. h:3007: 44: warning: invalid access to non-static data member ‘JSContext::link’ of NULL object xulrunner- 2.0b7/jscntxt. h:3007: 44: warning: (perhaps the ‘offsetof’ macro was used incorrectly) context. cc: At global scope: context. cc:102: 1: error: invalid conversion from ‘JSBool (*)(JSContext*, const char*, jsval*)’ to ‘JSBool (*)(JSContext*, char*, jsval*)’ context. cc: In member function ‘ggadget: :smjs:: NativeJSWrapper * ggadget: :smjs:: JSScriptContext ::WrapNativeObj ectToJSInternal (JSObject* , ggadget: :smjs:: NativeJSWrapper *, ggadget: :ScriptableInte rface*, JSBool)’: context. cc:293: 23: error: request for member ‘func’ in ‘ggadget: :libmozjs: :JS_BeginReques t.ggadget: :libmozjs: :JS_BeginReques tType:: func’, which is of non-class type ‘void (*)(JSContext*)’ smjs_la- js_script_ context. lo] error 1 sdc1/google- gadgets- 0.11.2/ extensions/ smjs_script_ runtime' sdc1/google- gadgets- 0.11.2/ extensions/ smjs_script_ runtime' sdc1/google- gadgets- 0.11.2/ extensions' sdc1/google- gadgets- 0.11.2'
In file included from js_script_
/usr/include/
/usr/include/
/usr/include/
js_script_
js_script_
js_script_
js_script_
make[4]: *** [libggadget_
make[4]: Leaving directory `/media/
make[3]: *** [all-recursive] error 1
make[3]: Leaving directory `/media/
make[2]: *** [all-recursive] error 1
make[2]: Leaving directory `/media/
make[1]: *** [all-recursive] error 1
make[1]: Leaving directory `/media/
make: *** [all] error 2