Attention is currently required from: andrei.gosman@gmail.com, pespin.

andrei.gosman@gmail.com uploaded patch set #2 to this change.

View Change

The following approvals got outdated and were removed: Code-Review-1 by pespin, Verified-1 by Jenkins Builder

hnbap, rua, sabp: link against libosmo-ranap

libosmo-hnbap, libosmo-rua and libosmo-sabp call asn1_xer_print() and
talloc_asn1_ctx, both defined in iu_helpers.c and shipped in
libosmo-ranap, but none of the three declares that dependency.

GNU ld leaves such references unresolved in a shared object and lets
the executable supply them later, even with -no-undefined, so nothing
shows on GNU/Linux. Darwin's ld64 refuses:

Undefined symbols for architecture arm64: _asn1_xer_print,
_talloc_asn1_ctx

while linking libosmo-rua.la, libosmo-hnbap.la and libosmo-sabp.la.

Add libosmo-ranap.la to the LIBADD of each library and "Requires:
libosmo-ranap" to the three .pc.in files, so both the library itself
and a consumer that links only one of them record the dependency.

There is no cycle: nm on the built libosmo-ranap shows it defines both
symbols and references nothing from hnbap, rua or sabp. On GNU/Linux
the only change is an explicit DT_NEEDED entry.

The lib_LTLIBRARIES list places libosmo-ranap first, so libtool
installs the shared dependency before its consumers. The three
-dev packages in debian/control gain libosmo-ranap-dev in Depends
to match the .pc Requires.

Change-Id: Ic936829788536bc1b1973a5ed3082a82cbf90d04
---
M debian/control
M libosmo-hnbap.pc.in
M libosmo-rua.pc.in
M libosmo-sabp.pc.in
M src/Makefile.am
5 files changed, 14 insertions(+), 7 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/89/43589/2

To view, visit change 43589. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
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-Attention: andrei.gosman@gmail.com <andrei.gosman@gmail.com>