Re: Unable to build libmfu properly
Bohning, Dalton
Hello,
It looks like most of the libraries specified by “-luuid -ldaos -ldfs -ldaos_common -lgurt -lpthread” are not linked. Something to keep in mind is that “CFLAGS=… LDFLAGS=… cmake…” should be executed as a single command so CFLAGS and LDFLAGS is propagated to the cmake environment. You can check this by running: $ grep -B 1 "CMAKE_EXE_LINKER_FLAGS:" ${MY_MFU_BUILD_PATH}/CMakeCache.txt grep -B 2 "CMAKE_SHARED_LINKER_FLAGS:" CMakeCache.txt //Flags used by the linker during the creation of shared libraries // during all build types. CMAKE_SHARED_LINKER_FLAGS:STRING=-L/home/dbohning/daos/install/lib64/ -luuid -ldaos -ldfs -ldaos_common -lgurt -lpthread
Where CMAKE_SHARED_LINKER_FLAGS should be set to the LDFLAGS from the build command.
~Dalton Bohning
From: daos@daos.groups.io <daos@daos.groups.io> On Behalf Of
netsurfed
Hi,
|
|