Hi,
I have created and attached a patch that enables linking with latomic library
as needed.
When ntirpc package is recompiled with this patch, the above-mentioned problem
is solved,
but after that, new problem occurs on ganesha.nfsd linking:
> /usr/bin/ld: libMainServices.a(client_mgr.c.o): undefined reference to symbol
> '__atomic_fetch_sub_8@@LIBATOMIC_1.0'
I will report separate bug for nfs-ganesha, linking with latomic library should
solve this issue as well.
Regards,
Radovan
--- ntirpc-1.4.3.orig/CMakeLists.txt
+++ ntirpc-1.4.3/CMakeLists.txt
@@ -33,7 +33,7 @@ else (USE_LIB64)
"Specify name of libdir inside install path")
endif (USE_LIB64)
-set(SYSTEM_LIBRARIES ${SYSTEM_LIBRARIES})
+set(SYSTEM_LIBRARIES ${SYSTEM_LIBRARIES} -Wl,--as-needed -latomic)
include(GetGitRevisionDescription)
get_git_head_revision(GIT_REFSPEC _GIT_HEAD_COMMIT)