lists.osmocom.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

gerrit-log

Thread Start a new thread
Download
Threads by month
  • ----- 2026 -----
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
gerrit-log@lists.osmocom.org

September 2026

  • 1 participants
  • 1894 discussions
[XS] Change in osmo-sgsn[master]: gtphub: add LIBCARES_CFLAGS to AM_CFLAGS
by Andrei G 08 Sep '26

08 Sep '26
Andrei G has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/43586?usp=email ) Change subject: gtphub: add LIBCARES_CFLAGS to AM_CFLAGS ...................................................................... gtphub: add LIBCARES_CFLAGS to AM_CFLAGS gtphub_ares.c and gtphub_vty.c reach <ares.h> through osmocom/sgsn/sgsn.h, and src/gtphub/Makefile.am already has $(LIBCARES_LIBS) on the link line, but AM_CFLAGS never got $(LIBCARES_CFLAGS). The compile therefore only works where c-ares headers sit in a default include directory. With c-ares from Homebrew on macOS ARM64 the header is in /opt/homebrew/include and the build stops: fatal error: 'ares.h' file not found Every other directory in the tree that uses c-ares already passes the flag: src/gprs, src/sgsn, and the tests under tests/sgsn, tests/gprs_routing_area, tests/slhc, tests/sndcp_xid, tests/v42bis and tests/xid. src/gtphub is the only one missing it. No change where the header was already found. Change-Id: Ibe4ddc357fb3ccf285e9a9f91217fc130bc3973c Signed-off-by: Andrei Gosman <andrei.gosman(a)gmail.com> --- M src/gtphub/Makefile.am 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/86/43586/1 diff --git a/src/gtphub/Makefile.am b/src/gtphub/Makefile.am index a242a05..6ea5ab2 100644 --- a/src/gtphub/Makefile.am +++ b/src/gtphub/Makefile.am @@ -12,6 +12,7 @@ $(LIBOSMOVTY_CFLAGS) \ $(LIBOSMOGSUPCLIENT_CFLAGS) \ $(COVERAGE_CFLAGS) \ + $(LIBCARES_CFLAGS) \ $(LIBGTP_CFLAGS) \ $(NULL) if BUILD_IU -- To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/43586?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-sgsn Gerrit-Branch: master Gerrit-Change-Id: Ibe4ddc357fb3ccf285e9a9f91217fc130bc3973c Gerrit-Change-Number: 43586 Gerrit-PatchSet: 1 Gerrit-Owner: Andrei G <andrei.gosman(a)gmail.com>
1 0
0 0
[S] Change in osmo-ggsn[master]: ggsn: use the runtime tun interface name
by Andrei G 08 Sep '26

