Make hwloc error with pbspro-14.0.1

/root/pbspro/src/resmom/mom_main.c:10623: undefined reference to hwloc_free_xmlbuffer' /root/pbspro/src/resmom/mom_main.c:10603: undefined reference tohwloc_free_xmlbuffer’
collect2: ld returned 1 exit status
make[2]: *** [pbs_mom] Error 1
make[2]: Leaving directory /root/pbspro/src/resmom' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/root/pbspro/src’
make: *** [all-recursive] Error 1
[root@pbspro-node01 local]# rpm -qa |grep hwloc
hwloc-1.5-2.el6_5.x86_64
hwloc-devel-1.5-2.el6_5.x86_64

The systems I typically use for testing utilize hwloc-devel 1.7 and 1.11. Which OS are you running, and what version?

[root@pbspro-node01 ~]# cat /etc/redhat-release
CentOS release 6.6 (Final)
[root@pbspro-node01 ~]# rpm -qa |grep kernel
kernel-headers-2.6.32-504.el6.x86_64
kernel-firmware-2.6.32-504.el6.noarch
dracut-kernel-004-356.el6.noarch
kernel-2.6.32-504.el6.x86_64
Which OS are you running?

The version of hwloc you are using is labeled as “stone age” according to this page: https://www.open-mpi.org/software/hwloc/ancient/

You could try installing a more modern version in /usr/local and specify the --with-hwloc parameter on your PBS Pro configure line. You may download the current stable release here: https://www.open-mpi.org/software/hwloc/v1.11/

You might also consider upgrading to a more recent version of CentOS.

update CENTOS6.7
[root@pbspro-centos6 SPECS]# cat /etc/redhat-release
CentOS release 6.7 (Final)
[root@pbspro-centos6 SPECS]# rpm -qa |grep kernel
kernel-firmware-2.6.32-573.el6.noarch
kernel-headers-2.6.32-573.el6.x86_64
dracut-kernel-004-388.el6.noarch
kernel-2.6.32-573.el6.x86_64
[root@pbspro-centos6 SPECS]# rpm -qa |grep hwloc
hwloc-1.5-3.el6_5.x86_64
hwloc-devel-1.5-3.el6_5.x86_64
[root@pbspro-centos6 SPECS]# rpmbuild -ba pbspro.spec
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
Requires(interp): /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires(postun): /bin/sh
Requires: /bin/bash /bin/false /bin/sh /usr/bin/env /usr/bin/perl libX11.so.6()(64bit) libXft.so.2()(64bit) libXrender.so.1()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.2)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libc.so.6(GLIBC_2.9)(64bit) libcrypt.so.1()(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libedit.so.0()(64bit) libfontconfig.so.1()(64bit) libfreetype.so.6()(64bit) libm.so.6()(64bit) libncurses.so.5()(64bit) libpbs.so.0()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libpython2.6.so.1.0()(64bit) libtcl8.5.so()(64bit) libtk8.5.so()(64bit) libutil.so.1()(64bit) perl(Env) perl(Switch) perl(strict) rtld(GNU_HASH)
Conflicts: pbspro-server pbspro-execution pbspro-client-ohpc pbspro-execution-ohpc pbspro-server-ohpc pbs pbs-mom pbs-cmds
Processing files: pbspro-debuginfo-14.0.1-0.x86_64
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/pbspro-14.0.1-0.x86_64
error: Installed (but unpackaged) file(s) found:
/usr/lib/systemd/system/pbs.service

RPM build errors:
File listed twice: /opt/pbs/sbin/pbs_iff
File listed twice: /opt/pbs/sbin/pbs_rcp
File listed twice: /opt/pbs/sbin/pbs_iff
File listed twice: /opt/pbs/sbin/pbs_rcp
File listed twice: /opt/pbs/sbin/pbs_iff
Installed (but unpackaged) file(s) found:
/usr/lib/systemd/system/pbs.service

Please note that CentOS 6.7 is deprecated: http://mirror.atlantic.net/centos/6.7/readme

I have recently built the master branch under CentOS 7.2 without encountering any problems. I highly recommend you upgrade to a more recent version of CentOS. If you still encounter problems, we will endeavor to fix them.