Nenad Vukicevic <nenad@intrepid.com>: I was able to build Slurm RPMs on Fedora 23 by following suggestion in Adam Huffman's post - https://groups.google.com/forum/#!topic/slurm-devel/HiltSkNiGJU. However, slurmd fails to run with the following error: ---- Feb 09 18:55:34 dev slurmd[6700]: error: plugin_load_from_file: dlopen(/usr/lib64/slurm/select_cons_res.so): /usr/lib64/slurm/select_cons_res.so: undefined symbol: powercap_get_cluster_current_cap Feb 09 18:55:34 dev slurmd[6700]: error: Couldn't load specified plugin name for select/cons_res: Dlopen of plugin file failed Feb 09 18:55:34 dev slurmd[6700]: fatal: Can't find plugin for select/cons_res ---- Our slurm uses scheduling type cons_res: SelectType=select/cons_res The powercap_get_cluster_current_cap() is defined in slurmctld/powercapping.c which is not used when slurmd is being linked. Any idea what is going on? I am using the latest 15.08.7.
There are several functions referenced in the select/cons_res plugin that only exist in the slurmctld, so there will be linking issues in some environments. For example, these functions exist only in slurmctld: if ((powercap_get_cluster_current_cap() != 0) && (which_power_layout() == 2)) { Note this logic was added for the Bull-power management and is completely separate from the power plugin work for Cray systems.
I find it strange it is trying to resolve these on load, it should be doing a lazy load from my understanding right?
(In reply to Danny Auble from comment #2) > I find it strange it is trying to resolve these on load, it should be doing > a lazy load from my understanding right? Yes (see src/common/plugin.c): plug = dlopen(fq_path, RTLD_LAZY); Perhaps Fedora 23 doesn't handle "lazy" very well.
https://fedoraproject.org/wiki/Changes/Harden_All_Packages "-z now is always passed to the linker." So... they're resolving everything at link time. Clearing "-z now" out of LDFLAGS looks like the simplest path forward, short of reworking slurm's module loading system.
Yeah, it could be fairly tough otherwise to get everything working correctly.
Marking as duplicate of 2443 as that one has a patch that should address the -z,now problem. *** This ticket has been marked as a duplicate of ticket 2443 ***