08 Sep '26
Andrei G has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/43585?usp=email ) Change subject: ggsn: use the runtime tun interface name ...................................................................... ggsn: use the runtime tun interface name The IP pool of an APN excludes the addresses of its own tun interface. alloc_ippool_blacklist() finds them with netdev_ip_local_get(), which walks getifaddrs() and matches on the interface name, and it passes apn->tun.cfg.dev_name, the name from the configuration file. tun_ip_local_get() does the same with tun->devname when it looks up the IPv6 link-local address. The configured name is not always the name the interface ends up with. libosmocore already knows this: osmo_tundev keeps dev_name current, and tundev_dev_name_chg_cb() rewrites it on rename, logging "netdev changed name". Once that happens, or wherever the kernel picks the name itself, the lookup is done under a name getifaddrs() does not report, no addresses are found, and the blacklist is empty. An empty blacklist is not a harmless miss. The pool then hands out its first address, which is the tun's own, so the first PDP context gets the address of the GGSN side of the link and collides with it. Observed on Darwin, where the kernel always names a utun itself and a requested "tun4" comes back as "utun6": the first attached UE was given 10.45.0.1, the tun address. With the fix it gets 10.45.0.2. Take the name from the open osmo_tundev with osmo_tundev_get_dev_name(), which returns what the interface is called now, in both places. Fall back to the configured name when there is no tundev, which is the gtp kernel mode path. No change where the two names agree, which is the normal case on Linux. Change-Id: Ibd754ea3a5be4d5227488d0de571723b69e9d39d Signed-off-by: Andrei Gosman <andrei.gosman(a)gmail.com> --- M ggsn/ggsn.c M lib/tun.c 2 files changed, 18 insertions(+), 4 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/85/43585/1 diff --git a/ggsn/ggsn.c b/ggsn/ggsn.c index 3177713..79efae3 100644 --- a/ggsn/ggsn.c +++ b/ggsn/ggsn.c @@ -174,23 +174,31 @@ static int alloc_ippool_blacklist(struct apn_ctx *apn, struct in46_prefix **blacklist, bool ipv6) { - + const char *dev_name = apn->tun.cfg.dev_name; int flags, len, len2, i; *blacklist = NULL; + /* The kernel may give the interface another name than the one that + * was configured (a Darwin utun: "tun4" requested, "utun6" assigned). + * getifaddrs() lists the addresses under the real name, so ask the + * open tun device for it; otherwise the blacklist stays empty and the + * pool hands the tun's own address to the first PDP context. */ + if (apn->tun.tun && apn->tun.tun->tundev.tundev) + dev_name = osmo_tundev_get_dev_name(apn->tun.tun->tundev.tundev); + if (ipv6) flags = IP_TYPE_IPv6_NONLINK; else flags = IP_TYPE_IPv4; while (1) { - len = netdev_ip_local_get(apn->tun.cfg.dev_name, NULL, 0, flags); + len = netdev_ip_local_get(dev_name, NULL, 0, flags); if (len < 1) return len; *blacklist = talloc_zero_size(apn, len * sizeof(struct in46_prefix)); - len2 = netdev_ip_local_get(apn->tun.cfg.dev_name, *blacklist, len, flags); + len2 = netdev_ip_local_get(dev_name, *blacklist, len, flags); if (len2 < 1) { talloc_free(*blacklist); *blacklist = NULL; diff --git a/lib/tun.c b/lib/tun.c index 60d9b5e..13a8b9d 100644 --- a/lib/tun.c +++ b/lib/tun.c @@ -279,5 +279,11 @@ */ int tun_ip_local_get(const struct tun_t *tun, struct in46_prefix *prefix_list, size_t prefix_size, int flags) { - return netdev_ip_local_get(tun->devname, prefix_list, prefix_size, flags); + /* Ask the tun device for the name the kernel gave the interface; it can + * differ from the configured one (Darwin utun) and getifaddrs() only + * knows the real one. */ + const char *devname = tun->devname; + if (tun->tundev.tundev) + devname = osmo_tundev_get_dev_name(tun->tundev.tundev); + return netdev_ip_local_get(devname, prefix_list, prefix_size, flags); } -- To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/43585?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ggsn Gerrit-Branch: master Gerrit-Change-Id: Ibd754ea3a5be4d5227488d0de571723b69e9d39d Gerrit-Change-Number: 43585 Gerrit-PatchSet: 1 Gerrit-Owner: Andrei G <andrei.gosman(a)gmail.com>
1 0
0 0
[XS] Change in osmo-ggsn[master]: configure: search libresolv for res_9_init
by Andrei G 08 Sep '26

08 Sep '26
Andrei G has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/43584?usp=email ) Change subject: configure: search libresolv for res_9_init ...................................................................... configure: search libresolv for res_9_init sgsnemu points the resolver at the DNS server received in the PCO by writing to the resolver state from <resolv.h>. glibc keeps that state in libc, so nothing extra is needed on GNU/Linux. Darwin keeps it in libresolv and renames the interface to the BIND 9 symbols: /usr/include/resolv.h has "#define res_init res_9_init" and "#define __res_state __res_9_state". The link of sgsnemu then fails with Undefined symbols for architecture arm64: "___res_9_state" Add AC_SEARCH_LIBS([res_9_init], [resolv]) so -lresolv is picked up where the symbol lives there. res_9_init is deliberately the name searched for, rather than res_init: it exists only on the platforms that carry this renaming, so on glibc the search finds nothing, LIBS stays as it was and the link line does not change. Change-Id: I97787b051c712c5cfdb241cb7931a214d5a87630 Signed-off-by: Andrei Gosman <andrei.gosman(a)gmail.com> --- M configure.ac 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/84/43584/1 diff --git a/configure.ac b/configure.ac index cbb6b66..3283aae 100644 --- a/configure.ac +++ b/configure.ac @@ -152,6 +152,10 @@ # check for getopt in standard library adl_FUNC_GETOPT_LONG +# sgsnemu sets the resolver state (_res) from <resolv.h>. glibc keeps it in +# libc; Darwin exports it from libresolv under BIND 9 names (res_9_*). +AC_SEARCH_LIBS([res_9_init], [resolv]) + AM_INIT_AUTOMAKE([foreign]) PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 1.14.2) -- To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/43584?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ggsn Gerrit-Branch: master Gerrit-Change-Id: I97787b051c712c5cfdb241cb7931a214d5a87630 Gerrit-Change-Number: 43584 Gerrit-PatchSet: 1 Gerrit-Owner: Andrei G <andrei.gosman(a)gmail.com>
1 0
0 0
[XS] Change in osmo-ggsn[master]: lib/getopt1: declare _getopt_internal()
by Andrei G 08 Sep '26

08 Sep '26
Andrei G has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/43583?usp=email ) Change subject: lib/getopt1: declare _getopt_internal() ...................................................................... lib/getopt1: declare _getopt_internal() lib/getopt1.c and lib/getopt.c include "getopt.h", but the bundled header is named lib/gnugetopt.h and no lib/getopt.h exists. The include therefore falls through to the system getopt.h. That header declares getopt(), getopt_long() and getopt_long_only(), but not _getopt_internal(), which is private to the GNU implementation, so the two calls in getopt1.c have no declaration in scope. clang 16 and later reject an implicit declaration instead of warning: lib/getopt1.c:72:9: error: call to undeclared function '_getopt_internal'; ISO C99 and later do not support implicit function declarations GNU/Linux never gets there. On glibc, getopt1.c defines ELIDE_CODE and compiles to nothing, because the C library already provides the whole interface. The bundled copy is only really built where the C library is not glibc, which is where the declaration is missing. Declare _getopt_internal() in getopt1.c, matching the K&R definition in getopt.c. Fixing the include to name gnugetopt.h would be the other way, but that header is installed under a different name on purpose and the declaration is the smaller change. Reproduced with clang 17 (Xcode 16) on macOS ARM64; the file compiles clean with the declaration in place. Change-Id: Ia8bfe94dfd1ea1f4b270f1661305d6247dfc361b Signed-off-by: Andrei Gosman <andrei.gosman(a)gmail.com> --- M lib/getopt1.c 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/83/43583/1 diff --git a/lib/getopt1.c b/lib/getopt1.c index c4e4190..9215a27 100644 --- a/lib/getopt1.c +++ b/lib/getopt1.c @@ -52,6 +52,11 @@ #ifndef ELIDE_CODE +/* getopt.c defines this in K&R style; clang 16 and later refuse the + * implicit declaration that the non-glibc branch of gnugetopt.h leaves. */ +extern int _getopt_internal(int argc, char *const *argv, const char *shortopts, + const struct option *longopts, int *longind, int long_only); + /* This needs to come after some library #include to get __GNU_LIBRARY__ defined. */ #ifdef __GNU_LIBRARY__ -- To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/43583?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ggsn Gerrit-Branch: master Gerrit-Change-Id: Ia8bfe94dfd1ea1f4b270f1661305d6247dfc361b Gerrit-Change-Number: 43583 Gerrit-PatchSet: 1 Gerrit-Owner: Andrei G <andrei.gosman(a)gmail.com>
1 0
0 0
[XS] Change in osmo-ggsn[master]: gtp: define htobe64 and be64toh on Darwin
by Andrei G 08 Sep '26

