Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: Re: [hwloc-devel] hwloc trunk nightly 1.3a1r3511 fails to build on CentOS 5.6 & RHEL 5.6
From: Christopher Samuel (samuel_at_[hidden])
Date: 2011-06-13 05:11:58


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/06/11 15:45, Christopher Samuel wrote:

> I *suspect* it's being pulled in by libpci - here:
>
> $ nm /usr/lib/libpci.a | grep res_query
> U __res_query

OK, looks like libpci may well be the culprit. Linking
with the default libtool command line includes the symbol:

$ /bin/sh ../libtool --tag=CC --mode=link gcc -g -fvisibility=hidden
 -I/usr/include/libxml2 -fvisibility=hidden -I/usr/include/libxml2
 -I/tmp/HWLOC/hwloc-1.3a1r3511/include -no-undefined -version-number
0:0:0 -lxml2 -lz -lm -lpci -o libhwloc.la -rpath /usr/local/lib
topology.lo traversal.lo distances.lo topology-synthetic.lo bind.lo
cpuset.lo misc.lo topology-xml.lo topology-libpci.lo topology-linux.lo
      topology-x86.lo
libtool: link: rm -fr .libs/libhwloc.la .libs/libhwloc.lai
.libs/libhwloc.so .libs/libhwloc.so.0 .libs/libhwloc.so.0.0.0
libtool: link: gcc -g -shared .libs/topology.o .libs/traversal.o
.libs/distances.o .libs/topology-synthetic.o .libs/bind.o .libs/cpuset.o
.libs/misc.o .libs/topology-xml.o .libs/topology-libpci.o
.libs/topology-linux.o .libs/topology-x86.o -lxml2 -lz -lm -lpci
- -Wl,-soname -Wl,libhwloc.so.0 -o .libs/libhwloc.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libhwloc.so.0" && ln -s
"libhwloc.so.0.0.0" "libhwloc.so.0")
libtool: link: (cd ".libs" && rm -f "libhwloc.so" && ln -s
"libhwloc.so.0.0.0" "libhwloc.so")
libtool: link: ( cd ".libs" && rm -f "libhwloc.la" && ln -s
"../libhwloc.la" "libhwloc.la" )

$ grep -R __res_query .
Binary file ./.libs/libhwloc.so matches
Binary file ./.libs/libhwloc.so.0.0.0 matches
Binary file ./.libs/libhwloc.so.0 matches

Removing the -lpci results in a library which no longer
references it..

$ /bin/sh ../libtool --tag=CC --mode=link gcc -g -fvisibility=hidden
 -I/usr/include/libxml2 -fvisibility=hidden -I/usr/include/libxml2
 -I/tmp/HWLOC/hwloc-1.3a1r3511/include -no-undefined -version-number
0:0:0 -lxml2 -lz -lm -o libhwloc.la -rpath /usr/local/lib topology.lo
traversal.lo distances.lo topology-synthetic.lo bind.lo cpuset.lo
misc.lo topology-xml.lo topology-libpci.lo topology-linux.lo
topology-x86.lo
libtool: link: rm -fr .libs/libhwloc.la .libs/libhwloc.lai
.libs/libhwloc.so .libs/libhwloc.so.0 .libs/libhwloc.so.0.0.0
libtool: link: gcc -g -shared .libs/topology.o .libs/traversal.o
.libs/distances.o .libs/topology-synthetic.o .libs/bind.o .libs/cpuset.o
.libs/misc.o .libs/topology-xml.o .libs/topology-libpci.o
.libs/topology-linux.o .libs/topology-x86.o -lxml2 -lz -lm
- -Wl,-soname -Wl,libhwloc.so.0 -o .libs/libhwloc.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libhwloc.so.0" && ln -s
"libhwloc.so.0.0.0" "libhwloc.so.0")
libtool: link: (cd ".libs" && rm -f "libhwloc.so" && ln -s
"libhwloc.so.0.0.0" "libhwloc.so")
libtool: link: ( cd ".libs" && rm -f "libhwloc.la" && ln -s
"../libhwloc.la" "libhwloc.la" )
$ grep -R __res_query .
$

So it's a system library issue - over to you folks! :-)

cheers,
Chris
- --
    Christopher Samuel - Senior Systems Administrator
 VLSCI - Victorian Life Sciences Computation Initiative
 Email: samuel_at_[hidden] Phone: +61 (0)3 903 55545
         http://www.vlsci.unimelb.edu.au/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk311F4ACgkQO2KABBYQAh/iIgCffHbQkshfPPBOo+ls2JwXB2pO
jSgAnjZqBtDsHZBJNVkmrxq6uJ9KRonv
=ZC4K
-----END PGP SIGNATURE-----