From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 1408 invoked from network); 4 Jul 1998 15:06:54 -0000 Received: from ns11.rim.or.jp (root@202.247.130.230) by mail2.redhat.com with SMTP; 4 Jul 1998 15:06:54 -0000 Received: from rayearth.rim.or.jp (rayearth.rim.or.jp [202.247.130.242]) by ns11.rim.or.jp (8.8.5/3.5Wpl2-ns11/RIMNET-2) with ESMTP id AAA00570 for ; Sun, 5 Jul 1998 00:06:50 +0900 (JST) Received: (from uucp@localhost) by rayearth.rim.or.jp (8.8.5/3.5Wpl2-uucp1/RIMNET) with UUCP id AAA25647 for axp-list@redhat.com; Sun, 5 Jul 1998 00:06:49 +0900 (JST) Received: from localhost (goto@news.statabo.rim.or.jp [133.9.131.1]) by statabo.rim.or.jp (8.6.12/3.4Wbeta3-uucp) with ESMTP id AAA01315; Sun, 5 Jul 1998 00:04:17 +0900 To: axp-list@redhat.com Subject: Re: Web browser for AlphaLinux? In-Reply-To: Your message of "Fri, 03 Jul 1998 23:58:01 +0900" <19980703235801Z.goto@statabo.rim.or.jp> References: <19980703235801Z.goto@statabo.rim.or.jp> X-Mailer: Mew version 1.92.4 on Emacs 19.28 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19980705000416O.goto@statabo.rim.or.jp> Date: Sun, 05 Jul 1998 00:04:16 +0900 From: Kazushige Goto X-Dispatcher: imput version 971024 Hi, From: Kazushige Goto Subject: Re: Web browser for AlphaLinux? goto> I'll make non-X_LOCALE version as soon as possible. I've just put mozilla binaries on my ftp site. ftp.eni.co.jp/.2/Linux-Alpha-JP/ftp.statabo.rim.or.jp/Motif/Mozilla/RedHat This directory contains patch and some binaries. mozilla-SWiM-static.tar.gz : Using with SWiM Motif and statically linked with X11 libs and Motif libs. mozilla-SWiM.tar.gz : Using with SWiM Motif mozilla-lesstif.tar.gz : Using with Lesstif current mozilla-axp.diff : patch for Linux/Alpha X11libs.tar.gz : X11R6.3 shared libraries The lesstif-current version also works fine(a little bit wrong, though). You can build mozilla binary by yourself. If you want to build mozilla, you must set environment as follows, setenv NO_SECURITY 1 setenv MOZ_MEDIUM 1 setenv MOZILLA_CLIENT 1 setenv NO_MDUPDATE 1 If you want optimized version, please set this. setenv BUILD_OPT 1 p.s. Please make directory /usr/X11R6/lib/X11/mozilla before building. I attend the patch, this patch is based on Uncle George's patch. Thanks, goto@statabo.rim.or.jp diff -ru mozilla.old/cmd/xfe/Makefile mozilla/cmd/xfe/Makefile --- mozilla.old/cmd/xfe/Makefile Thu Jun 4 02:03:22 1998 +++ mozilla/cmd/xfe/Makefile Sat Jul 4 15:52:49 1998 @@ -637,11 +637,13 @@ # -include $(DEPTH)/config/motif.mk +CCLD = $(CC) XTOOLLIB = -L/usr/X11R6/lib -lXt -lSM -lICE XLIB = -lXext -lX11 XMULIB = -lXmu -lXpm +LDFLAGS += -Wl,-rpath /usr/X11R6/lib/X11/mozilla -ifeq ($(OS_RELEASE),2.0) +ifneq (,$(filter 2.0 2.1,$(OS_RELEASE))) ifeq ($(CPU_ARCH),ppc) MOTIFLIB = /usr/local/lib/libXm.a else diff -ru mozilla.old/config/Linux.mk mozilla/config/Linux.mk --- mozilla.old/config/Linux.mk Thu Jun 4 01:57:39 1998 +++ mozilla/config/Linux.mk Sat Jul 4 16:04:09 1998 @@ -95,7 +95,7 @@ PORT_FLAGS += -DNO_INT64_T PLATFORM_FLAGS += -DLINUX2_0 BUILD_UNIX_PLUGINS = 1 -MKSHLIB = $(CC) -shared -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so) +MKSHLIB = $(CC) -shared -Wl,-soname=$(@:$(OBJDIR)/%.so=%.so) ifdef BUILD_OPT OPTIMIZER = -O2 endif diff -ru mozilla.old/config/xmversion.sh mozilla/config/xmversion.sh --- mozilla.old/config/xmversion.sh Thu Jun 4 01:57:41 1998 +++ mozilla/config/xmversion.sh Sat Jul 4 15:08:45 1998 @@ -57,6 +57,11 @@ i386|i486|i586|i686) MOTIF_LIB_DIR=/usr/X11R6/lib ;; + + alpha) + MOTIF_LIB_DIR=/usr/X11R6/lib + ;; + esac ;; diff -ru mozilla.old/include/garray.h mozilla/include/garray.h --- mozilla.old/include/garray.h Thu Jun 4 01:48:07 1998 +++ mozilla/include/garray.h Sat Jul 4 15:08:45 1998 @@ -188,7 +188,7 @@ template class TXP_GrowableArray: public CXP_GrowableArray { public: - PTRTYPE operator[](int nIndex) const { return (PTRTYPE)(int32)m_pData[nIndex]; } + PTRTYPE operator[](int nIndex) const { return (PTRTYPE)(int64)m_pData[nIndex]; } PTRTYPE& operator[](int nIndex){ return *(PTRTYPE*)&m_pData[nIndex]; } int Add(PTRTYPE newElement){ return CXP_GrowableArray::Add( (void*) newElement ); } }; @@ -201,7 +201,7 @@ #define Declare_GrowableArray(NAME,PTRTYPE) \ class TXP_GrowableArray_##NAME: public CXP_GrowableArray { \ public: \ - PTRTYPE operator[](int nIndex) const { return (PTRTYPE)(int32)m_pData[nIndex]; }\ + PTRTYPE operator[](int nIndex) const { return (PTRTYPE)(int64)m_pData[nIndex]; }\ PTRTYPE& operator[](int nIndex){ return *(PTRTYPE*)&m_pData[nIndex]; } \ int Add(PTRTYPE newElement){ return CXP_GrowableArray::Add( (void*) newElement ); } \ }; \ @@ -241,12 +241,12 @@ #define Declare_PtrStack(NAME, PTRTYPE) \ class TXP_PtrStack_##NAME : public CXP_PtrStack { \ public: \ - void Push( PTRTYPE t ){ CXP_PtrStack::Push((void*)(int32)t); } \ - PTRTYPE Top(){ return (PTRTYPE)(int32)CXP_PtrStack::Top(); } \ - PTRTYPE Pop(){ return (PTRTYPE)(int32)CXP_PtrStack::Pop(); } \ - PTRTYPE operator[](int nIndex) const { return (PTRTYPE)(int32)m_pData[nIndex]; }\ + void Push( PTRTYPE t ){ CXP_PtrStack::Push((void*)(int64)t); } \ + PTRTYPE Top(){ return (PTRTYPE)(int64)CXP_PtrStack::Top(); } \ + PTRTYPE Pop(){ return (PTRTYPE)(int64)CXP_PtrStack::Pop(); } \ + PTRTYPE operator[](int nIndex) const { return (PTRTYPE)(int64)m_pData[nIndex]; }\ PTRTYPE& operator[](int nIndex){ return *(PTRTYPE*)&m_pData[nIndex]; } \ - int Add(PTRTYPE newElement){ return CXP_GrowableArray::Add( (void*)(int32)newElement ); } \ + int Add(PTRTYPE newElement){ return CXP_GrowableArray::Add( (void*)(int64)newElement ); } \ }; \ diff -ru mozilla.old/js/src/jsapi.c mozilla/js/src/jsapi.c --- mozilla.old/js/src/jsapi.c Thu Jun 4 01:49:26 1998 +++ mozilla/js/src/jsapi.c Sat Jul 4 15:08:45 1998 @@ -1178,18 +1178,39 @@ */ jsdouble d = cds->dval; - /* We can't do a (jsint) cast to check against JSDOUBLE_IS_INT until we - * know that d is not NaN, or we risk a FPE on some platforms. - */ - if (JSDOUBLE_IS_NaN(d)) { +#if defined(linux) && defined (__alpha__) + { + jsint i; + if (isnan(d)) i = 0; + else if (i=isinf(d)) { + if ( i < 0 ) + i = 0x80000000; + else + i = 0x07ffffff; + } + else + { + union feeb { + double d; + long l; + } feeb; + long l; + feeb.d = d; + l = d; + i = (jsint) l; + } + if (JSDOUBLE_IS_INT(d, i) && INT_FITS_IN_JSVAL(i)) + value = INT_TO_JSVAL(i); + else value = DOUBLE_TO_JSVAL(&cds->dval); - } else { + } +#else jsint i = (jsint)d; value = (JSDOUBLE_IS_INT(d, i) && INT_FITS_IN_JSVAL(i)) ? INT_TO_JSVAL(i) : DOUBLE_TO_JSVAL(&cds->dval); - } +#endif #else ok = js_NewNumberValue(cx, cds->dval, &value); if (!ok) diff -ru mozilla.old/js/src/jsnum.c mozilla/js/src/jsnum.c --- mozilla.old/js/src/jsnum.c Thu Jun 4 01:49:28 1998 +++ mozilla/js/src/jsnum.c Sat Jul 4 15:08:45 1998 @@ -358,7 +358,11 @@ {0, "POSITIVE_INFINITY"}, {0, "NEGATIVE_INFINITY"}, {1.7976931348623157E+308, "MAX_VALUE"}, +#if !( defined(linux) && defined(__alpha__)) {0, "MIN_VALUE"}, +#else + {2.2250738585072013E-308, "MIN_VALUE"}, +#endif {0} }; @@ -410,9 +414,11 @@ return NULL; } +#if !( defined(linux) && defined(__alpha__)) u.s.hi = 0; u.s.lo = 1; number_constants[NC_MIN_VALUE].dval = u.d; +#endif } if (!JS_DefineFunctions(cx, obj, number_functions)) diff -ru mozilla.old/js/src/jsnum.h mozilla/js/src/jsnum.h --- mozilla.old/js/src/jsnum.h Thu Jun 4 01:49:28 1998 +++ mozilla/js/src/jsnum.h Sat Jul 4 15:08:45 1998 @@ -59,7 +59,7 @@ #define JSDOUBLE_IS_INT_2(d, i) (!JSDOUBLE_IS_NEGZERO(d) && (jsdouble)i == d) -#ifdef XP_PC +#if defined(XP_PC) || (defined(linux) && defined (__alpha)) /* XXX MSVC miscompiles NaN floating point comparisons for ==, !=, <, and <= */ #define JSDOUBLE_IS_INT(d, i) (!JSDOUBLE_IS_NaN(d) && JSDOUBLE_IS_INT_2(d, i)) #else diff -ru mozilla.old/nsprpub/pr/include/md/_linux.h mozilla/nsprpub/pr/include/md/_linux.h --- mozilla.old/nsprpub/pr/include/md/_linux.h Thu Jun 4 01:53:59 1998 +++ mozilla/nsprpub/pr/include/md/_linux.h Sat Jul 4 15:08:45 1998 @@ -31,6 +31,8 @@ #define _PR_SI_ARCHITECTURE "ppc" #elif defined(__alpha) #define _PR_SI_ARCHITECTURE "alpha" +/* Move VMBASE to beyond 32 bits so we can readily observe ptr truncation */ +#define _PR_STACK_VMBASE 0x15450000000L #elif defined(__mc68000__) #define _PR_SI_ARCHITECTURE "m68k" #else @@ -39,7 +41,9 @@ #define PR_DLL_SUFFIX ".so" #define _PR_VMBASE 0x30000000 -#define _PR_STACK_VMBASE 0x50000000 +#if !defined _PR_STACK_VMBASE +#define _PR_STACK_VMBASE 0x50000000 +#endif #define _MD_DEFAULT_STACK_SIZE 65536L #define _MD_MMAP_FLAGS MAP_PRIVATE diff -ru mozilla.old/nsprpub/pr/src/md/unix/unix.c mozilla/nsprpub/pr/src/md/unix/unix.c --- mozilla.old/nsprpub/pr/src/md/unix/unix.c Thu Jun 4 01:54:11 1998 +++ mozilla/nsprpub/pr/src/md/unix/unix.c Sat Jul 4 15:08:45 1998 @@ -38,6 +38,10 @@ #include #endif +#if defined (linux) +#include /* Get readv/writev */ +#endif + /* * Make sure _PRSockLen_t is 32-bit, because we will cast a PRUint32* or * PRInt32* pointer to a _PRSockLen_t* pointer. @@ -2809,7 +2813,7 @@ * to be made executable because longjmp/signal seem * to put machine instructions on the stack. */ -#if defined(LINUX) && defined(__alpha) +#if defined(linux) && defined(__alpha__) prot |= PROT_EXEC; #endif rv = mmap((vaddr != 0) ? vaddr : lastaddr, size, prot,