[MacPorts] #38561: openssl @1.0.1_1 build failure on Tiger (again) no-asm for Dawin 8?

MacPorts noreply at macports.org
Sun Mar 31 17:38:09 PDT 2013


#38561: openssl @1.0.1_1 build failure on Tiger (again) no-asm for Dawin 8?
---------------------------+-------------------
  Reporter:  strombland@…  |      Owner:  mww@…
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.1.3
Resolution:                |   Keywords:  tiger
      Port:  openssl       |
---------------------------+-------------------

Comment (by bwitt@…):

 Thanks for the Portfile fix, that worked just fine. :)  I'm not looking
 for the fastest code, so `no-asm` is OK by me.  Thanks also to the fixer
 of ICU.

 I'm a Mac OS 10.4.11 user with Xcode-2.5 installed ( so old ) on
 MacBookPro2,1.  My gcc is 4.0.1 from Apple.  My goal here is to install
 the latest C++ Boost library.

 The root of the compile error is from the Perl script that generates the
 assembly code for SHA1, etc.  In
 "openssl-1.0.1e/crypto/perlasm/x86gas.pl", for macosx, it outputs a
 `.comm` directive with three parameters.  The last, which is alignment, is
 rejected by GCC 4.0.1.  I changed the Perl code to below (lines 159-165)
 and it assembled OK.
 {{{
     if (grep {/\b${nmdecor}OPENSSL_ia32cap_P\b/i} @out) {
         my $tmp=".comm\t${nmdecor}OPENSSL_ia32cap_P,8";
         ## (ORIG) if ($::macosx)       { push (@out,"$tmp,2\n"); }
         ## (ORIG) elsif ($::elf)       { push (@out,"$tmp,4\n"); }
         ## (ORIG) else         { push (@out,"$tmp\n"); }
                         { push (@out,"$tmp\n"); }
     }
 }}}

 Maybe the maintainers need an "oldmacosx" define....  Also, important to
 delete "sha/sha1-586.s" and one other dot-S file where errors are
 generated.

-- 
Ticket URL: <https://trac.macports.org/ticket/38561#comment:8>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list