Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 74054

Summary: OpenSSL assumes "arm-linux-elf" to be little-endian
Product: Gentoo Linux Reporter: Kolbjørn Barmen <gentoo>
Component: [OLD] LibraryAssignee: Gentoo ARM Porters <arm>
Status: RESOLVED FIXED    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: ARM   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Kolbjørn Barmen 2004-12-10 18:09:42 UTC
In the Configure script for OpenSSL (both 0.9.7 and 0.9.6) there is a line that starts with:

"linux-elf-arm","gcc:-DL_ENDIAN ...

This obviously doesnt work on big endian ARM systems. Replacing L_ENDIAN with B_ENDIAN fixes the problem, but whether correct "clean" solution is to remove it or replace it with -DB_ENDIAN I dont know (havent tried without yet)

Reproducible: Always
Steps to Reproduce:
1. ssh to remote machine from big-endian arm system with unpatched openssl/openssh gives "error: corrupted MAC on input" and vice versa.
2. ssh to localhost works, as sshd is affected by same endian issue

Actual Results:
Comment 1 SpanKY gentoo-dev 2004-12-12 01:06:37 UTC
could you post the output of /proc/cpuinfo and the diff uname options (-a, -m, -p, -i) ?
Comment 2 Kolbjørn Barmen 2004-12-12 12:06:45 UTC
Sure, here goes:


babysmurf ~ # cat /proc/cpuinfo
Processor       : XScale-IXP425/IXC1100 rev 1 (v5b)
BogoMIPS        : 131.48
Features        : swp half thumb fastmult edsp

Hardware        : Intel IXDP425 Development Platform
Revision        : 0000
Serial          : 0000000000000000

babysmurf ~ # uname -a
Linux babysmurf 2.4.22-xfs #379 Wed Jul 7 15:59:25 CST 2004 armv5b XScale-IXP425/IXC1100 rev 1 (v5b) Intel IXDP425 Development Platform GNU/Linux

babysmurf ~ # uname -m
armv5b

babysmurf ~ # uname -p
XScale-IXP425/IXC1100 rev 1 (v5b)

babysmurf ~ # uname -i
Intel IXDP425 Development Platform
          
Comment 3 SpanKY gentoo-dev 2004-12-12 15:34:07 UTC
added patch to 0.9.7e