Subject: Re: Anyone manage to build mozilla from pkgsrc?
To: Christopher SEKIYA <wileyc@rezrov.net>
From: Nicolas Joly <njoly@pasteur.fr>
List: tech-toolchain
Date: 10/25/2004 12:10:12
--5mCyUwZo2JvN/JJP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Sun, Sep 05, 2004 at 09:47:43PM +0900, Christopher SEKIYA wrote:
> On Sun, Sep 05, 2004 at 09:44:29PM +0900, IWAMOTO Toshihiro wrote:
> 
> > With a single line change related to va_copy thing, mozilla could be
> > built and installed, but mozilla's stabily was no better (it died pretty
> > quickly).
> 
> Something funny ... mozilla, built from ports, on FreeBSD 5 on identical
> hardware, does not crash.
> 
> If I had to guess, I'd say that the problem is not toolchain; rather, the
> problem is somewhere in threads ...

With recent threads fix, i made another attemp ... And, this time,
mozilla works fine; it doesn't seems to crash anymore.

Needed patches attached.

Regards.

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.

--5mCyUwZo2JvN/JJP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="netbsd-pkgmozilla.diff"

Index: Makefile.common
===================================================================
RCS file: /cvsroot/pkgsrc/www/mozilla/Makefile.common,v
retrieving revision 1.44
diff -u -r1.44 Makefile.common
--- Makefile.common	31 Aug 2004 02:37:57 -0000	1.44
+++ Makefile.common	25 Oct 2004 10:08:39 -0000
@@ -130,6 +130,10 @@
 
 PTHREAD_OPTS+=	native optional
 
+.if (${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "x86_64")
+GCC_REQD+=	3.4
+.endif
+
 .include "../../mk/compiler.mk"
 .if !empty(CC_VERSION:Mgcc*)
 COPTS?=			-O2
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/www/mozilla/distinfo,v
retrieving revision 1.67
diff -u -r1.67 distinfo
--- distinfo	4 Oct 2004 11:52:09 -0000	1.67
+++ distinfo	25 Oct 2004 10:08:39 -0000
@@ -27,7 +27,7 @@
 SHA1 (patch-bq) = 2a08f3eb1b6a8ea00e712d08b4bcafad3b766a81
 SHA1 (patch-br) = 52d5b595f1e25ac5d6664864ab0cbe5e14012168
 SHA1 (patch-bs) = fb9f8f13ce481c04a0f7ecfd0ad4d8016cddc2e4
-SHA1 (patch-bt) = 02c84d908156e42b2d60f0c680eab1a89eb5b330
+SHA1 (patch-bt) = 70746626648624b38cc6e8795eb9c061be992342
 SHA1 (patch-bu) = db33b8651e3cb1fbf9a18dbe78e1e8288cfda0ee
 SHA1 (patch-bv) = 4f23dfd885131ea866f31370f1421e7c19706860
 SHA1 (patch-bw) = fc3a518d3762be6e85104a6dc7fffd5ae1a463c8
Index: patches/patch-bt
===================================================================
RCS file: /cvsroot/pkgsrc/www/mozilla/patches/patch-bt,v
retrieving revision 1.2
diff -u -r1.2 patch-bt
--- patches/patch-bt	21 Jun 2004 14:14:01 -0000	1.2
+++ patches/patch-bt	25 Oct 2004 10:08:39 -0000
@@ -11,7 +11,7 @@
 +	(defined(__amd64__) || \
 +	(defined(__powerpc__) && __NetBSD_Version__ >= 105000000)))
 +#include <stdarg.h>
-+#define VARARGS_ASSIGN(foo, bar) va_copy((foo), (bar))
++#define VARARGS_ASSIGN(foo, bar) __va_copy((foo), (bar))
  #elif (defined(LINUX) && defined(__powerpc__)) || \
      (defined(LINUX) && defined(__s390__)) || \
      (defined(LINUX) && defined(__s390x__)) || \

--5mCyUwZo2JvN/JJP--