Hi,

I just compiled openssl-0.9.6 on my sparc-linux-box (SS 20)
and I think there is a small bug in ./config while trying to
detect the hardware by reading '/proc/cpuinfo'.

On my box there are two lines containing the string 'type' and this leads
to a wrong guess by the config-script.

Here is what my /proc/cpuinfo looks like:

cpu             : Texas Instruments, Inc. - SuperSparc 50
fpu             : SuperSparc on-chip FPU
promlib         : Version 3 Revision 2
prom            : 2.22
type            : sun4m
ncpus probed    : 2
ncpus active    : 2
Cpu0Bogo        : 74.75
Cpu1Bogo        : 74.95
MMU type        : TI Viking/MXCC
invall          : 0
invmm           : 0
invrnge         : 0
invpg           : 0
contexts        : 65536
CPU0            : online
CPU1            : online

Attached is my small fix. For comments please reply to my personal address
as I'm not subscribed to the mailing-list.

Regards

Raoul

 ---------------------------------------------------------------------
 Raoul Gunnar Borenius          Deutsches Forschungsnetz e.V.
 WiNShuttle                     Lindensp�rstr.32, 70176 Stuttgart
 Phone  : +49 711 63314-206     FAX: +49 711 63314-133
 E-Mail : [EMAIL PROTECTED]   http://www.shuttle.de
 ---------------------------------------------------------------------
diff -ur openssl-orig/config openssl-work/config
--- openssl-orig/config Thu Sep 21 11:23:14 2000
+++ openssl-work/config Thu Nov 16 18:29:37 2000
@@ -427,7 +427,7 @@
        #read waste < /dev/tty
        OUT="linux-sparcv9" ;;
   sparc-*-linux2)
-       KARCH=`awk '/type/{print$3}' /proc/cpuinfo`
+       KARCH=`awk '/^type/{print$3}' /proc/cpuinfo`
        case ${KARCH:-sun4} in
        sun4u*) OUT="linux-sparcv9" ;;
        sun4m)  OUT="linux-sparcv8" ;;

Reply via email to