08 Sep '26
Andrei G has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/43582?usp=email ) Change subject: gtp: define htobe64 and be64toh on Darwin ...................................................................... gtp: define htobe64 and be64toh on Darwin gtp/gtp.c converts the GTPv0 TID with htobe64() and be64toh(). glibc declares both in <endian.h>, FreeBSD in <sys/endian.h>, and the file already has a branch for the FreeBSD spelling. Darwin has neither header, so the build of libgtp stops with "call to undeclared function 'be64toh'". Add an __APPLE__ branch next to the existing FreeBSD one, mapping both names to the OSSwap macros from <libkern/OSByteOrder.h>, which is where Darwin keeps the fixed-width byte swaps. Nothing outside the new branch changes. Change-Id: I8a687ab94315878f1eaa8a4e68628084fd385c75 Signed-off-by: Andrei Gosman <andrei.gosman(a)gmail.com> --- M gtp/gtp.c 1 file changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/82/43582/1 diff --git a/gtp/gtp.c b/gtp/gtp.c index f378c17..f5adccd 100644 --- a/gtp/gtp.c +++ b/gtp/gtp.c @@ -30,6 +30,12 @@ #if defined(__FreeBSD__) #include <sys/endian.h> +#elif defined(__APPLE__) +/* Darwin has neither <endian.h> nor <sys/endian.h>; the 64 bit swaps + * used for the GTPv0 TID come from libkern. */ +#include <libkern/OSByteOrder.h> +#define htobe64(x) OSSwapHostToBigInt64(x) +#define be64toh(x) OSSwapBigToHostInt64(x) #endif #include "../config.h" -- To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/43582?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ggsn Gerrit-Branch: master Gerrit-Change-Id: I8a687ab94315878f1eaa8a4e68628084fd385c75 Gerrit-Change-Number: 43582 Gerrit-PatchSet: 1 Gerrit-Owner: Andrei G <andrei.gosman(a)gmail.com>
1 0
0 0
[XS] Change in osmo-trx[master]: build: pass FFTWF_CFLAGS to arch/common
by Andrei G 08 Sep '26

