Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74054 - OpenSSL assumes "arm-linux-elf" to be little-endian
Summary: OpenSSL assumes "arm-linux-elf" to be little-endian
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: ARM Linux
: High major (vote)
Assignee: Gentoo ARM Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-10 18:09 UTC by Kolbjørn Barmen
Modified: 2004-12-12 15:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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