[slurm-users] Link error

Jason Bacon bacon4000 at gmail.com
Thu Jan 4 14:21:28 MST 2018


I'm updating the pkgsrc package to 17.11.1.  I've got it building on 
CentOS 6 and 7, but hitting an error when building on NetBSD.

Wondering if anyone has any suggestions about where to look for the root 
cause of the problem.  It appears that when configuring on NetBSD, it 
fails to add libslumfull to the link.

Thanks,

     JB

libtool: link: gcc -O2 -D_FORTIFY_SOURCE=2 
-I/usr/pkgsrc/uwm-pkgsrc-wip/slurm-de
vel/work/.buildlink/include -I/usr/include/krb5 
-I/usr/pkgsrc/uwm-pkgsrc-wip/slu
rm-devel/work/.buildlink/include/mysql -pthread -ggdb3 -Wall -g -O1 
-fno-strict-
aliasing -Wl,-rpath -Wl,/usr/pkg/lib -o sh5util sh5util.o 
-Wl,--export-dynamic
-L/usr/pkgsrc/uwm-pkgsrc-wip/slurm-devel/work/.buildlink/lib 
../.libs/libhdf5_ap
i.a -llz4 -lhdf5_hl -lhdf5 -lz -lm -pthread 
-Wl,-rpath,/usr/pkgsrc/uwm-pkgsrc-wi
p/slurm-devel/work/.buildlink/lib 
-Wl,-rpath,/usr/pkgsrc/uwm-pkgsrc-wip/slurm-de
vel/work/.buildlink/lib
sh5util.o: In function `_str_cmp':
/usr/pkgsrc/uwm-pkgsrc-wip/slurm-devel/work/slurm-17.11.1/src/plugins/acct_gathe 

r_profile/hdf5/sh5util/sh5util.c:287: undefined reference to `xstrcmp'
sh5util.o: In function `_destroy_sh5util_file':
/usr/pkgsrc/uwm-pkgsrc-wip/slurm-devel/work/slurm-17.11.1/src/plugins/acct_gathe 

r_profile/hdf5/sh5util/sh5util.c:237: undefined reference to `slurm_xfree'
/usr/pkgsrc/uwm-pkgsrc-wip/slurm-devel/work/slurm-17.11.1/src/plugins/acct_gathe 

r_profile/hdf5/sh5util/sh5util.c:238: undefined reference to `slurm_xfree'
/usr/pkgsrc/uwm-pkgsrc-wip/slurm-devel/work/slurm-17.11.1/src/plugins/acct_gathe 

r_profile/hdf5/sh5util/sh5util.c:239: undefined reference to `slurm_xfree'

The same link command generated on CentOS, with -lslurmfull

/bin/sh ../../../../../libtool  --tag=CC   --mode=link cc  -O2 
-I/home/bacon/Pkgsrc/pkg-2017-12-28/include -I/usr/include 
-I/home/bacon/Pkgsrc/pkg-2017-12-28/include/ncurses 
-I/home/bacon/Pkgsrc/pkg-2017-12-28/include/mysql  -pthread -ggdb3 -Wall 
-g -O1 -fno-strict-aliasing -export-dynamic -L/usr/lib64 
-L/home/bacon/Pkgsrc/pkg-2017-12-28/gcc5/lib64 
-L/home/bacon/Pkgsrc/pkg-2017-12-28/gcc5/lib/gcc/x86_64-redhat-linux/5.5.0 
-L/home/bacon/Pkgsrc/pkg-2017-12-28/lib  -lm -ldl -lz  -lhdf5 -lhdf5_hl 
-llz4 
-L/home/bacon/Pkgsrc/pkg-2017-12-28/gcc5/lib/gcc/x86_64-redhat-linux/5.5.0 
-Wl,-R/home/bacon/Pkgsrc/pkg-2017-12-28/gcc5/lib/gcc/x86_64-redhat-linux/5.5.0 
-L/home/bacon/Pkgsrc/pkg-2017-12-28/gcc5/lib64 
-Wl,-R/home/bacon/Pkgsrc/pkg-2017-12-28/gcc5/lib64 
-L/home/bacon/Pkgsrc/pkg-2017-12-28/lib 
-Wl,-R/home/bacon/Pkgsrc/pkg-2017-12-28/lib -L/usr/lib64 
-Wl,-R/usr/lib64  -o sh5util sh5util.o 
-Wl,-rpath=/home/bacon/Pkgsrc/pkg-2017-12-28/lib/slurm 
-L../../../../../src/api/.libs -lslurmfull -ldl ../libhdf5_api.la 
-lpthread -lrt

-- 
Earth is a beta site.




More information about the slurm-users mailing list