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

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
Which OS are you running?

The version of hwloc you are using is labeled as “stone age” according to this page:

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:

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
[root@pbspro-centos6 SPECS]# rpm -qa |grep hwloc
[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 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:

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:

Please note that CentOS 6.7 is deprecated:

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.