Build error in Centos7
LMSBrubaker opened this issue · 2 comments
LMSBrubaker commented
hello,
with the actual source from the master i am getting the followiing error.
/root/rpmbuild/BUILD/apcu/apc_cache.c: In function 'apc_cache_info':
/root/rpmbuild/BUILD/apcu/apc_cache.c:1097:4: error: 'for' loop initial declarations are only allowed in C99 mode
for (size_t i = 0; i < cache->nslots; i++) {
previous builds just work fine, so whats happening or what did i have to change?
nikic commented
Probably AC_PROG_CC_C99 should be added to config.m4. You should be able to work around this by adding -std=c99
to CFLAGS.
remicollet commented
Fixed by ab01a6e (will be in 5.1.22)