Build fails with --enable-eot

julien2412 serval2412 at yahoo.fr
Mon Sep 29 23:22:33 PDT 2014


Hello,

On pc Debian x86-64 with master sources updated today + make clean, I have
got this:
libtool: compile:  /usr/bin/ccache gcc -DHAVE_CONFIG_H -I. -I./inc -O2
--std=c99 -DDECOMPRESS_ON -std=gnu89 -MT src/libeot_la-libeot.lo -MD -MP -MF
src/.deps/libeot_la-libeot.Tpo -c src/libeot.c  -fPIC -DPIC -o
src/libeot_la-libeot.o
libtool: compile:  /usr/bin/ccache gcc -DHAVE_CONFIG_H -I. -I./inc -O2
--std=c99 -DDECOMPRESS_ON -std=gnu89 -MT src/libeot_la-EOT.lo -MD -MP -MF
src/.deps/libeot_la-EOT.Tpo -c src/EOT.c  -fPIC -DPIC -o src/libeot_la-EOT.o
src/EOT.c: In function 'EOTgetString':
src/EOT.c:59:5: error: 'for' loop initial declarations are only allowed in
C99 or C11 mode
     for (unsigned i = 0; i < *size / 2; ++i)
     ^
src/EOT.c:59:5: note: use option -std=c99, -std=gnu99, -std=c11 or
-std=gnu11 to compile your code
src/EOT.c: In function 'EOTgetByteArray':
src/EOT.c:93:5: error: 'for' loop initial declarations are only allowed in
C99 or C11 mode
     for (unsigned i = 0; i < *size; ++i)
     ^
src/EOT.c: In function 'EOTfreeMetadata':
src/EOT.c:126:5: error: 'for' loop initial declarations are only allowed in
C99 or C11 mode
     for (unsigned i = 0; i < d->numRootStrings; ++i)
     ^
src/EOT.c: In function 'EOTfillMetadataSpecifyingVersion':
src/EOT.c:173:3: error: 'for' loop initial declarations are only allowed in
C99 or C11 mode
   for (unsigned i = 0; i < 4; ++i)
   ^
src/EOT.c:179:17: error: redefinition of 'i'
   for (unsigned i = 0; i < 2; ++i)
                 ^
src/EOT.c:173:17: note: previous definition of 'i' was here
   for (unsigned i = 0; i < 4; ++i)
                 ^
src/EOT.c:179:3: error: 'for' loop initial declarations are only allowed in
C99 or C11 mode
   for (unsigned i = 0; i < 2; ++i)
   ^
Makefile:639: recipe for target 'src/libeot_la-EOT.lo' failed
make[3]: *** [src/libeot_la-EOT.lo] Error 1
Makefile:379: recipe for target 'all' failed
make[2]: *** [all] Error 2
/home/julien/compile-libreoffice/libreoffice/external/libeot/ExternalProject_libeot.mk:17:
recipe for target
'/home/julien/compile-libreoffice/libreoffice/workdir/ExternalProject/libeot/build'
failed

Indeed, I use this:
--enable-eot
on my autogen.input

Any idea? (disabling this option meanwhile)

Julien



--
View this message in context: http://nabble.documentfoundation.org/Build-fails-with-enable-eot-tp4124183.html
Sent from the Dev mailing list archive at Nabble.com.


More information about the LibreOffice mailing list