Closed
Bug 115
Opened 27 years ago
Closed 22 years ago
Navigator doesn't build
Categories
(NSPR :: NSPR, defect, P3)
Tracking
(Not tracked)
CLOSED
FIXED
People
(Reporter: thorsten, Assigned: wtc)
Details
Created by Thorsten Heit (thorsten@wurzelausix.cs.uni-sb.de) on Wednesday, April 8, 1998 5:02:34 AM PDT
Additional Details :
The patches in ns/nsprpub/pr/include/md/_linux.* are
taken from the SunOS4 files and seem to work:
--- ns/nsprpub/pr/include/md/_linux.h.orig Tue Mar 31
04:05:25 1998
+++ ns/nsprpub/pr/include/md/_linux.h Wed Apr 8
13:41:18 1998
@@ -29,6 +29,8 @@
#define _PR_SI_ARCHITECTURE "ppc"
#elif defined(__alpha)
#define _PR_SI_ARCHITECTURE "alpha"
+#elif defined(__sparc__)
+#define _PR_SI_ARCHITECTURE "sparc"
#else
#define _PR_SI_ARCHITECTURE "x86"
#endif
@@ -92,6 +94,12 @@
/* XXX not sure if this is correct, or maybe it should be
17? */
#define PR_NUM_GCREGS 9
+
+
+#elif defined(__sparc__)
+/* Sparc based Linux */
+#define _MD_GET_SP(_t)
(_t)->md.context[0].__jmpbuf[0].__fp
+#define PR_NUM_GCREGS _JBLEN
#else
/* Intel based Linux */
--- ns/nsprpub/pr/include/md/_linux.cfg.orig Tue Mar 31
04:05:25 1998
+++ ns/nsprpub/pr/include/md/_linux.cfg Tue Apr 7
15:04:35 1998
@@ -116,6 +116,55 @@
#define PR_BYTES_PER_WORD_LOG2 3
#define PR_BYTES_PER_DWORD_LOG2 3
+#elif defined(__sparc__)
+
+#undef IS_LITTLE_ENDIAN
+#define IS_BIG_ENDIAN 1
+#undef HAVE_LONG_LONG
+#define HAVE_ALIGNED_DOUBLES
+#undef HAVE_ALIGNED_LONGLONGS
+
+#define PR_BYTES_PER_BYTE 1
+#define PR_BYTES_PER_SHORT 2
+#define PR_BYTES_PER_INT 4
+#define PR_BYTES_PER_INT64 8
+#define PR_BYTES_PER_LONG 4
+#define PR_BYTES_PER_FLOAT 4
+#define PR_BYTES_PER_DOUBLE 8
+#define PR_BYTES_PER_WORD 4
+#define PR_BYTES_PER_DWORD 8
+#define PR_BYTES_PER_WORD_LOG2 2
+#define PR_BYTES_PER_DWORD_LOG2 3
+
+#define PR_BITS_PER_BYTE 8
+#define PR_BITS_PER_SHORT 16
+#define PR_BITS_PER_INT 32
+#define PR_BITS_PER_INT64 64
+#define PR_BITS_PER_LONG 32
+#define PR_BITS_PER_FLOAT 32
+#define PR_BITS_PER_DOUBLE 64
+#define PR_BITS_PER_WORD 32
+
+#define PR_BITS_PER_BYTE_LOG2 3
+#define PR_BITS_PER_SHORT_LOG2 4
+#define PR_BITS_PER_INT_LOG2 5
+#define PR_BITS_PER_INT64_LOG2 6
+#define PR_BITS_PER_LONG_LOG2 5
+#define PR_BITS_PER_FLOAT_LOG2 5
+#define PR_BITS_PER_DOUBLE_LOG2 6
+#define PR_BITS_PER_WORD_LOG2 5
+
+#define PR_ALIGN_OF_SHORT 2
+#define PR_ALIGN_OF_INT 4
+#define PR_ALIGN_OF_LONG 4
+#define PR_ALIGN_OF_INT64 8
+#define PR_ALIGN_OF_FLOAT 4
+#define PR_ALIGN_OF_DOUBLE 8
+#define PR_ALIGN_OF_POINTER 4
+
+#define BYTES_PER_WORD_LOG2 PR_BYTES_PER_WORD_LOG2
+#define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2
+
#else
#define IS_LITTLE_ENDIAN 1
The ns/config/config.guess file file should be changed
because all Linux supported platforms are working the
same way:
--- ns/config/config.guess.orig Wed Apr 8 13:51:27 1998
+++ ns/config/config.guess Wed Apr 8 13:53:26 1998
@@ -196,13 +196,7 @@
i[3456]86:NetBSD:*:*)
echo ${UNAME_MACHINE}-unknown-netbsd${UNAME_RELEASE}
exit 0 ;;
- alpha:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux
- exit 0 ;;
- i[3456]86:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux
- exit 0 ;;
- ppc:Linux:*:*)
+ *:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux
exit 0 ;;
i[3456]86:UNIX_SV:4.*:* | i[3456]86:SYSTEM_V:4.*:*)
Updated by Wan-Teh Chang (wtc@netscape.com) on Friday, April 24, 1998 12:05:36 PM PDT
Additional Details :
Added bug to myself. I will merge the patches to ns/nsprpub.
I will email Brian Ostrom <briano@netscape.com> about the patch to
ns/config/config.guess.
Updated by Wan-Teh Chang (wtc@netscape.com) on Tuesday, June 16, 1998 8:21:46 PM PDT
Additional Details :
I believed that Mozilla builds and runs on
Sparc Linux now. I ported nsprpub, and
Chris McAfee ported the rest of Mozilla.
Marked the bug resolved.
Updated by Wan-Teh Chang (wtc@netscape.com) on Tuesday, June 16, 1998 8:26:25 PM PDT
Additional Details :
Closed the bug.
Comment 1•26 years ago
|
||
NSPR now has its own Bugzilla product. Moving this bug to the NSPR product.
Comment 3•22 years ago
|
||
resolving
Status: REOPENED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Summary: Navigator doesn → Navigator doesn't build
You need to log in
before you can comment on or make changes to this bug.
Description
•