Attention is currently required from: pespin.
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/libosmocore/+/41931?usp=email
to look at the new patch set (#3).
Change subject: socket_compat.h improvements to always have struct osmo_sockaddr available
......................................................................
socket_compat.h improvements to always have struct osmo_sockaddr available
Having a #if (!EMBEDDED) based on compiler defined variable is not a
good idea. Instead, add minimal sys/socket.h and netient/in.h to always
have the definition of struct osmo_sockaddr available.
Change-Id: I5b10e09770727c72812af15360ab3385b957509b
---
M configure.ac
M include/osmocom/core/Makefile.am
M include/osmocom/core/socket.h
M include/osmocom/core/socket_compat.h.tpl
4 files changed, 73 insertions(+), 15 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/31/41931/3
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/41931?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I5b10e09770727c72812af15360ab3385b957509b
Gerrit-Change-Number: 41931
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Attention is currently required from: pespin.
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/libosmocore/+/41931?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Verified-1 by Jenkins Builder
Change subject: socket_compat.h improvements to always have struct osmo_sockaddr available
......................................................................
socket_compat.h improvements to always have struct osmo_sockaddr available
Having a #if (!EMBEDDED) based on compiler defined variable is not a
good idea. Instead, add minimal sys/socket.h and netient/in.h to always
have the definition of struct osmo_sockaddr available.
Change-Id: I5b10e09770727c72812af15360ab3385b957509b
---
M configure.ac
M include/osmocom/core/Makefile.am
M include/osmocom/core/socket.h
M include/osmocom/core/socket_compat.h.tpl
4 files changed, 73 insertions(+), 15 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/31/41931/2
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/41931?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I5b10e09770727c72812af15360ab3385b957509b
Gerrit-Change-Number: 41931
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/41930?usp=email )
Change subject: configure.ac: Add arpa/inet.h to AC_CHECK_HEADERS
......................................................................
configure.ac: Add arpa/inet.h to AC_CHECK_HEADERS
We use arpa/inet.h in several places in the code, so it's good to look
up for presence even if it's only to debug toolchain compatibility.
Change-Id: Ib2d1fb3efb1dcb429b511698691249c257e00720
---
M configure.ac
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/30/41930/1
diff --git a/configure.ac b/configure.ac
index 4a6a474..c30876c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -74,7 +74,7 @@
dnl checks for header files
AC_HEADER_STDC
-AC_CHECK_HEADERS(execinfo.h poll.h sys/select.h sys/socket.h sys/signalfd.h sys/eventfd.h sys/timerfd.h ctype.h netinet/tcp.h netinet/in.h)
+AC_CHECK_HEADERS(arpa/inet.h execinfo.h poll.h sys/select.h sys/socket.h sys/signalfd.h sys/eventfd.h sys/timerfd.h ctype.h netinet/tcp.h netinet/in.h)
AC_CHECK_DECL(HAVE_SYS_SOCKET_H, AC_SUBST(HAVE_SYS_SOCKET_H, 1), AC_SUBST(HAVE_SYS_SOCKET_H, 0))
# for src/conv.c
AC_FUNC_ALLOCA
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/41930?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ib2d1fb3efb1dcb429b511698691249c257e00720
Gerrit-Change-Number: 41930
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/41929?usp=email )
Change subject: socket.h: Include netinet/in.h instead of arpa/inet.h
......................................................................
socket.h: Include netinet/in.h instead of arpa/inet.h
In socket.h we are mainly interested in netinet/int.h, since that's the
one defining INET_ADDRSTRLEN, struct sockaddr_in, struct in_addr, ec.
Header arpa/inet.h usually defines several functions which use those,
like htonl(), inet_ntop(), etc.
See POSIX:
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/arpa_inet.h.html#…https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html
Change-Id: I03919c4adc962bbcfabc9030c6f12c0e10ff060c
---
M include/osmocom/core/socket.h
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/29/41929/1
diff --git a/include/osmocom/core/socket.h b/include/osmocom/core/socket.h
index e9979f5..845efd7 100644
--- a/include/osmocom/core/socket.h
+++ b/include/osmocom/core/socket.h
@@ -12,7 +12,7 @@
#include <stdbool.h>
#include <stddef.h>
-#include <arpa/inet.h>
+#include <netinet/in.h>
#include <osmocom/core/defs.h>
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/41929?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I03919c4adc962bbcfabc9030c6f12c0e10ff060c
Gerrit-Change-Number: 41929
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/libosmocore/+/41928?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Verified+1 by Jenkins Builder
Change subject: osmo_io.h: add forward declaration of struct osmo_sockaddr
......................................................................
osmo_io.h: add forward declaration of struct osmo_sockaddr
During amr-none-eabi build (EMBEDDED defined), including
<osmocom/core/socket.h> includes a mostly empty file, since that file is
guarded by "#if (!EMBEDDED)" because sys/socket.h is not available
there. As a result, if somebody includes osmo_io.h when EMBEDDED is set,
there will be no declaration of struct osmo_sockaddr used in declared
APIs. Add a forward declaration to fix it.
Furthermore, the EMBEDDED check in osmocom/core/socket.h is actually
broken because it's in a header file which cannot include "config.h", so
also avoid including osocom/core/socket.h altogether in order to avoid
it in turn including arpa/inet.h which is not available in the
arm-none-eabi toolchain.
Change-Id: Id7db4b081752a1034b95a92b4850484a26ec11c6
---
M include/osmocom/core/osmo_io.h
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/28/41928/2
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/41928?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Id7db4b081752a1034b95a92b4850484a26ec11c6
Gerrit-Change-Number: 41928
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/41928?usp=email )
Change subject: osmo_io.h: add forward declaration of struct osmo_sockaddr
......................................................................
osmo_io.h: add forward declaration of struct osmo_sockaddr
During amr-none-eabi build (EMBEDDED defined), including
<osmocom/core/socket.h> includes a mostly empty file, since that file is
guarded by "#if (!EMBEDDED)" because sys/socket.h is not available
there. As a result, if somebody includes osmo_io.h when EMBEDDED is set,
there will be no declaration of struct osmo_sockaddr used in declared
APIs. Add a forward declaration to fix it.
Change-Id: Id7db4b081752a1034b95a92b4850484a26ec11c6
---
M include/osmocom/core/osmo_io.h
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/28/41928/1
diff --git a/include/osmocom/core/osmo_io.h b/include/osmocom/core/osmo_io.h
index 525c23c..b5e7ea8 100644
--- a/include/osmocom/core/osmo_io.h
+++ b/include/osmocom/core/osmo_io.h
@@ -14,6 +14,10 @@
* We only really need a forward declaration here: */
struct msghdr;
+/* struct osmo_sockaddr is defined in osmocom/core/socket.h, which in turn relies on sys/socket.h to define it,
+ * which may not be available. We only really need a forward declaration here: */
+struct osmo_sockaddr;
+
/*! \defgroup osmo_io Osmocom I/O interface
* @{
*
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/41928?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Id7db4b081752a1034b95a92b4850484a26ec11c6
Gerrit-Change-Number: 41928
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Attention is currently required from: fixeria, laforge, osmith.
pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/libosmocore/+/41894?usp=email )
Change subject: logging: Move log target file to its own file
......................................................................
Patch Set 4:
(1 comment)
Patchset:
PS4:
I moved this patch before the one making struct log_target private, since it's actually not dependent on it and this way it can already be merged.
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/41894?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I8e32e31c75b66ff0649d92c2f469f8895689fbad
Gerrit-Change-Number: 41894
Gerrit-PatchSet: 4
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 23 Jan 2026 15:23:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No