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: Brice Goglin (Brice.Goglin_at_[hidden])
Date: 2011-06-17 07:52:43


Advice from colleagues: This is becoming too ugly, this is libpci's
fault, just always add -lz -lresolv and let the linker drop them later
if they're useless :)
Brice

Le 17/06/2011 10:04, Christopher Samuel a écrit :
> 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
_______________________________________________
hwloc-devel mailing list
hwloc-devel_at_[hidden]
http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-devel