I tried posting to an openfabrics.org list first...

Date: Thu, 13 Oct 2011 09:51:57 -0700
From: general-boun...@lists.openfabrics.org
Subject: Auto-response for your message to the "general" mailing list

This list is no longer active. Please use linux-rdma@vger.kernel.org
instead. Thanks.

...so now I'm posting here.  My apologies if this is not appropriate
content for this list.  I'm not subscribed to the linux-rdma list yet
so I don't know if this post will be accepted.  I'm still waiting to
get a response to my subscription request.


I'm attempting to build ofed-1.5.3.2 on an unsupported linux platform
(specifically, mandriva 2010.2 x86_64).

I had previously done an ofed-1.4-rc6 build on an older mandriva 2008.1
linux platform several years ago and have been using that successfully
since that time.

I've made progress after making some modifications to install.pl to solve
some problems (see attached diff):

  - linux distribution detection
    - forced to "unsupported"

  - path to lspci

  - exclude *-debuginfo rpm builds


The build is now failing in libmthca with errors about libtool version:

  libtool: Version mismatch error.  This is libtool 2.2.6b, but the
  libtool: definition of this LT_INIT comes from an older release.
  libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b
  libtool: and run autoconf again.

Any suggestions about how to solve this problem?


Is there any simple way to stop the install.pl build process from removing
all the rpm build directories before exiting, so one can attempt to do
some build steps manually for diagnostic purposes?


Thanks,
--
Todd Pfaff <pf...@mcmaster.ca>
http://www.rhpcs.mcmaster.ca/
--- install.pl.orig     2011-07-24 10:52:10.000000000 -0400
+++ install.pl  2011-10-13 11:22:09.000000000 -0400
@@ -92,35 +92,35 @@
 my $dist_rpm_ver = 0;
 my $dist_rpm_rel = 0;
 
-if (-f "/etc/issue") {
-    if (-f "/usr/bin/dpkg") {
-        if (-f "/etc/lsb-release") {
-            open (LSB, "/etc/lsb-release") || die "";
-            while (<LSB>) {
-                if (/DISTRIB_DESCRIPTION/) {
-                    $dist_rpm = (split '=', $_)[1];
-                    $dist_rpm =~ s/"//g;
-                    $dist_rpm =~ s/ /_/g;
-                }
-            }
-            close LSB;
-        }
-        else {
-            $dist_rpm = "debian";
-        }
-    }
-    else {
-        $dist_rpm = `rpm -qf /etc/issue | head -1`;
-        chomp $dist_rpm;
-        $dist_rpm = `rpm -q --queryformat 
"[%{NAME}]-[%{VERSION}]-[%{RELEASE}]" $dist_rpm`;
-        chomp $dist_rpm;
-        $dist_rpm_ver = get_rpm_ver_inst($dist_rpm);
-        $dist_rpm_rel = get_rpm_rel_inst($dist_rpm);
-    }
-}
-else {
+#if (-f "/etc/issue") {
+#    if (-f "/usr/bin/dpkg") {
+#        if (-f "/etc/lsb-release") {
+#            open (LSB, "/etc/lsb-release") || die "";
+#            while (<LSB>) {
+#                if (/DISTRIB_DESCRIPTION/) {
+#                    $dist_rpm = (split '=', $_)[1];
+#                    $dist_rpm =~ s/"//g;
+#                    $dist_rpm =~ s/ /_/g;
+#                }
+#            }
+#            close LSB;
+#        }
+#        else {
+#            $dist_rpm = "debian";
+#        }
+#    }
+#    else {
+#        $dist_rpm = `rpm -qf /etc/issue | head -1`;
+#        chomp $dist_rpm;
+#        $dist_rpm = `rpm -q --queryformat 
"[%{NAME}]-[%{VERSION}]-[%{RELEASE}]" $dist_rpm`;
+#        chomp $dist_rpm;
+#        $dist_rpm_ver = get_rpm_ver_inst($dist_rpm);
+#        $dist_rpm_rel = get_rpm_rel_inst($dist_rpm);
+#    }
+#}
+#else {
     $dist_rpm = "unsupported";
-}
+#}
 chomp $dist_rpm;
 
 if ($dist_rpm =~ /openSUSE-release-11.2/) {
@@ -283,8 +283,8 @@
     $network_dir = "/etc/sysconfig/network-scripts";
 }
 
-my $setpci = '/sbin/setpci';
-my $lspci = '/sbin/lspci';
+my $setpci = '/usr/bin/setpci';
+my $lspci = '/usr/bin/lspci';
 
 # List of packages that were included in the previous OFED releases
 # for uninstall purpose
@@ -1833,7 +1833,7 @@
     }
 
     # debuginfo RPM currently are not supported on SuSE
-    if ($DISTRO =~ m/SLES/ or $DISTRO eq 'DEBIAN') {
+    if ($DISTRO eq 'unsupported' or $DISTRO =~ m/SLES/ or $DISTRO eq 'DEBIAN') 
{
         for my $package (@all_packages) {
             if ($package =~ m/-debuginfo/) {
                 $packages_info{$package}{'available'} = 0;
@@ -3640,7 +3640,7 @@
 sub count_ports
 {
     my $cnt = 0;
-    open(LSPCI, "/sbin/lspci -n|");
+    open(LSPCI, "$lspci -n|");
 
     while (<LSPCI>) {
         if (/15b3:6282/) {

Reply via email to