Project

General

Profile

Actions

Bug #5004

closed

More fallout from -std=gnu11 on debian8

Added by osmith about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
02/02/2021
Due date:
% Done:

100%

Spec Reference:

Description

After libosmocore is fixed (#4991), osmo-bts and libosmo-sccp are failing with similar "error: initializer element is not constant" errors.

I'll fix it and verify that all packages build for debian8 now, as we might get that with other packages as well.


Related issues

Related to libosmocore - Bug #4991: fails to build on OBS/debian 8Resolvedosmith01/29/2021

Actions
Actions #1

Updated by osmith about 3 years ago

  • Related to Bug #4991: fails to build on OBS/debian 8 added
Actions #2

Updated by osmith about 3 years ago

libosmo-sccp fails with:

[  173s]   CC       xua_test.o
[  173s] In file included from ../../include/../src/xua_internal.h:4:0,
[  173s]                  from xua_test.c:21:
[  173s] ../../include/osmocom/sigtran/xua_msg.h:25:39: error: initializer element is not constant
[  173s]  #define XUA_HDR(class, type) ((struct xua_common_hdr) { .spare = 0, .msg_class = (class), .msg_type = (type) })
[  173s]                                        ^
[  173s] xua_test.c:387:11: note: in expansion of macro 'XUA_HDR'
[  173s]     .hdr = XUA_HDR(SUA_MSGC_CL, SUA_CL_CLDT),
[  173s]            ^
[  173s] ../../include/osmocom/sigtran/xua_msg.h:25:39: error: (near initialization for 'sccp2sua_testcases[0].sua.hdr')
[  173s]  #define XUA_HDR(class, type) ((struct xua_common_hdr) { .spare = 0, .msg_class = (class), .msg_type = (type) })
[  173s]                                        ^
[  173s] xua_test.c:387:11: note: in expansion of macro 'XUA_HDR'
[  173s]     .hdr = XUA_HDR(SUA_MSGC_CL, SUA_CL_CLDT),
[  173s]            ^
[  173s] Makefile:381: recipe for target 'xua_test.o' failed

osmo-bts fails with:

[  167s]   CC       measurement.o
[  167s] measurement.c:33:1: error: initializer element is not constant
[  167s]  };
[  167s]  ^
Actions #3

Updated by osmith about 3 years ago

  • % Done changed from 0 to 20
Actions #4

Updated by laforge about 3 years ago

maybe c11 was a bit too new, after all. I explicitly commented on that, but then
stated "ok" as it was generally understood that C11 is supported everywhere :P

Actions #5

Updated by osmith about 3 years ago

  • % Done changed from 20 to 90

Well, the good news is that there are no more failures besides the libosmocore osmo-bts and libosmo-sccp errors.

https://build.opensuse.org/project/monitor/home:osmith42?defaults=0&succeeded=1&failed=1&unresolvable=1&broken=1&blocked=1&dispatching=1&scheduled=1&building=1&finished=1&signing=1&locked=1&deleting=1&unknown=1&arch_i586=1&repo_Debian_8_0=1

I'll update the libosmo-sccp patch and test it again.

Actions #6

Updated by osmith about 3 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 90 to 100
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)