fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-gprs/+/29179 )
Change subject: csn1: #include <stddef.h> in csn1.h for offsetof()
......................................................................
csn1: #include <stddef.h> in csn1.h for offsetof()
Do not require the API user to include <stddef.h>:
note: 'offsetof' is defined in header '<stddef.h>';
did you forget to '#include <stddef.h>'?
Change-Id: I2a144c9967b90d78d95db103eebce83822d8c64d
---
M include/osmocom/csn1/csn1.h
M src/rlcmac/gprs_rlcmac.c
2 files changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-gprs refs/changes/79/29179/1
diff --git a/include/osmocom/csn1/csn1.h b/include/osmocom/csn1/csn1.h
index 3b80fad..9b29ba8 100644
--- a/include/osmocom/csn1/csn1.h
+++ b/include/osmocom/csn1/csn1.h
@@ -23,6 +23,8 @@
#pragma once
+#include <stddef.h>
+
#include <osmocom/core/bitvec.h>
#include "wireshark_compat.h"
diff --git a/src/rlcmac/gprs_rlcmac.c b/src/rlcmac/gprs_rlcmac.c
index cd40387..80b399b 100644
--- a/src/rlcmac/gprs_rlcmac.c
+++ b/src/rlcmac/gprs_rlcmac.c
@@ -26,7 +26,6 @@
*/
#include <assert.h>
-#include <stddef.h>
#include <arpa/inet.h>
#include <osmocom/core/utils.h>
--
To view, visit https://gerrit.osmocom.org/c/libosmo-gprs/+/29179
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-gprs
Gerrit-Branch: master
Gerrit-Change-Id: I2a144c9967b90d78d95db103eebce83822d8c64d
Gerrit-Change-Number: 29179
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange
Visit https://build.opensuse.org/package/live_build_log/network:osmocom:nightly/l…
Package network:osmocom:nightly/libosmo-pfcp failed to build in openSUSE_Tumbleweed/x86_64
Check out the package for editing:
osc checkout network:osmocom:nightly libosmo-pfcp
Last lines of build log:
[ 125s] libosmo-pfcp.src: E: no-changelogname-tag
[ 125s] There is no changelog. Please insert a '%changelog' section heading in your
[ 125s] spec file and prepare your changes file using e.g. the 'osc vc' command.
[ 125s]
[ 125s] libosmo-pfcp.src: W: name-repeated-in-summary libosmo-pfcp
[ 125s] The name of the package is repeated in its summary. Make the summary brief and
[ 125s] to the point without including redundant information in it.
[ 125s]
[ 125s] libosmo-gtlv-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libosmo-gtlv.a
[ 125s] libosmo-pfcp-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libosmo-pfcp.a
[ 125s] This archive does not contain a non-empty .text section. The archive was not
[ 125s] created with -ffat-lto-objects option.
[ 125s]
[ 125s] ---------------- Badness 20227 exceeds threshold 999, aborting. ----------------
[ 125s] Check time report (>1% & >0.1s):
[ 125s] Check Duration (in s) Fraction (in %) Checked files
[ 125s] BinariesCheck 0.1 22.8 4
[ 125s] rpm2cpio 0.1 19.6
[ 125s] TOTAL 0.5 100.0 26
[ 125s]
[ 125s] 5 packages and 0 specfiles checked; 11 errors, 3 warnings, 20227 badness; has taken 0.5 s
[ 125s]
[ 125s] ### VM INTERACTION START ###
[ 125s] [ 107.987118][ T1] sysrq: Power Off
[ 125s] [ 108.004969][ T18] reboot: Power down
[ 125s] ### VM INTERACTION END ###
[ 125s]
[ 125s] lamb21 failed "build libosmo-pfcp.spec" at Sun Aug 21 18:20:16 UTC 2022.
[ 125s]
--
Configure notifications at https://build.opensuse.org/my/subscriptions
openSUSE Build Service (https://build.opensuse.org/)
Visit https://build.opensuse.org/package/live_build_log/network:osmocom:nightly/o…
Package network:osmocom:nightly/osmo-upf failed to build in openSUSE_Tumbleweed/x86_64
Check out the package for editing:
osc checkout network:osmocom:nightly osmo-upf
Last lines of build log:
[ 54s] checking whether to build static libraries... yes
[ 54s] checking for pkg-config... /usr/bin/pkg-config
[ 54s] checking for x86_64-suse-linux-gnu-pkg-config... /usr/bin/x86_64-suse-linux-gnu-pkg-config
[ 54s] checking pkg-config is at least version 0.20... yes
[ 54s] checking for LIBOSMOCORE... yes
[ 54s] checking for LIBOSMOVTY... yes
[ 54s] checking for LIBOSMOCTRL... yes
[ 54s] checking for LIBOSMOGTLV... no
[ 54s] configure: error: Package requirements (libosmo-gtlv >= 0.1.0) were not met:
[ 54s]
[ 54s] Package 'libosmo-gtlv', required by 'virtual:world', not found
[ 54s]
[ 54s] Consider adjusting the PKG_CONFIG_PATH environment variable if you
[ 54s] installed software in a non-standard prefix.
[ 54s]
[ 54s] Alternatively, you may set the environment variables LIBOSMOGTLV_CFLAGS
[ 54s] and LIBOSMOGTLV_LIBS to avoid the need to call pkg-config.
[ 54s] See the pkg-config man page for more details.
[ 54s] error: Bad exit status from /var/tmp/rpm-tmp.Utdw5j (%build)
[ 54s]
[ 54s] RPM build errors:
[ 54s] Bad exit status from /var/tmp/rpm-tmp.Utdw5j (%build)
[ 54s] ### VM INTERACTION START ###
[ 54s] [ 43.654264][ T1] sysrq: Power Off
[ 54s] [ 43.714606][ T18] reboot: Power down
[ 54s] ### VM INTERACTION END ###
[ 54s]
[ 54s] hurricane3 failed "build osmo-upf.spec" at Sun Aug 21 18:19:41 UTC 2022.
[ 54s]
--
Configure notifications at https://build.opensuse.org/my/subscriptions
openSUSE Build Service (https://build.opensuse.org/)
Visit https://build.opensuse.org/package/live_build_log/network:osmocom:nightly/l…
Package network:osmocom:nightly/libosmo-pfcp failed to build in openSUSE_Tumbleweed/i586
Check out the package for editing:
osc checkout network:osmocom:nightly libosmo-pfcp
Last lines of build log:
[ 90s] libosmo-pfcp0.i586: E: no-changelogname-tag
[ 90s] libosmo-pfcp.src: E: no-changelogname-tag
[ 90s] There is no changelog. Please insert a '%changelog' section heading in your
[ 90s] spec file and prepare your changes file using e.g. the 'osc vc' command.
[ 90s]
[ 90s] libosmo-pfcp.src: W: name-repeated-in-summary libosmo-pfcp
[ 90s] The name of the package is repeated in its summary. Make the summary brief and
[ 90s] to the point without including redundant information in it.
[ 90s]
[ 90s] libosmo-gtlv-devel.i586: E: lto-no-text-in-archive (Badness: 10000) /usr/lib/libosmo-gtlv.a
[ 90s] libosmo-pfcp-devel.i586: E: lto-no-text-in-archive (Badness: 10000) /usr/lib/libosmo-pfcp.a
[ 90s] This archive does not contain a non-empty .text section. The archive was not
[ 90s] created with -ffat-lto-objects option.
[ 90s]
[ 90s] ---------------- Badness 20227 exceeds threshold 999, aborting. ----------------
[ 90s] Check time report (>1% & >0.1s):
[ 90s] Check Duration (in s) Fraction (in %) Checked files
[ 90s] BinariesCheck 0.1 30.1 4
[ 90s] TOTAL 0.4 100.0 26
[ 90s]
[ 90s] 5 packages and 0 specfiles checked; 11 errors, 3 warnings, 20227 badness; has taken 0.4 s
[ 90s]
[ 90s] ### VM INTERACTION START ###
[ 90s] [ 80.363915][ T1] sysrq: Power Off
[ 90s] [ 80.367702][ T18] reboot: Power down
[ 90s] ### VM INTERACTION END ###
[ 90s]
[ 90s] lamb59 failed "build libosmo-pfcp.spec" at Sun Aug 21 18:02:12 UTC 2022.
[ 90s]
--
Configure notifications at https://build.opensuse.org/my/subscriptions
openSUSE Build Service (https://build.opensuse.org/)
Visit https://build.opensuse.org/package/live_build_log/network:osmocom:nightly/o…
Package network:osmocom:nightly/osmo-upf failed to build in openSUSE_Tumbleweed/i586
Check out the package for editing:
osc checkout network:osmocom:nightly osmo-upf
Last lines of build log:
[ 29s] checking whether to build static libraries... yes
[ 29s] checking for pkg-config... /usr/bin/pkg-config
[ 29s] checking for i586-suse-linux-gnu-pkg-config... /usr/bin/i586-suse-linux-gnu-pkg-config
[ 29s] checking pkg-config is at least version 0.20... yes
[ 29s] checking for LIBOSMOCORE... yes
[ 29s] checking for LIBOSMOVTY... yes
[ 29s] checking for LIBOSMOCTRL... yes
[ 29s] checking for LIBOSMOGTLV... no
[ 29s] configure: error: Package requirements (libosmo-gtlv >= 0.1.0) were not met:
[ 29s]
[ 29s] Package 'libosmo-gtlv', required by 'virtual:world', not found
[ 29s]
[ 29s] Consider adjusting the PKG_CONFIG_PATH environment variable if you
[ 29s] installed software in a non-standard prefix.
[ 29s]
[ 29s] Alternatively, you may set the environment variables LIBOSMOGTLV_CFLAGS
[ 29s] and LIBOSMOGTLV_LIBS to avoid the need to call pkg-config.
[ 29s] See the pkg-config man page for more details.
[ 29s] error: Bad exit status from /var/tmp/rpm-tmp.ocF7i6 (%build)
[ 29s]
[ 29s] RPM build errors:
[ 29s] Bad exit status from /var/tmp/rpm-tmp.ocF7i6 (%build)
[ 29s] ### VM INTERACTION START ###
[ 29s] [ 24.225369][ T1] sysrq: Power Off
[ 29s] [ 24.229217][ T18] reboot: Power down
[ 29s] ### VM INTERACTION END ###
[ 29s]
[ 29s] sheep84 failed "build osmo-upf.spec" at Sun Aug 21 18:02:18 UTC 2022.
[ 29s]
--
Configure notifications at https://build.opensuse.org/my/subscriptions
openSUSE Build Service (https://build.opensuse.org/)