After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 628359 - does not build against xulrunner 2.0b4
does not build against xulrunner 2.0b4
Status: RESOLVED DUPLICATE of bug 622896
Product: gjs
Classification: Bindings
Component: general
0.7.x
Other Linux
: Normal normal
: ---
Assigned To: gjs-maint
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2010-08-30 18:49 UTC by Götz Waschk
Modified: 2010-09-23 14:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Götz Waschk 2010-08-30 18:49:03 UTC
gjs 0.7.1 does not build against xulrunner 2.0b4 (of firefox 4.0b4):

/bin/sh ./libtool --tag=CXX   --mode=link g++  -Wfloat-equal -Wsign-compare -Wcast-align -Wpointer-arith -Wnested-externs -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -export-symbols-regex "^[^_]" -version-info 0:0:0 -no-undefined -R /usr/lib/xulrunner-2.0 -rdynamic -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -o libgjs.la -rpath /usr/lib libgjs_la-byteArray.lo libgjs_la-context.lo libgjs_la-importer.lo libgjs_la-jsapi-private.lo libgjs_la-jsapi-util.lo libgjs_la-jsapi-util-array.lo libgjs_la-jsapi-util-error.lo libgjs_la-jsapi-util-string.lo libgjs_la-mem.lo libgjs_la-native.lo libgjs_la-profiler.lo libgjs_la-stack.lo libgjs_la-error.lo libgjs_la-glib.lo libgjs_la-crash.lo libgjs_la-log.lo libgjs_la-misc.lo -Wl,--export-dynamic -pthread -L/usr/lib/xulrunner-devel-2.0/lib -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lmozjs -lplds4 -lplc4 -lnspr4 -lpthread -ldl
libtool: link: rm -fr  .libs/libgjs.exp
libtool: link: /usr/bin/nm -B  .libs/libgjs_la-byteArray.o .libs/libgjs_la-context.o .libs/libgjs_la-importer.o .libs/libgjs_la-jsapi-private.o .libs/libgjs_la-jsapi-util.o .libs/libgjs_la-jsapi-util-array.o .libs/libgjs_la-jsapi-util-error.o .libs/libgjs_la-jsapi-util-string.o .libs/libgjs_la-mem.o .libs/libgjs_la-native.o .libs/libgjs_la-profiler.o .libs/libgjs_la-stack.o .libs/libgjs_la-error.o .libs/libgjs_la-glib.o .libs/libgjs_la-crash.o .libs/libgjs_la-log.o .libs/libgjs_la-misc.o   | sed -n -e 's/^.*[       ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[        ][       ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /bin/sed 's/.* //' | sort | uniq > .libs/libgjs.exp
libtool: link: /bin/grep -E -e "^[^_]" ".libs/libgjs.exp" > ".libs/libgjs.expT"
libtool: link: mv -f ".libs/libgjs.expT" ".libs/libgjs.exp"
libtool: link: g++ -shared -nostdlib /usr/lib/gcc/i586-manbo-linux-gnu/4.5.1/../../../crti.o /usr/lib/gcc/i586-manbo-linux-gnu/4.5.1/crtbeginS.o  .libs/libgjs_la-byteArray.o .libs/libgjs_la-context.o .libs/libgjs_la-importer.o .libs/libgjs_la-jsapi-private.o .libs/libgjs_la-jsapi-util.o .libs/libgjs_la-jsapi-util-array.o .libs/libgjs_la-jsapi-util-error.o .libs/libgjs_la-jsapi-util-string.o .libs/libgjs_la-mem.o .libs/libgjs_la-native.o .libs/libgjs_la-profiler.o .libs/libgjs_la-stack.o .libs/libgjs_la-error.o .libs/libgjs_la-glib.o .libs/libgjs_la-crash.o .libs/libgjs_la-log.o .libs/libgjs_la-misc.o   -march=i586 -mtune=generic -Wl,--as-needed -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--export-dynamic -pthread   -pthread  -Wl,-rpath -Wl,/usr/lib/xulrunner-2.0 -L/usr/lib/xulrunner-devel-2.0/lib /usr/lib/libgmodule-2.0.so -L/usr/lib /usr/lib/libgobject-2.0.so /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so /usr/lib/libpcre.so -lmozjs -lplds4 -lplc4 -lnspr4 -lpthread -ldl -L/usr/lib/gcc/i586-manbo-linux-gnu/4.5.1 -L/usr/lib/gcc/i586-manbo-linux-gnu/4.5.1/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i586-manbo-linux-gnu/4.5.1/crtendS.o /usr/lib/gcc/i586-manbo-linux-gnu/4.5.1/../../../crtn.o -Wl,-soname -Wl,libgjs.so.0 -Wl,-retain-symbols-file -Wl,.libs/libgjs.exp -o .libs/libgjs.so.0.0.0
.libs/libgjs_la-byteArray.o: In function `gjs_value_from_gsize':
/home/goetz/svn/gjs/BUILD/gjs-0.7.1/gjs/byteArray.c:101: undefined reference to `JS_NewDoubleValue'
.libs/libgjs_la-context.o: In function `gjs_context_constructor':
/home/goetz/svn/gjs/BUILD/gjs-0.7.1/gjs/context.c:623: undefined reference to `JS_AddRoot'
.libs/libgjs_la-context.o: In function `gjs_context_dispose':
/home/goetz/svn/gjs/BUILD/gjs-0.7.1/gjs/context.c:355: undefined reference to `JS_RemoveRoot'
.libs/libgjs_la-jsapi-util.o: In function `log_and_maybe_keep_exception':
/home/goetz/svn/gjs/BUILD/gjs-0.7.1/gjs/jsapi-util.c:852: undefined reference to `JS_AddRoot'
/home/goetz/svn/gjs/BUILD/gjs-0.7.1/gjs/jsapi-util.c:893: undefined reference to `JS_RemoveRoot'
.libs/libgjs_la-jsapi-util-array.o: In function `add_root_jsval':
/home/goetz/svn/gjs/BUILD/gjs-0.7.1/gjs/jsapi-util-array.c:63: undefined reference to `JS_AddRoot'
.libs/libgjs_la-jsapi-util-array.o: In function `remove_root_jsval':
/home/goetz/svn/gjs/BUILD/gjs-0.7.1/gjs/jsapi-util-array.c:73: undefined reference to `JS_RemoveRoot'
collect2: ld returned 1 exit status
Comment 1 Götz Waschk 2010-09-16 07:25:15 UTC
With gjs 0.7.2 and xulrunner 2.0b5 it looks like this:

/bin/sh ./libtool --tag=CC   --mode=link gcc  -pthread -DXP_UNIX -DJS_THREADSAFE -I/usr/include/gobject-introspection-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi-3.0.9/include -I/usr/include/xulrunner-2.0 -I/usr/include/nspr4    -Wfloat-equal -Wsign-compare -Wcast-align -Wpointer-arith -Wnested-externs -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -export-symbols-regex "^[^_].*" -version-info 0:0:0 -rdynamic -no-undefined -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -o libgjs-gi.la -rpath /usr/lib libgjs_gi_la-arg.lo libgjs_gi_la-boxed.lo libgjs_gi_la-closure.lo libgjs_gi_la-enumeration.lo libgjs_gi_la-function.lo libgjs_gi_la-keep-alive.lo libgjs_gi_la-ns.lo libgjs_gi_la-object.lo libgjs_gi_la-foreign.lo libgjs_gi_la-param.lo libgjs_gi_la-repo.lo libgjs_gi_la-union.lo libgjs_gi_la-value.lo libgjs.la -Wl,--export-dynamic -pthread -L/usr/lib/xulrunner-devel-2.0/lib -lgirepository-1.0 -lgmodule-2.0 -lffi -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lmozjs -lplds4 -lplc4 -lnspr4 -lpthread -ldl
libtool: link: rm -fr  .libs/libgjs-gi.exp .libs/libgjs-gi.ver
libtool: link: /usr/bin/nm -B  .libs/libgjs_gi_la-arg.o .libs/libgjs_gi_la-boxed.o .libs/libgjs_gi_la-closure.o .libs/libgjs_gi_la-enumeration.o .libs/libgjs_gi_la-function.o .libs/libgjs_gi_la-keep-alive.o .libs/libgjs_gi_la-ns.o .libs/libgjs_gi_la-object.o .libs/libgjs_gi_la-foreign.o .libs/libgjs_gi_la-param.o .libs/libgjs_gi_la-repo.o .libs/libgjs_gi_la-union.o .libs/libgjs_gi_la-value.o   | sed -n -e 's/^.*[   ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[         ][      ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /bin/sed 's/.* //' | sort | uniq > .libs/libgjs-gi.exp
libtool: link: /bin/grep -E -e "^[^_].*" ".libs/libgjs-gi.exp" > ".libs/libgjs-gi.expT"
libtool: link: mv -f ".libs/libgjs-gi.expT" ".libs/libgjs-gi.exp"
libtool: link: echo "{ global:" > .libs/libgjs-gi.ver
libtool: link:  cat .libs/libgjs-gi.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libgjs-gi.ver
libtool: link:  echo "local: *; };" >> .libs/libgjs-gi.ver
libtool: link:  gcc -shared -Wl,--as-needed  .libs/libgjs_gi_la-arg.o .libs/libgjs_gi_la-boxed.o .libs/libgjs_gi_la-closure.o .libs/libgjs_gi_la-enumeration.o .libs/libgjs_gi_la-function.o .libs/libgjs_gi_la-keep-alive.o .libs/libgjs_gi_la-ns.o .libs/libgjs_gi_la-object.o .libs/libgjs_gi_la-foreign.o .libs/libgjs_gi_la-param.o .libs/libgjs_gi_la-repo.o .libs/libgjs_gi_la-union.o .libs/libgjs_gi_la-value.o   -pthread -march=i586 -mtune=generic -Wl,--as-needed -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--export-dynamic -pthread   -pthread  -Wl,-rpath -Wl,/tmp/mdvsys_KjPK/BUILD/gjs-0.7.2/.libs ./.libs/libgjs.so -L/usr/lib/xulrunner-devel-2.0/lib /usr/lib/libgirepository-1.0.so /usr/lib/libgio-2.0.so -lresolv -lz /usr/lib/libgmodule-2.0.so -lffi /usr/lib/libgobject-2.0.so /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so /usr/lib/libpcre.so -lmozjs -lplds4 -lplc4 -lnspr4 -lpthread -ldl -Wl,-soname -Wl,libgjs-gi.so.0 -Wl,-version-script -Wl,.libs/libgjs-gi.ver -o .libs/libgjs-gi.so.0.0.0
.libs/libgjs_gi_la-closure.o: In function `gjs_closure_invoke_simple':
/tmp/mdvsys_KjPK/BUILD/gjs-0.7.2/gi/closure.c:304: undefined reference to `JS_PushArguments'
/tmp/mdvsys_KjPK/BUILD/gjs-0.7.2/gi/closure.c:320: undefined reference to `JS_PopArguments'
collect2: ld returned 1 exit status
Comment 2 Colin Walters 2010-09-23 14:41:18 UTC

*** This bug has been marked as a duplicate of bug 622896 ***