Bug#634431: gjs: FTBFS: modules/console.c:166:5: error: unknown type name 'JSScript'

Lucas Nussbaum lucas at lucas-nussbaum.net
Mon Jul 18 22:01:55 UTC 2011


Source: gjs
Version: 0.7.1-2
Severity: serious
Tags: wheezy sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20110718 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
> /bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -pthread -DXP_UNIX -DJS_THREADSAFE -I/usr/include/nspr -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/mozjs    -Wfloat-equal -Wsign-compare -Wcast-align -Wpointer-arith -Wnested-externs -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wall -g -O2 -c -o console_la-console.lo `test -f 'modules/console.c' || echo './'`modules/console.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -pthread -DXP_UNIX -DJS_THREADSAFE -I/usr/include/nspr -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/mozjs -Wfloat-equal -Wsign-compare -Wcast-align -Wpointer-arith -Wnested-externs -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wall -g -O2 -c modules/console.c  -fPIC -DPIC -o .libs/console_la-console.o
> In file included from /usr/include/mozjs/jspubtd.h:47:0,
>                  from /usr/include/mozjs/jsapi.h:49,
>                  from modules/console.c:52:
> /usr/include/mozjs/jsval.h: In function 'JS_CANONICALIZE_NAN':
> /usr/include/mozjs/jsval.h:770:9: warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
> modules/console.c: In function 'gjs_console_interact':
> modules/console.c:166:5: error: unknown type name 'JSScript'
> modules/console.c:200:16: warning: assignment from incompatible pointer type [enabled by default]
> modules/console.c:204:13: warning: passing argument 3 of 'JS_ExecuteScript' from incompatible pointer type [enabled by default]
> /usr/include/mozjs/jsapi.h:2805:1: note: expected 'struct JSObject *' but argument is of type 'int *'
> modules/console.c:216:13: warning: implicit declaration of function 'JS_GetStringBytes' [-Wimplicit-function-declaration]
> modules/console.c:216:13: warning: nested extern declaration of 'JS_GetStringBytes' [-Wnested-externs]
> modules/console.c:216:13: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat]
> modules/console.c:219:13: warning: implicit declaration of function 'JS_DestroyScript' [-Wimplicit-function-declaration]
> modules/console.c:219:13: warning: nested extern declaration of 'JS_DestroyScript' [-Wnested-externs]
> modules/console.c: In function 'gjs_define_console_stuff':
> modules/console.c:237:28: warning: passing argument 4 of 'JS_DefineFunction' from incompatible pointer type [enabled by default]
> /usr/include/mozjs/jsapi.h:2640:1: note: expected 'JSNative' but argument is of type 'JSBool (*)(struct JSContext *, struct JSObject *, uintN,  jsval *, jsval *)'
> make[3]: *** [console_la-console.lo] Error 1

The full build log is available from:
   http://people.debian.org/~lucas/logs/2011/07/18/gjs_0.7.1-2_lsid64.buildlog

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.

-- 
| Lucas Nussbaum
| lucas at lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lucas at nussbaum.fr             GPG: 1024D/023B3F4F |





More information about the pkg-gnome-maintainers mailing list