phantez/pyslurm — Issue #1: symbol lookup error
Author: pjodrr
Created: 2011-10-20 14:25:40+00:00
State: open

Hello,

When I run:

python -c "import pyslurm; a, b = pyslurm.slurm_load_jobs('',2); print a"

I get:

python: symbol lookup error: /usr/lib/slurm/select_cons_res.so: undefined symbol: slurm_get_debug_flags

and indeed that symbol is undefined:

# nm --dynamic /usr/lib/slurm/select_cons_res.so|grep slurm_get_debug_flags
U slurm_get_debug_flags

but included in /usr/lib/libslurm.so.22:

# nm --dynamic /usr/lib/libslurm.so.22|grep slurm_get_debug_flags
00000000000553b0 T slurm_get_debug_flags

which is interesting since pyslrum.so depends on libslurm:

# ldd /usr/lib/python2.6/dist-packages/pyslurm/pyslurm.so
...
libslurm.so.22 => /usr/lib/libslurm.so.22 (0x00007f9fb37e9000)
...

I don't know why it cannot find the symbol.
If I do:

# LD_PRELOAD=/usr/lib/libslurm.so.22 python -c "import pyslurm; a, b = pyslurm.slurm_load_jobs('',2); print a"

then it works. Can you solve the mystery?

Thanks,

Peter