Wind River Support Network

HomeDefectsLIN6-1938
Not to be fixed

LIN6-1938 : clutter-1.0_1.14.4 fai1ed to compile with error: expected expression before 'static'

Created: Aug 14, 2013    Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Found In Version: 6.0
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

 GEN    test-state-animator
test-main.c:10:1: error: expected expression before 'static'
 static GModule *module = NULL;
 ^
  GEN    test-fbo
  GEN    test-multistage
make[2]: *** [test_interactive-test-main.o] Error 1
make[2]: *** Waiting for unfinished jobs....

or

test-main.c: In function 'main':
test-main.c:132:37: error: 'test_unit_names' undeclared (first use in this function)
       for (i = 0; i < G_N_ELEMENTS (test_unit_names); i++)
                                     ^
/data/nxadm/nx/xxxxxx.1/builds-2013-11-30-122500/qemux86-64_world_oe_bp/bitbake_build/tmp/sysroots/qemux86-64/usr/include/glib-2.0/glib/gmacros.h:233:37: note: in definition of macro 'G_N_ELEMENTS'
 #define G_N_ELEMENTS(arr)  (sizeof (arr) / sizeof ((arr)[0]))
                                     ^
test-main.c:132:37: note: each undeclared identifier is reported only once for each function it appears in
       for (i = 0; i < G_N_ELEMENTS (test_unit_names); i++)
                                     ^
/data/nxadm/nx/xxxxxx/builds-2013-11-30-122500/qemux86-64_world_oe_bp/bitbake_build/tmp/sysroots/qemux86-64/usr/include/glib-2.0/glib/gmacros.h:233:37: note: in definition of macro 'G_N_ELEMENTS'
 #define G_N_ELEMENTS(arr)  (sizeof (arr) / sizeof ((arr)[0]))
                                     ^
make[2]: *** [test_interactive-test-main.o] Error 1
make[2]: *** Waiting for unfinished jobs....

or

test-main.c:6:29: fatal error: test-unit-names.h: No such file or directory
 #include "test-unit-names.h"
                             ^
compilation terminated.
make[2]: *** [test_interactive-test-main.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Steps to Reproduce

--enable-board=intel-xeon-core --enable-rootfs=glibc-std-sato --enable-kernel=standard --with-layer=wr-security,meta-selinux --enable-unsupported-toolchain=openembedded-core --enable-bootimage=noimage --enable-build=profiling --with-template=feature/analysis
Live chat
Online