The config file (0.9.6) will not work for IRIX 6.2 with R4400 CPUS.

I executed "./config" then "make" and then tried to execute
openssl. It would not run. Said could not run on this platform.
The problem was that the code was compiled with -mips4 (cc). 
-mips4 is not supported on R4400 CPUS. The machine is a
SGI Challenge with 4 R4400 CPUS. 

The problem is in the config script. They use uname to set
GUESSOS. So that:

    IRIX:6.*)
        echo "mips3-sgi-irix"; exit 0
        ;;

    IRIX64:*)
        echo "mips4-sgi-irix64"; exit 0
        ;;

 For a uname of IRIX64 it will set mips4-sgi-irix64. mips3 and mips4
are completely unrelated to IRIX and IRIX64. IRIX and IRIX64 from
uname corresponds to a 32 bit and 64 bit kernel respectively. mips3
and mips4 corresponds to instruction sets for MIPS processors. mips4
code will not run on R4X00 CPUs. I recommend the following fix. I have
tested it on an IRIX 6.4 IRIX64 R10000 machine and the above machine.

I changed "case "$GUESSOS" in" switch statement for the
"mips4-sgi-irix64)" case. I added the CPU check that is done in
the case above, "mips3-sgi-irix)", to set the correct options.

Such as:

  mips4-sgi-irix64)
        echo "WARNING! If you wish to build 64-bit library, then you
have to"
        echo "         invoke './Configre irix64-mips4-$CC' *manually*."
        echo "         Type Ctrl-C if you don't want to continue."
        read waste < /dev/tty
        CPU=`(hinv -t cpu) 2>/dev/null | sed
's/^CPU:[^R]*R\([0-9]*\).*/\1/'`
        CPU=${CPU:-0}
        if [ $CPU -ge 5000 ]; then
                options="$options -mips4"
        else
                options="$options -mips3"
        fi
        OUT="irix-mips3-$CC"


PS also please correct spelling "./Configre" above to "./Configure".

Thanks,
Bruce Forsberg
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to