From 3de1ffe9299aac9380d30219789a4ca5d4fed97e Mon Sep 17 00:00:00 2001 From: Ben Huntsman Date: Thu, 12 Dec 2024 18:58:32 -0800 Subject: [PATCH] rx: Add rxs_Ref et al to liboafs_rx.la.sym On Linux and possibly other platforms, if configure is run with the --disable-static option, anything linking against liboafs_rxkad.la will fail: gcc [...] -o afsd [...] .../src/auth/liboafs_auth.la [...] -lafshcrypto -lrokenafs -lpthread -lresolv /home/build/openafs/src/rxkad/.libs/liboafs_rxkad.so: undefined reference to `rxs_Ref' /home/build/openafs/src/rxkad/.libs/liboafs_rxkad.so: undefined reference to `rxs_SetRefs' /home/build/openafs/src/rxkad/.libs/liboafs_rxkad.so: undefined reference to `rxs_DecRef' collect2: error: ld returned 1 exit status make: *** [afsd] Error 1 The references to these symbols were added in commit 9d7b94493c (rx: Use atomics for rx_securityClass refcounts), but that commit didn't add them to the liboafs_rx.la.sym symbol file. Add them to allow the build to complete with --disable-static. Change-Id: I14b348d1be6bf6e8f512d1cac6a70a58fd6f39a1 Reviewed-on: https://gerrit.openafs.org/15988 Tested-by: BuildBot Reviewed-by: Cheyenne Wills Reviewed-by: Michael Meffie Reviewed-by: Andrew Deason --- src/rx/liboafs_rx.la.sym | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rx/liboafs_rx.la.sym b/src/rx/liboafs_rx.la.sym index 7c8204432c..6a5db7e6d3 100644 --- a/src/rx/liboafs_rx.la.sym +++ b/src/rx/liboafs_rx.la.sym @@ -155,7 +155,10 @@ rxi_syscallp rxi_tracename rxnull_NewClientSecurityObject rxnull_NewServerSecurityObject +rxs_DecRef +rxs_Ref rxs_Release +rxs_SetRefs xdr_afsUUID xdr_afs_int32 xdr_afs_int64