public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Todd Pfaff <pfaff-nODyE7sJo+pGsCc+L4TfMfd9D2ou9A/h@public.gmane.org>
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: ofed-1.5.3.2 and libmthca and libtool version
Date: Thu, 13 Oct 2011 12:58:54 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LMD.2.00.1110131253200.12317@rhpcserv> (raw)

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1787 bytes --]

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

> Date: Thu, 13 Oct 2011 09:51:57 -0700
> From: general-bounces-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@public.gmane.org
> Subject: Auto-response for your message to the "general" mailing list
> 
> This list is no longer active. Please use linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 <pfaff-xc3H/SjimlosA/PxXw9srA@public.gmane.org>
http://www.rhpcs.mcmaster.ca/

[-- Attachment #2: Type: TEXT/PLAIN, Size: 2923 bytes --]

--- 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	other threads:[~2011-10-13 16:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LMD.2.00.1110131253200.12317@rhpcserv \
    --to=pfaff-nodye7sjo+pgscc+l4tfmfd9d2ou9a/h@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox