Hello,

When building libcrypto on amd64 I get this warning:

(cd /usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/md5 ;  /usr/bin/perl 
./asm/md5-x86_64.pl openbsd-elf) > md5-x86_64.S
Use of uninitialized value $output in pattern match (m//) at 
./asm/md5-x86_64.pl line 115.

Admittedly it's been a while since I've used perl for more than one-liners,
so there may be a better solution.


Index: md5-x86_64.pl
===================================================================
RCS file: /cvs/src/lib/libssl/src/crypto/md5/asm/md5-x86_64.pl,v
retrieving revision 1.1.1.3
diff -u -p -r1.1.1.3 md5-x86_64.pl
--- md5-x86_64.pl       13 Apr 2014 15:16:34 -0000      1.1.1.3
+++ md5-x86_64.pl       25 Apr 2014 07:33:06 -0000
@@ -112,7 +112,7 @@ my $flavour = shift;
 my $output  = shift;
 if ($flavour =~ /\./) { $output = $flavour; undef $flavour; }
 
-my $win64=0; $win64=1 if ($flavour =~ /[nm]asm|mingw64/ || $output =~ 
/\.asm$/);
+my $win64=0; $win64=1 if ($flavour =~ /[nm]asm|mingw64/ || (defined $output && 
$output =~ /\.asm$/));
 
 $0 =~ m/(.*[\/\\])[^\/\\]+$/; my $dir=$1; my $xlate;
 ( $xlate="${dir}x86_64-xlate.pl" and -f $xlate ) or

Reply via email to