./glibconfig.h:82: error: flexible array member in union

Niamathullah sharief armsharief at gmail.com
Fri Jan 1 03:19:39 PST 2010


Hello,
  I am trying to cross compile pkg-config for arm processor. but when i try
to make the following error is coming

*make all-recursive
make[1]: Entering directory `/mnt/freescale/sources/pkg-config-0.20'
Making all in glib-1.2.8
make[2]: Entering directory
`/mnt/freescale/sources/pkg-config-0.20/glib-1.2.8'
make all-recursive
make[3]: Entering directory
`/mnt/freescale/sources/pkg-config-0.20/glib-1.2.8'
Making all in .
make[4]: Entering directory
`/mnt/freescale/sources/pkg-config-0.20/glib-1.2.8'
if /bin/sh ./libtool --mode=compile arm-none-linux-gnueabi-gcc
-DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -O3
-march=armv7-a -mtune=cortex-a8 -mcpu=cortex-a8 -mfloat-abi=softfp
-mfpu=vfp3 -ftree-vectorize -funroll-all-loops -Wall -D_REENTRANT -MT
garray.lo -MD -MP -MF ".deps/garray.Tpo" \
-c -o garray.lo `test -f 'garray.c' || echo './'`garray.c; \
then mv -f ".deps/garray.Tpo" ".deps/garray.Plo"; \
else rm -f ".deps/garray.Tpo"; exit 1; \
fi
arm-none-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I. -I.
-DG_LOG_DOMAIN=g_log_domain_glib -O3 -march=armv7-a -mtune=cortex-a8
-mcpu=cortex-a8 -mfloat-abi=softfp -mfpu=vfp3 -ftree-vectorize
-funroll-all-loops -Wall -D_REENTRANT -MT garray.lo -MD -MP -MF
.deps/garray.Tpo -c garray.c -fPIC -DPIC -o .libs/garray.o
In file included from glib.h:66,
from garray.c:32:
./glibconfig.h:82: error: flexible array member in union
In file included from garray.c:32:
glib.h:2335: error: expected ',' or '}' before 'GLIB_SYSDEF_POLLIN'
garray.c:65: confused by earlier errors, bailing out
make[4]: *** [garray.lo] Error 1
make[4]: Leaving directory
`/mnt/freescale/sources/pkg-config-0.20/glib-1.2.8'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/mnt/freescale/sources/pkg-config-0.20/glib-1.2.8'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/mnt/freescale/sources/pkg-config-0.20/glib-1.2.8'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/freescale/sources/pkg-config-0.20'
make: *** [all] Error 2
sharief at sharief-desktop:/mnt/freescale/sources/pkg-config-0.20$*

  Can anyone help me
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/pkg-config/attachments/20100101/243a5d2e/attachment.html 


More information about the pkg-config mailing list