Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 615394 - media-libs/tiff-4.0.7-r2 fails with "error: `for' loop initial declarations are only allowed in C99 or C11 mode"
Summary: media-libs/tiff-4.0.7-r2 fails with "error: `for' loop initial declarations a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
: 615228 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-04-12 18:15 UTC by Andrey Falko
Modified: 2017-04-14 14:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Falko 2017-04-12 18:15:39 UTC
e -Wall -W -c /var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7/libtiff/tif_codec.c  -fPIC -DPIC -o .libs/tif_codec.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7/libtiff -O2 -march=native -pipe -Wall -W -c /var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7/libtiff/tif_dirread.c  -fPIC -DPIC -o .libs/tif_dirread.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7/libtiff -O2 -march=native -pipe -Wall -W -c /var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7/libtiff/tif_dir.c  -fPIC -DPIC -o .libs/tif_dir.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7/libtiff -O2 -march=native -pipe -Wall -W -c /var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7/libtiff/tif_close.c  -fPIC -DPIC -o .libs/tif_close.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7/libtiff -O2 -march=native -pipe -Wall -W -c /var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7/libtiff/tif_dirinfo.c  -fPIC -DPIC -o .libs/tif_dirinfo.o
/var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7/libtiff/tif_dir.c: In function â_TIFFVSetFieldâ:
/var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7/libtiff/tif_dir.c:464:3: error: âforâ loop initial declarations are only allowed in C99 or C11 mode
   for (int i = 0; i < 6; i++) {
   ^
/var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7/libtiff/tif_dir.c:464:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7/libtiff     -O2 -march=native -pipe -Wall -W -c -o tif_dirwrite.lo /var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7/libtiff/tif_dirwrite.c
make[2]: *** [Makefile:674: tif_dir.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: compile:  x86_64-pc-linux-gnu-gcc -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7/libtiff -O2 -march=native -pipe -Wall -W -c /var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7/libtiff/tif_dirwrite.c  -fPIC -DPIC -o .libs/tif_dirwrite.o
make[2]: Leaving directory '/var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7-abi_x86_32.x86/libtiff'
make[1]: *** [Makefile:495: all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7-abi_x86_32.x86/libtiff'
make: *** [Makefile:546: all-recursive] Error 1
 * ERROR: media-libs/tiff-4.0.7-r2::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-libs/tiff-4.0.7-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/tiff-4.0.7-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/tiff-4.0.7-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/tiff-4.0.7-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7-abi_x86_32.x86'
 * S: '/var/tmp/portage/media-libs/tiff-4.0.7-r2/work/tiff-4.0.7'

>>> Failed to emerge media-libs/tiff-4.0.7-r2, Log file:

>>>  '/var/tmp/portage/media-libs/tiff-4.0.7-r2/temp/build.log'
Comment 1 SpanKY gentoo-dev 2017-04-12 20:10:05 UTC
should be fixed w/tiff-4.0.7-r3 by rewriting the code slightly
Comment 2 SpanKY gentoo-dev 2017-04-14 14:29:10 UTC
*** Bug 615228 has been marked as a duplicate of this bug. ***