08 Sep '26
Andrei G has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-trx/+/43581?usp=email ) Change subject: build: pass FFTWF_CFLAGS to arch/common ...................................................................... build: pass FFTWF_CFLAGS to arch/common configure looks up fftw3f with pkg-config for the multi-ARFCN build and puts FFTWF_LIBS on the link line of the transceiver, but Transceiver52M/arch/common/Makefile.am, where fft.c lives, never uses FFTWF_CFLAGS. The compile of fft.c therefore only works where fftw3.h is in a default include directory. With fftw from Homebrew on macOS ARM64 the header is in /opt/homebrew/include, which clang does not search by default: arch/common/fft.c:26:10: fatal error: 'fftw3.h' file not found Add FFTWF_CFLAGS to AM_CFLAGS in that directory. No change where the header was already found. Change-Id: I3243ce00bd42a22ff0fbbdd5ff3d00c7441662d0 Signed-off-by: Andrei Gosman <andrei.gosman(a)gmail.com> --- M Transceiver52M/arch/common/Makefile.am 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/81/43581/1 diff --git a/Transceiver52M/arch/common/Makefile.am b/Transceiver52M/arch/common/Makefile.am index a27174d..c23d3b4 100644 --- a/Transceiver52M/arch/common/Makefile.am +++ b/Transceiver52M/arch/common/Makefile.am @@ -1,4 +1,4 @@ -AM_CFLAGS = -Wall -std=gnu99 +AM_CFLAGS = -Wall -std=gnu99 $(FFTWF_CFLAGS) noinst_LTLIBRARIES = libarch_common.la -- To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/43581?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-trx Gerrit-Branch: master Gerrit-Change-Id: I3243ce00bd42a22ff0fbbdd5ff3d00c7441662d0 Gerrit-Change-Number: 43581 Gerrit-PatchSet: 1 Gerrit-Owner: Andrei G <andrei.gosman(a)gmail.com>
1 0
0 0
[XS] Change in osmo-trx[master]: build: probe UHD version with PKG_CHECK_EXISTS
by Andrei G 08 Sep '26

