failed to build Google Gadgets on F14

Paolo Galtieri pgaltieri at gmail.com
Mon Dec 13 15:17:28 UTC 2010


Since before F12 I've been compiling Google Gadgets for Linux.  I just
upgraded my system
to F14 and now I get the following error from xulrunner.

libtool: compile:  g++ -DHAVE_CONFIG_H -I.
-I../../../../extensions/smjs_script_runtime -I../.. -I../.. -I../../../..
-D__STDC_CONSTANT_MACROS -DNDEBUG
-DGGL_MODULE_DIR=\"/usr/local/lib/google-gadgets/modules\"
-DGGL_INCLUDE_DIR=\"/usr/local/include/google-gadgets\"
-DGGL_SYSDEPS_INCLUDE_DIR=\"/usr/local/lib/google-gadgets/include\"
-DGGL_LIBEXEC_DIR=\"/usr/local/lib/google-gadgets\"
-DGGL_RESOURCE_DIR=\"/usr/local/share/google-gadgets\" -DGGL_HOST_LINUX=1
-DGGL_LITTLE_ENDIAN -DHAVE_PTHREAD=1 -DHAVE_X11=1 -DHAVE_DBUS_LIBRARY
-DHAVE_DBUS_WATCH_GET_UNIX_FD -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-x86_64 (Fedora release 14 (Laughlin)) (-)\""
-DGGL_DEFAULT_GST_AUDIO_SINK=\"autoaudiosink\"
-DGGL_DEFAULT_BROWSER_PLUGINS_DIR=\"/usr/local/lib/firefox/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-sdk-1.9.2
-I/usr/include/nspr4 -DHAVE_JSVERSION_H -DMOZILLA_1_8_BRANCH
-DHAVE_JS_SetOperationCallback -DHAVE_JS_TriggerAllOperationCallbacks
-DXPCOM_GLUE -fshort-wchar -I/usr/include/xulrunner-sdk-1.9.2
-I/usr/include/nspr4 -I/usr/include/xulrunner-sdk-1.9.2
-I/usr/include/xulrunner-sdk-1.9.2/content
-I/usr/include/xulrunner-sdk-1.9.2/dom
-I/usr/include/xulrunner-sdk-1.9.2/xpconnect
-I/usr/include/xulrunner-sdk-1.9.2/widget
-I/usr/include/xulrunner-sdk-1.9.2/gtkembedmoz
-I/usr/include/xulrunner-sdk-1.9.2/xpcom
-I/usr/include/xulrunner-sdk-1.9.2/string
-DMOZILLA_FIVE_HOME=\"/usr/lib64/xulrunner-1.9.2\"
-DGGL_MOZJS_LIBNAME=\"libmozjs.so\" -O2 -Wall -fstack-protector -Werror
-fcheck-new -MT libggadget_smjs_la-converter.lo -MD -MP -MF
.deps/libggadget_smjs_la-converter.Tpo -c
../../../../extensions/smjs_script_runtime/converter.cc  -fPIC -DPIC -o
.libs/libggadget_smjs_la-converter.o
cc1plus: warnings being treated as errors
In file included from /usr/include/xulrunner-sdk-1.9.2/jsinterp.h:48:0,
                 from /usr/include/xulrunner-sdk-1.9.2/jscntxt.h:53,
                 from
../../../../extensions/smjs_script_runtime/converter.cc:20:
/usr/include/xulrunner-sdk-1.9.2/jsfun.h: In function 'js_ArgsPrivateNative*
js_GetArgsPrivateNative(JSObject*)':
/usr/include/xulrunner-sdk-1.9.2/jsfun.h:233:55: error: converting to
non-pointer type 'long unsigned int' from NULL
make[4]: *** [libggadget_smjs_la-converter.lo] Error 1
make[4]: Leaving directory
`/home/pgaltieri/Source/Google/google-gadgets-for-linux/build/nodebug/extensions/smjs_script_runtime'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/pgaltieri/Source/Google/google-gadgets-for-linux/build/nodebug/extensions/smjs_script_runtime'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/pgaltieri/Source/Google/google-gadgets-for-linux/build/nodebug/extensions'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/pgaltieri/Source/Google/google-gadgets-for-linux/build/nodebug'
make: *** [all] Error 2

The relevant function is:

#ifdef __cplusplus /* Allow inclusion from LiveConnect C files. */
inline js_ArgsPrivateNative *
js_GetArgsPrivateNative(JSObject *argsobj)
{
    JS_ASSERT(STOBJ_GET_CLASS(argsobj) == &js_ArgumentsClass);
    uintptr_t p = (uintptr_t) argsobj->getPrivate();
    return (js_ArgsPrivateNative *) (p & 2 ? p & ~2 : NULL);
}
#endif

Anybody have any idea how to fix this.   The problem is in the xulrunner
code, not the Google Gadgets code since the GG
code hasn't changed in months, but the xulrunner code has.

Paolo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20101213/1ba4d3c8/attachment.html 


More information about the users mailing list