Source: wpa
Version: 2:2.9.0-13
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
User: [email protected]
Usertags: ftbfs-gcc-10
Control: found -1 2:2.9.0+git20200517+dd2daf0-1

Hi,

wpa FTBFS with GCC 10 due to more strict checking:

In file included from /build/wpa-2.9.0/src/fst/fst_iface.h:15,
                 from /build/wpa-2.9.0/src/fst/fst_internal.h:16,
                 from ../src/fst/fst.c:14:
../src/fst/fst.c: In function 'fst_ctrl_iface_notify_peer_state_change':
/build/wpa-2.9.0/src/utils/list.h:68:3: error: array subscript -4 is outside 
array bounds of 'struct dl_list[1]' [-Werror=array-bounds]
   68 |  ((type *) ((char *) item - offsetof(type, member)))
      |  ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/wpa-2.9.0/src/utils/list.h:80:23: note: in expansion of macro 
'dl_list_entry'
   80 |       item && item != dl_list_entry((list), type, member); \
      |                       ^~~~~~~~~~~~~
/build/wpa-2.9.0/src/fst/fst_internal.h:43:3: note: in expansion of macro 
'dl_list_for_each'
   43 |   dl_list_for_each(__fst_ctrl_h, &fst_global_ctrls_list, \
      |   ^~~~~~~~~~~~~~~~
../src/fst/fst.c:33:2: note: in expansion of macro 'foreach_fst_ctrl_call'
   33 |  foreach_fst_ctrl_call(on_event, EVENT_PEER_STATE_CHANGED,
      |  ^~~~~~~~~~~~~~~~~~~~~
../src/fst/fst.c:19:16: note: while referencing 'fst_global_ctrls_list'
   19 | struct dl_list fst_global_ctrls_list;
      |                ^~~~~~~~~~~~~~~~~~~~~
In file included from /build/wpa-2.9.0/src/fst/fst_iface.h:15,
                 from /build/wpa-2.9.0/src/fst/fst_internal.h:16,
                 from ../src/fst/fst.c:14:
../src/fst/fst.c: In function 'fst_attach':
/build/wpa-2.9.0/src/utils/list.h:68:3: error: array subscript -3 is outside 
array bounds of 'struct dl_list[1]' [-Werror=array-bounds]
   68 |  ((type *) ((char *) item - offsetof(type, member)))
      |  ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/wpa-2.9.0/src/utils/list.h:80:23: note: in expansion of macro 
'dl_list_entry'
   80 |       item && item != dl_list_entry((list), type, member); \
      |                       ^~~~~~~~~~~~~
/build/wpa-2.9.0/src/fst/fst_group.h:60:2: note: in expansion of macro 
'dl_list_for_each'
   60 |  dl_list_for_each((g), &fst_global_groups_list, \
      |  ^~~~~~~~~~~~~~~~
../src/fst/fst.c:51:2: note: in expansion of macro 'foreach_fst_group'
   51 |  foreach_fst_group(g) {
      |  ^~~~~~~~~~~~~~~~~
In file included from /build/wpa-2.9.0/src/fst/fst_internal.h:17,
                 from ../src/fst/fst.c:14:
/build/wpa-2.9.0/src/fst/fst_group.h:57:23: note: while referencing 
'fst_global_groups_list'
   57 | extern struct dl_list fst_global_groups_list;
      |                       ^~~~~~~~~~~~~~~~~~~~~~
In file included from /build/wpa-2.9.0/src/fst/fst_iface.h:15,
                 from /build/wpa-2.9.0/src/fst/fst_internal.h:16,
                 from ../src/fst/fst.c:14:
/build/wpa-2.9.0/src/utils/list.h:68:3: error: array subscript -4 is outside 
array bounds of 'struct dl_list[1]' [-Werror=array-bounds]
   68 |  ((type *) ((char *) item - offsetof(type, member)))
      |  ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[...]

Andreas

Attachment: wpa_sid.build.gz
Description: application/gzip

Reply via email to