Subject: Re: mozilla - "make" stops.
To: Shigeki UNO <shigeki@mediawars.ne.jp>
From: Frederick Bruckman <fredb@immanent.net>
List: tech-pkg
Date: 08/16/2002 05:32:45
On Fri, 16 Aug 2002, Shigeki UNO wrote:

> Frederick Bruckman <fredb@immanent.net> writes:
>
> > On Fri, 16 Aug 2002, Shigeki UNO wrote:
> [...]
> >> ==> Installing for mozilla-1.0nb2
> >
> > How did you even get that far?
>
> Well, I have installed mozilla-0.6 and -0.8.1 successfully without
> xpkgwedge when I was running a.out NetBSD/mac68k box. No modification
> was needed at that time. And I didn't try any other versions.

No, I mean, how did you get it to build, with it's standard motorola
assembler, on 1.6E?

> You said
> > I've had to add
> > '-Wa,--register-prefix-optional' to --optimize-cflags to get through
> > ".../xpcom".
>
> To where? :p  Sorry for just asking.
>
> You mean you added the above line and that modification leaded you to
> success?

No, I added the following,


Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/www/mozilla/Makefile,v
retrieving revision 1.96
diff -u -r1.96 Makefile
--- Makefile	2002/08/02 05:40:48	1.96
+++ Makefile	2002/08/16 10:19:59
@@ -69,10 +69,11 @@

 PTHREAD_OPTS+=	native optional

-.if ${MACHINE_ARCH} == "m68k"
-DBG=
-.else
-CONFIGURE_ARGS+= --enable-optimize
+COPTS?=		-O2
+CONFIGURE_ARGS+= --enable-optimize="${COPTS}"
+
+.if ${MACHINE_ARCH} == "m68k" && ${OBJECT_FMT} == "ELF"
+COPTS+=		-Wa,--register-prefix-optional
 .endif

 XPTCFILES+=	xptcinvoke_asm_sparc64_netbsd.s xptcstubs_asm_sparc64_netbsd.s


But the build itself still fails with "missing symbols" on NetBSD 1.6F.

> [...]
> >> ../../graphics/freetype2 perl>=5.0:../../lang/perl5"
> >> PREFIX=/usr/pkg LOCALBASE= /usr/pkg X11BASE=/usr/X11R6 /bin/sh
> >> /usr/pkgsrc/www/mozilla/files/moz-install Segmentation fault - core
> >> dumped
>
> > What's dumping core? "/bin/sh"? "make"? Do you have a core file?
>
> /bin/sh. Not "make".
>
> And the core file is:
> % ls /usr/pkg/lib/mozilla
>
> TestGtkEmbed              libmoz_art_lgpl.so        mozilla-bin
> TestGtkEmbedChild         libmozjs.so               mozilla-config
> TestGtkEmbedNotebook      libmozz.so                mozilla-xremote-client
> TestGtkEmbedSocket        libmsgbaseutil.so         nsinstall
> bloaturls.txt             libnspr4.so               plugins
> chrome                    libnss3.so                regExport
> component.reg             libnssckbi.so             regchrome
> components                libnullplugin.so     ---> regchrome.core
> defaults                  libplc4.so                regxpcom
> dirver                    libplds4.so               res
> icons                     libprldap50.so            searchplugins
> libgkgfx.so               libsmime3.so              timebombgen
> libgtkembedmoz.so         libsoftokn3.so            xpcshell
> libgtksuperwin.so         libssl3.so                xpicleanup
> libgtkxtbin.so            libxlibrgb.so             xpidl
> libjsj.so                 libxpcom.so               xpt_dump
> libldap50.so              libxpistub.so             xpt_link
>
> Unfortunately /usr/bin/gdb on 1.6E doesn't work, that is, it produces core
> and fails.

> My mac that is running NetBSD is Centris650 with 68040/25MHz,104MB
> memory(on-board 8+16+16+32+32), 160MB(internal)+1GB(Root, external)+
> 2GB(/usr, external) Hard Disk Drive.
>
> But as I said the above, swap memory size is still being kept
>  _just 78MB_. When I switched from LC520 to Centris650 I didn't increase
> swap size. Does this cause unhappy results?

Maybe. You can always add a swap *file* to see if that helps. My
Quadra 840AV, 128mb, 140mb swap is choking before it gets to the
install stage, and it's not even touching the swap.

> I'm sure you'll whip me up something really good. Thanks in advance.

What I think I should do, is mark it broken on NetBSD-1.6*-m68k for now.

Frederick