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-17 04:04:20


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

On 17/06/11 17:14, Brice Goglin wrote:

> Is there anyway to tell autoconf to ignore/drop some cached results?
> Resetting the value of ac_cv_lib_pci_pci_lookup_name may work but I
> don't know if we can do that (if we can, we should do it for
> pci_init/pci_cleanup vs -lz too).

Good guess Brice! This patch to configure from that nightly
snapshot gets it working again:

- --- configure.old 2011-06-17 11:01:25.000000000 +1000
+++ configure 2011-06-17 17:59:23.000000000 +1000
@@ -10321,6 +10321,7 @@
 if test "x$ac_cv_lib_resolv_inet_ntoa" = x""yes; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pci_lookup_name in -lpci" >&5
 $as_echo_n "checking for pci_lookup_name in -lpci... " >&6; }
+unset ac_cv_lib_pci_pci_lookup_name
 if test "${ac_cv_lib_pci_pci_lookup_name+set}" = set; then :
   $as_echo_n "(cached) " >&6
 else

thus:

checking pci/pci.h usability... yes
checking pci/pci.h presence... yes
checking for pci/pci.h... yes
checking for pci_init in -lpci... yes
checking for pci_lookup_name in -lpci... no
checking for inet_ntoa in -lresolv... yes
checking for pci_lookup_name in -lpci... yes
checking whether PCI_LOOKUP_NO_NUMBERS is declared... yes
checking for pci_find_cap in -lpci... yes
checking whether struct pci_dev has a device_class field... yes
checking whether struct pci_dev has a domain field... yes

and it compiles and builds an lstopo which includes PCI info!

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/

iEYEARECAAYFAk37CoQACgkQO2KABBYQAh+rNgCgjjC7lgqxKd4EFqROW88roXHe
J+QAnRBAFPxTK1dRB/06jjV1I9CTWZlv
=1yf6
-----END PGP SIGNATURE-----