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 693627 - introspection errors in gjs make test
introspection errors in gjs make test
Status: RESOLVED FIXED
Product: gjs
Classification: Bindings
Component: general
1.35.x
Other Linux
: Normal normal
: ---
Assigned To: gjs-maint
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2013-02-12 00:56 UTC by darkxst
Modified: 2013-02-12 19:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Makefile-test: Update build test build system (3.54 KB, patch)
2013-02-12 19:06 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description darkxst 2013-02-12 00:56:40 UTC
The recent changes to gobject introspection, cause gjs make test to fail with the following log:

$ make test
g-ir-scanner --include=Gio-2.0 \
	--namespace=WarnLib --nsversion=1.0 \
	--identifier-prefix=WarnLib_ \
	--symbol-prefix=warnlib_ \
	--library=libwarnlib.la \
	--libtool="./libtool" \
	--output WarnLib-1.0.gir \
	/usr/share/gobject-introspection-1.0/tests/warnlib.c /usr/share/gobject-introspection-1.0/tests/warnlib.h
g-ir-scanner: compile: gcc -Wall -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wall -g -O0 -fno-omit-frame-pointer -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -c -o /usr/local/src/ubuntu/apt/gjs-1.35.5~git20130121.7cde1715/tmp-introspectFlj9OT/WarnLib-1.0.o /usr/local/src/ubuntu/apt/gjs-1.35.5~git20130121.7cde1715/tmp-introspectFlj9OT/WarnLib-1.0.c
g-ir-scanner: link: ./libtool --mode=link --tag=CC gcc -o /usr/local/src/ubuntu/apt/gjs-1.35.5~git20130121.7cde1715/tmp-introspectFlj9OT/WarnLib-1.0 -export-dynamic -Wall -g -O0 -fno-omit-frame-pointer -L/opt/gnome/lib64 -L/opt/gnome/lib64 /usr/local/src/ubuntu/apt/gjs-1.35.5~git20130121.7cde1715/tmp-introspectFlj9OT/WarnLib-1.0.o -L. libwarnlib.la -Wl,--export-dynamic -pthread -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
libtool: link: gcc -o /usr/local/src/ubuntu/apt/gjs-1.35.5~git20130121.7cde1715/tmp-introspectFlj9OT/.libs/WarnLib-1.0 -Wall -g -O0 -fno-omit-frame-pointer /usr/local/src/ubuntu/apt/gjs-1.35.5~git20130121.7cde1715/tmp-introspectFlj9OT/WarnLib-1.0.o -Wl,--export-dynamic -pthread -Wl,--export-dynamic  -L/opt/gnome/lib64 -L. ./.libs/libwarnlib.so -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -pthread -Wl,-rpath -Wl,/usr/unused
<unknown>:: Fatal: WarnLib: Unknown namespace for identifier 'WarnLibWhatever'
<unknown>:: Fatal: WarnLib: Unknown namespace for identifier 'WarnLibWhatever'
Comment 1 Jasper St. Pierre (not reading bugmail) 2013-02-12 19:06:12 UTC
Created attachment 235811 [details] [review]
Makefile-test: Update build test build system

We can now use the standard introspection Makefile stuff. This also
fixes scanner issues with WarnLib.
Comment 2 Colin Walters 2013-02-12 19:08:24 UTC
Review of attachment 235811 [details] [review]:

Looks good.  There's some weird LD_LIBRARY_PATH stuff going on in the old code, but it looks bogus.
Comment 3 Jasper St. Pierre (not reading bugmail) 2013-02-12 19:09:10 UTC
Attachment 235811 [details] pushed as a3d978e - Makefile-test: Update build test build system