08 Sep '26
Andrei G has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-trx/+/43580?usp=email ) Change subject: build: probe UHD version with PKG_CHECK_EXISTS ...................................................................... build: probe UHD version with PKG_CHECK_EXISTS configure.ac appends -lboost_thread for libuhd < 4.2, which needs it because of a bug in its own code. The probe is a second PKG_CHECK_MODULES(UHD, uhd < 004.002, ...) reusing the UHD variable prefix of the first one. That never asks pkg-config. PKG_CHECK_MODULES expands _PKG_CONFIG, which opens with if test -n "$$1"; then pkg_cv_[]$1="$$1" so once UHD_CFLAGS and UHD_LIBS are set by the earlier PKG_CHECK_MODULES(UHD, uhd >= 003.011), the second call takes those values as its answer, leaves pkg_failed at no, and runs the action-if-found branch whatever the installed version is. -lboost_thread is therefore always appended. On GNU/Linux that only adds a library that is usually present, so the bug is invisible. On macOS ARM64 with UHD 4.10 from Homebrew there is no such library on the link path and the build stops: ld: library 'boost_thread' not found Use PKG_CHECK_EXISTS, which asks pkg-config and sets no variables. The workaround then applies where it was meant to, on libuhd < 4.2. Change-Id: Icbd8af94f258128ea75c0268e0a240dc423ff69e Signed-off-by: Andrei Gosman <andrei.gosman(a)gmail.com> --- M configure.ac 1 file changed, 2 insertions(+), 3 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/80/43580/1 diff --git a/configure.ac b/configure.ac index a384495..0cd388d 100644 --- a/configure.ac +++ b/configure.ac @@ -195,9 +195,8 @@ # code and therefore requires linking against boost_thread. It's missing in # uhd.pc, so work around it here. # https://github.com/EttusResearch/uhd/commit/04a83b6e76beef970854da69ba882d7… - PKG_CHECK_MODULES(UHD, uhd < 004.002, - [LIBS="$LIBS -lboost_thread"], - [] + PKG_CHECK_EXISTS([uhd < 004.002], + [LIBS="$LIBS -lboost_thread"] ) ]) -- To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/43580?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-trx Gerrit-Branch: master Gerrit-Change-Id: Icbd8af94f258128ea75c0268e0a240dc423ff69e Gerrit-Change-Number: 43580 Gerrit-PatchSet: 1 Gerrit-Owner: Andrei G <andrei.gosman(a)gmail.com>
1 0
0 0
[XS] Change in osmo-trx[master]: build: require C++17 for the UHD 4.x headers
by Andrei G 08 Sep '26

08 Sep '26
Andrei G has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-trx/+/43579?usp=email ) Change subject: build: require C++17 for the UHD 4.x headers ...................................................................... build: require C++17 for the UHD 4.x headers configure asks for C++11 through AX_CXX_COMPILE_STDCXX_11. The public headers of UHD 4.10 use std::optional, std::is_same_v and std::is_arithmetic_v, none of which exist in C++11, so UHDDevice.cpp fails to compile against them: uhd/utils/cast.hpp:70:15: error: no template named 'is_same_v' in namespace 'std' uhd/rfnoc/actions.hpp:104:15: error: no template named 'optional' in namespace 'std' UHD 4.10 builds its own sources as C++20, and a consumer of its public headers needs at least C++17. Ask for C++17 with AX_CXX_COMPILE_STDCXX, the same macro already shipped in config/. The osmo-trx sources compile unchanged under the newer standard. Seen with UHD 4.10.0.0 from Homebrew on macOS ARM64. The version, not the platform, is what decides this: any distribution carrying UHD 4.10 reaches the same headers. Change-Id: If8d80f0708f3856f36d56e637ad8d57f3d3d1bad Signed-off-by: Andrei Gosman <andrei.gosman(a)gmail.com> --- M configure.ac 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/79/43579/1 diff --git a/configure.ac b/configure.ac index a384495..d7795b3 100644 --- a/configure.ac +++ b/configure.ac @@ -46,7 +46,7 @@ AM_PROG_AS AC_PROG_CC AC_PROG_CXX -AX_CXX_COMPILE_STDCXX_11 +AX_CXX_COMPILE_STDCXX([17], [ext], [mandatory]) AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_INSTALL -- To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/43579?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-trx Gerrit-Branch: master Gerrit-Change-Id: If8d80f0708f3856f36d56e637ad8d57f3d3d1bad Gerrit-Change-Number: 43579 Gerrit-PatchSet: 1 Gerrit-Owner: Andrei G <andrei.gosman(a)gmail.com>
1 0
0 0
[XS] Change in osmo-hlr[master]: gsupclient: add LIBOSMOGSM_LIBS to LIBADD
by Andrei G 08 Sep '26

