On 04/05/2021 08:59, jean-frederic clere wrote:
Hi,
I have the following:
+++
/home/jfclere/APR-1.7.x/build-1/libtool --silent --mode=compile gcc -g
-O2 -pthread -std=c89 -Werror -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations
-Wdeclaration-after-statement -Wpointer-arith -Wformat -Wformat-security
-Wunused -DLINUX -D_REENTRANT -D_GNU_SOURCE -DAP_DEBUG -I.
-I/home/jfclere/httpd-trunk/os/unix -I/home/jfclere/httpd-trunk/include
-I/home/jfclere/APR-1.7.x/include/apr-1
-I/home/jfclere/APU-1.6.x/include/apr-1
-I/home/jfclere/httpd-trunk/modules/aaa
-I/home/jfclere/httpd-trunk/modules/cache
-I/home/jfclere/httpd-trunk/modules/core
-I/home/jfclere/httpd-trunk/modules/database
-I/home/jfclere/httpd-trunk/modules/filters
-I/home/jfclere/httpd-trunk/modules/ldap
-I/home/jfclere/httpd-trunk/modules/loggers
-I/home/jfclere/httpd-trunk/modules/lua
-I/home/jfclere/httpd-trunk/modules/proxy
-I/home/jfclere/httpd-trunk/modules/http2
-I/home/jfclere/httpd-trunk/modules/session
-I/home/jfclere/httpd-trunk/modules/ssl
-I/home/jfclere/httpd-trunk/modules/test
-I/home/jfclere/httpd-trunk/server
-I/home/jfclere/httpd-trunk/modules/md
-I/home/jfclere/httpd-trunk/modules/arch/unix
-I/home/jfclere/httpd-trunk/modules/dav/main
-I/home/jfclere/httpd-trunk/modules/generators
-I/home/jfclere/httpd-trunk/modules/mappers -prefer-non-pic -static -c
htcacheclean.c -o htcacheclean.lo
In file included from htcacheclean.c:36:
htcacheclean.c: In function ‘process_dir’:
/home/jfclere/APR-1.7.x/include/apr-1/apr_ring.h:183:37: error: array
subscript ‘struct _direntry[0]’ is partly outside array bounds of
‘struct <anonymous>[1]’ [-Werror=array-bounds]
183 | #define APR_RING_PREV(ep, link) (ep)->link.prev
| ^~
/home/jfclere/APR-1.7.x/include/apr-1/apr_ring.h:230:38: note: in
expansion of macro ‘APR_RING_PREV’
230 | APR_RING_PREV((ep1), link) = APR_RING_PREV((lep),
link); \
|
+++
Before looking more closely to the problem I have a question, trunk
should be building with apr 1.7.x and apr-util 1.6.x correct?
I used to build with apr 1.6.x and apr-util 1.6.x but something looks
broken now.
Or is that a regression in gcc on fedora34? :-(
--
Cheers
Jean-Frederic