Attention is currently required from: pespin. andrei.gosman@gmail.com has posted comments on this change by andrei.gosman@gmail.com. ( https://gerrit.osmocom.org/c/osmo-iuh/+/43589?usp=email ) Change subject: hnbap, rua, sabp: link against libosmo-ranap ...................................................................... Patch Set 2: Patchset 2 fixes the Verified-1, which turned out not to be a dependency cycle at all. lib_LTLIBRARIES listed hnbap before ranap, so libtool installed a consumer before the library it relinks against, and the install step failed. Reordering that list, plus adding libosmo-ranap-dev to the Depends of the three -dev packages to match the new .pc Requires, gets Verified+1 on all four jobs. On your point, which deserves a better answer than the patch gives it. What is shared here is not functions but three global variables, and two of them are not osmo-iuh's. asn_internal.h in libasn1c declares "extern void *talloc_asn1_ctx" and "extern int asn_debug", and its CALLOC, MALLOC and REALLOC macros are written in terms of talloc_asn1_ctx. libasn1c does not define it; nm on the built library shows the symbol undefined there too. So every user of those macros has to supply it, and in this tree iu_helpers.c does, inside libosmo-ranap. That is the actual reason hnbap, rua and sabp reach into ranap: they use libasn1c's allocation macros through generated code. Only asn1_xer_print is ours, emitted by asn1tostruct.py. Giving each library its own copy would therefore mean four talloc contexts where the macros assume one, while iu_client.c initialises exactly one of them, and the "asn1 xer-print" VTY command would stop affecting the other three decoders. Your preference for no cross-protocol dependency is legitimate. The LIBADD does not create that coupling, it only makes an existing one visible. Three ways forward: (i) what patchset 2 does, keeping one definition and declaring the edge; (ii) define talloc_asn1_ctx and asn_debug in libasn1c, where the header and the macros already live. The cross-protocol dependency then disappears without splitting shared state. I can prepare that as a separate change; (iii) per-library copies, accepting the semantics above, after auditing the call sites that rely on a single context. Which would you prefer? -- To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/43589?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-iuh Gerrit-Branch: master Gerrit-Change-Id: Ic936829788536bc1b1973a5ed3082a82cbf90d04 Gerrit-Change-Number: 43589 Gerrit-PatchSet: 2 Gerrit-Owner: andrei.gosman@gmail.com <andrei.gosman@gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin@sysmocom.de> Gerrit-Attention: pespin <pespin@sysmocom.de> Gerrit-Comment-Date: Tue, 22 Sep 2026 07:31:02 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: No