Closed Bug 118 Opened 26 years ago Closed 26 years ago

Problem with little endian / big endian on Sparc/Linux

Categories

(MozillaClassic Graveyard :: XFE, defect, P3)

1998-03-31
x86
Linux

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: thorsten, Assigned: ramiro)

Details

Created by Thorsten Heit (thorsten@wurzelausix.cs.uni-sb.de) on Wednesday, April 8, 1998 7:09:13 AM PDT
Additional Details :
I do not know what problem could arise, but before
trying it I installed the following patch to remove
some compiler warning about redefining symbols:

(only seen on Sparc/Linux which is a big endian machine,
not on x86/Linux)

--- ns/include/mcom_db.h.orig   Wed Apr  8 16:01:41 1998
+++ ns/include/mcom_db.h        Wed Apr  8 16:02:09 1998
@@ -420,8 +420,10 @@
 /*
  *    Why you would want to override the system defines?
  */
+#if !defined(__sparc__)
 #if BYTE_ORDER != LITTLE_ENDIAN
 #define BYTE_ORDER LITTLE_ENDIAN
+#endif
 #endif
 #endif
--- ns/dbm/include/mcom_db.h.orig       Tue Mar 31 04:05:30
1998
+++ ns/dbm/include/mcom_db.h    Wed Apr  8 16:06:07 1998
@@ -398,8 +398,10 @@
 __END_DECLS

 #ifdef linux
+#if !defined(__sparc__)
 #if BYTE_ORDER != LITTLE_ENDIAN
 #define BYTE_ORDER LITTLE_ENDIAN
+#endif
 #endif
 #endif
Component: XFE
Assignee: nobody → {}
Assignee: {} → ramiro
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
I beleive wtc@netscape.com recently checked in code to fix the endian problem on
sparc linux.

adding wtc@netscape.com to cc.
marking fixed.
Yes, I deleted all the offending code in the
two copies of mcom_db.h.
QA Contact: 3849
Set beppe@netscape.com as qa monitoring contact, thorsten@wurzelausix.cs.uni-
sb.de please verify on your end.
Status: RESOLVED → VERIFIED
presuming thorsten@wurzelausix.cs.uni-sb.de is happy with the fix, marking
verified.
You need to log in before you can comment on or make changes to this bug.