08 Sep '26
Andrei G has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-hlr/+/43578?usp=email ) Change subject: gsupclient: add LIBOSMOGSM_LIBS to LIBADD ...................................................................... gsupclient: add LIBOSMOGSM_LIBS to LIBADD libosmo-gsup-client calls osmo_gsup_*, osmo_oap_client_* and osmo_imsi_str_valid(), all exported by libosmogsm, but libosmo_gsup_client_la_LIBADD in src/gsupclient/Makefile.am lists only talloc, libosmocore and libosmoabis. GNU ld accepts undefined symbols in a shared library and defers them to whatever the executable happens to pull in, so the missing dependency is invisible on Linux. Darwin's ld64 refuses at link time and the library fails to build with "symbol(s) not found for architecture arm64". The same Makefile.am already passes -no-undefined in LDFLAGS, which is the promise that the library resolves its own symbols. Adding LIBOSMOGSM_LIBS is what makes that promise true. With the fix, otool -L on the resulting libosmo-gsup-client.dylib lists libosmogsm among its dependencies, and the osmo_gsup_* references resolve through it. Change-Id: I413ff47aa1e8034ea86c61134d3d6784942b0e3b Signed-off-by: Andrei Gosman <andrei.gosman(a)gmail.com> --- M src/gsupclient/Makefile.am 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/78/43578/1 diff --git a/src/gsupclient/Makefile.am b/src/gsupclient/Makefile.am index 7611f6e..89533f4 100644 --- a/src/gsupclient/Makefile.am +++ b/src/gsupclient/Makefile.am @@ -16,7 +16,7 @@ $(NULL) libosmo_gsup_client_la_LDFLAGS = -version-info $(LIBVERSION) -no-undefined -libosmo_gsup_client_la_LIBADD = $(TALLOC_LIBS) $(LIBOSMOCORE_LIBS) $(LIBOSMOABIS_LIBS) +libosmo_gsup_client_la_LIBADD = $(TALLOC_LIBS) $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(LIBOSMOABIS_LIBS) noinst_PROGRAMS = gsup-test-client -- To view, visit https://gerrit.osmocom.org/c/osmo-hlr/+/43578?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-hlr Gerrit-Branch: master Gerrit-Change-Id: I413ff47aa1e8034ea86c61134d3d6784942b0e3b Gerrit-Change-Number: 43578 Gerrit-PatchSet: 1 Gerrit-Owner: Andrei G <andrei.gosman(a)gmail.com>
1 0
0 0
[XS] Change in osmo-mgw[master]: mgcp_client: include errno.h, not asm-generic
by Andrei G 08 Sep '26

08 Sep '26
Andrei G has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-mgw/+/43577?usp=email ) Change subject: mgcp_client: include errno.h, not asm-generic ...................................................................... mgcp_client: include errno.h, not asm-generic src/libosmo-mgcp-client/mgcp_client_pool.c includes <asm-generic/errno.h> for ECONNABORTED and EINVAL. That is a Linux kernel UAPI header. It exists on Linux distributions and nowhere else, so the build stops on Darwin: mgcp_client_pool.c:21:10: fatal error: 'asm-generic/errno.h' file not found Both values come from <errno.h> on every platform, and on Linux glibc's <errno.h> reaches the same UAPI definitions, so including the kernel header directly was never needed there either. No functional change on any platform. Change-Id: Ie3fc368c04c29aea824002b3bf9839e410e7f045 Signed-off-by: Andrei Gosman <andrei.gosman(a)gmail.com> --- M src/libosmo-mgcp-client/mgcp_client_pool.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/77/43577/1 diff --git a/src/libosmo-mgcp-client/mgcp_client_pool.c b/src/libosmo-mgcp-client/mgcp_client_pool.c index 61fb134..42d775e 100644 --- a/src/libosmo-mgcp-client/mgcp_client_pool.c +++ b/src/libosmo-mgcp-client/mgcp_client_pool.c @@ -18,7 +18,7 @@ * */ -#include <asm-generic/errno.h> +#include <errno.h> #include <osmocom/mgcp_client/mgcp_client.h> #include <osmocom/mgcp_client/mgcp_client_internal.h> #include <osmocom/mgcp_client/mgcp_client_pool_internal.h> -- To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/43577?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-mgw Gerrit-Branch: master Gerrit-Change-Id: Ie3fc368c04c29aea824002b3bf9839e410e7f045 Gerrit-Change-Number: 43577 Gerrit-PatchSet: 1 Gerrit-Owner: Andrei G <andrei.gosman(a)gmail.com>
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • ...
  • 190
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.