On 9/13/2011 10:57 AM, Zaccone, Warren wrote:
There is also appears to be a critical issue. the config command removed 
/dev/null.   ON next reboot this causes Solaris 10 to be unable to boot up.

# pwd

# ls -l /dev/null
lrwxrwxrwx   1 root     root          27 Sep 13 10:46 /dev/null ->  
../devices/pseudo/mm@0:null

cd  /home/zac/openssl-1.0.0e

# ./config -openssldir=/usr/local/apache/ssl shared 
--prefix=/usr/local/apache/ssl
Operating system: sun4u-whatever-solaris2
NOTICE! If you *know* that your GNU C supports 64-bit/V9 ABI
         and wish to build 64-bit library, then you have to
         invoke './Configure solaris64-sparcv9-gcc' *manually*.
          You have about 5 seconds to press Ctrl-C to abort.
Can't open perl script "-e": No such file or directory
Can't open perl script "-e": No such file or directory
Can't open perl script "-e": No such file or directory
Can't open perl script "-e": No such file or directory
Can't open perl script "-e": No such file or directory
Can't open perl script "-e": No such file or directory
Can't open perl script "-e": No such file or directory
Can't open perl script "-e": No such file or directory
Can't open perl script "-e": No such file or directory
Can't open perl script "-e": No such file or directory
You need Perl 5.

/dev/null has been removed by the openssl config command...

# ls -l /dev/null
/dev/null: No such file or directory

# pwd
/home/zac/openssl-1.0.0e


# make
making all in crypto...
make[1]: Entering directory `/home/zac/openssl-1.0.0e/crypto'
( echo "#ifndef MK1MF_BUILD"; \
         echo '  /* auto-generated by crypto/Makefile for crypto/cversion.c */';
\
         echo '  #define CFLAGS "cc -KPIC -DOPENSSL_PIC -DOPENSSL_THREADS 
-D_REEN
TRANT -DDSO_DLFCN -DHAVE_DLFCN_H -openssldir=/usr/local/apache/ssl -xtarget=ultr
a -xarch=v8plus -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DIV2W -DOPENSSL_BN_
ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM"'; \
         echo '  #define PLATFORM "solaris-sparcv9-cc"'; \
         echo "  #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
         echo '#endif' )>buildinf.h
cc -I. -I.. -I../include  -KPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DD
SO_DLFCN -DHAVE_DLFCN_H -openssldir=/usr/local/apache/ssl -xtarget=ultra -xarch=
v8plus -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DIV2W -DOPENSSL_BN_ASM_MONT
-DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM   -c -o cryptlib.o cryptlib.c
/usr/ucb/cc:  language optional software package not installed
make[1]: *** [cryptlib.o] Error 1
make[1]: Leaving directory `/home/zac/openssl-1.0.0e/crypto'
make: *** [build_crypto] Error 1
#

# which perl

/usr/local/bin/perl

# perl -v

This is perl, v5.8.4 built for sun4-solaris-64int
(with 32 registered patches, see perl -V for more detail)

Copyright 1987-2004, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.


The lines:

($CC -Wa,--help -c -o /dev/null -x assembler /dev/null 2>&1 | \
 grep \\--noexecstack) 2>&1>  /dev/null&&  \
 options="$options -Wa,--noexecstack"

Were added to the config script by change 21168. Note the C compiler is passed "-o /dev/null". I suspect that's overwriting /dev/null. Shortly after is the perl test that is failing (on line 897). I suspect something about those three lines is breaking the bash syntax syntax structure for the perl test logic; or possibly breaking perl completely; but without a Solaris box available I can't say for sure.

You might want to start by removing lines 828, 829, and 930 from the config 
file and see if that fixes things.

http://cvs.openssl.org/chngview?cn=21168


Ladar Levison

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to