sivarajankumar / google-gadgets-for-linux

Automatically exported from code.google.com/p/google-gadgets-for-linux
Apache License 2.0
0 stars 0 forks source link

does not build with xulrunner 1.9.2 (ff 3.6) #352

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When building with xulrunner 1.9.2 (ff 3.6), latest trunk fails with:

[iurt cooker] fwangklodia~/rpm/BUILD/google-
gadgets/extensions/smjs_script_runtime$ make
Making all in .
make[1]: Entering directory `/home/fwang/rpm/BUILD/google-
gadgets/extensions/smjs_script_runtime'
/bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -
I../.. -I../.. -I../.. -D__STDC_CONSTANT_MACROS                    -
DNDEBUG                    -DGGL_MODULE_DIR=\"/usr/lib64/google-
gadgets/modules\"                    -
DGGL_INCLUDE_DIR=\"/usr/include/google-gadgets\"                    -
DGGL_SYSDEPS_INCLUDE_DIR=\"/usr/lib64/google-
gadgets/include\"                    -DGGL_LIBEXEC_DIR=\"/usr/lib64/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_DBUS_WATCH_GET_UNIX_FD -
DHAVE_RSVG_LIBRARY -DHAVE_STARTUP_NOTIFICATION -DHAVE_JAVA_SCRIPT_H -
DGGL_GTK_WEBKIT_SUPPORT_JSC -DHAVE_MKDTEMP -DHAVE_MMAP "-
DGGL_DIST_INFO=\"linux-x86_64 (Mandriva Linux release 2010.1 (Cooker) for 
x86_64) (-)\""                      -
DGGL_DEFAULT_GST_AUDIO_SINK=\"autoaudiosink\"                      -
DGGL_DEFAULT_BROWSER_PLUGINS_DIR=\"/usr/lib64/mozilla/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-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-1.9.2 -
I/usr/include/nspr4   -I/usr/include/xulrunner-1.9.2 -
I/usr/include/xulrunner-1.9.2/content -I/usr/include/xulrunner-1.9.2/dom -
I/usr/include/xulrunner-1.9.2/xpconnect -I/usr/include/xulrunner-
1.9.2/widget -I/usr/include/xulrunner-1.9.2/gtkembedmoz -
I/usr/include/xulrunner-1.9.2/xpcom -I/usr/include/xulrunner-1.9.2/string -
DMOZILLA_FIVE_HOME=\"/usr/lib64/xulrunner-1.9.2\" -
DGGL_MOZJS_LIBNAME=\"libmozjs.so\"  -O2 -Wall -fstack-protector -fcheck-
new -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -
fstack-protector --param=ssp-buffer-size=4 -MT libggadget_smjs_la-
converter.lo -MD -MP -MF .deps/libggadget_smjs_la-converter.Tpo -c -o 
libggadget_smjs_la-converter.lo `test -f 'converter.cc' || 
echo './'`converter.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../.. -
D__STDC_CONSTANT_MACROS -DNDEBUG -DGGL_MODULE_DIR=\"/usr/lib64/google-
gadgets/modules\" -DGGL_INCLUDE_DIR=\"/usr/include/google-gadgets\" -
DGGL_SYSDEPS_INCLUDE_DIR=\"/usr/lib64/google-gadgets/include\" -
DGGL_LIBEXEC_DIR=\"/usr/lib64/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_DBUS_WATCH_GET_UNIX_FD -DHAVE_RSVG_LIBRARY -
DHAVE_STARTUP_NOTIFICATION -DHAVE_JAVA_SCRIPT_H -
DGGL_GTK_WEBKIT_SUPPORT_JSC -DHAVE_MKDTEMP -DHAVE_MMAP "-
DGGL_DIST_INFO=\"linux-x86_64 (Mandriva Linux release 2010.1 (Cooker) for 
x86_64) (-)\"" -DGGL_DEFAULT_GST_AUDIO_SINK=\"autoaudiosink\" -
DGGL_DEFAULT_BROWSER_PLUGINS_DIR=\"/usr/lib64/mozilla/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-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-1.9.2 -
I/usr/include/nspr4 -I/usr/include/xulrunner-1.9.2 -
I/usr/include/xulrunner-1.9.2/content -I/usr/include/xulrunner-1.9.2/dom -
I/usr/include/xulrunner-1.9.2/xpconnect -I/usr/include/xulrunner-
1.9.2/widget -I/usr/include/xulrunner-1.9.2/gtkembedmoz -
I/usr/include/xulrunner-1.9.2/xpcom -I/usr/include/xulrunner-1.9.2/string -
DMOZILLA_FIVE_HOME=\"/usr/lib64/xulrunner-1.9.2\" -
DGGL_MOZJS_LIBNAME=\"libmozjs.so\" -O2 -Wall -fstack-protector -fcheck-
new -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -
fstack-protector --param=ssp-buffer-size=4 -MT libggadget_smjs_la-
converter.lo -MD -MP -MF .deps/libggadget_smjs_la-converter.Tpo -c 
converter.cc  -fPIC -DPIC -o .libs/libggadget_smjs_la-converter.o
In file included from converter.cc:21:
/usr/include/xulrunner-1.9.2/jscntxt.h: In function 'JSContext* 
js_ContextFromLinkField(JSCList*)':
/usr/include/xulrunner-1.9.2/jscntxt.h:1530: warning: invalid access to 
non-static data member 'JSContext::link'  of NULL object
/usr/include/xulrunner-1.9.2/jscntxt.h:1530: warning: (perhaps 
the 'offsetof' macro was used incorrectly)
In file included from converter.cc:23:
/usr/include/xulrunner-1.9.2/jsnum.h: In function 'int JSDOUBLE_IS_NEGZERO
(jsdouble)':
/usr/include/xulrunner-1.9.2/jsnum.h:126: error: 'signbit' was not 
declared in this scope
/usr/include/xulrunner-1.9.2/jsnum.h: In function 'int JSDOUBLE_IS_NEG
(jsdouble)':
/usr/include/xulrunner-1.9.2/jsnum.h:150: error: 'signbit' was not 
declared in this scope
make[1]: *** [libggadget_smjs_la-converter.lo] Error 1
make[1]: Leaving directory `/home/fwang/rpm/BUILD/google-
gadgets/extensions/smjs_script_runtime'
make: *** [all-recursive] Error 1

Original issue reported on code.google.com by fundawang@gmail.com on 23 Jan 2010 at 12:33

GoogleCodeExporter commented 8 years ago
I've fixed the missing signbit issue in the trunk. For the other issue, you may 
use 
make CXXFLAGS="-Wno-invalid-offsetof" to get over it. It's a problem in 
xulrunner's 
code, there is nothing can be done from our side.

Original comment by james...@gmail.com on 27 Jan 2010 at 4:08

GoogleCodeExporter commented 8 years ago
There is another issue to be fixed. Current trunk can compile against xulrunner 
1.9.2 
but fail to run.

Original comment by james...@gmail.com on 27 Jan 2010 at 4:46

GoogleCodeExporter commented 8 years ago

Original comment by james...@gmail.com on 27 Jan 2010 at 4:47

GoogleCodeExporter commented 8 years ago
Now the trunk can support xulrunner up to 1.9.3 (alpha). Though you still need 
CXXFLAGS="-Wno-invalid-offsetof" hack.

Original comment by james...@gmail.com on 27 Jan 2010 at 5:57

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I just had this issue. Why doesn't configure put 
CXXFLAGS="-Wno-invalid-offsetof, if its needed for compilation?

Original comment by lanils...@gmail.com on 8 Feb 2011 at 12:26