Subject: pkg/23240: mozilla/MozillaFirebird build failure on macppc-current
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mrg@eterna.com.au>
List: netbsd-bugs
Date: 10/23/2003 17:52:15
>Number:         23240
>Category:       pkg
>Synopsis:       mozilla/MozillaFirebird build failure on macppc-current
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 23 07:53:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     matthew green
>Release:        NetBSD 1.6ZD
>Organization:
people's front against (bozotic) www (softwar foundation)
>Environment:
	
	
System: NetBSD what-time-is-love.eterna.com.au 1.6ZD NetBSD 1.6ZD (_what_) #141: Sun Oct 19 21:03:51 EST 2003 mrg@phat-bass.eterna.com.au:/home/obj/macppc/usr/src/sys/arch/macppc/compile/_what_ macppc
Architecture: powerpc
Machine: macppc
>Description:

	both mozilla and phoenix fail to build on my very recently upgraded
	to -current macppc box. the mozilla/nsprpub/pr/src/io/prprf.c file
	fails to build due to bad use of va_list.  changing it to use va_copy(3)
	on netbsd/powerpc makes this file build for both mozilla & firebird.

	next problem - i don't know what is up here at all:


gmake[3]: Entering directory `/var/obj.pkgsrc/www/mozilla/work.what-time-is-love/mozilla/js/src/xpconnect/shell'
xpcshell.cpp
c++ -o xpcshell.o -c -DOSTYPE=\"NetBSD1\" -DOSARCH=\"NetBSD\" -DJS_THREADSAFE  -I../../../../dist/include/xpconnect -I../../../../dist/include/xpcom -I../../../../dist/include/string -I../../../../dist/include/js -I../../../../dist/include/xpcshell -I../../../../dist/include -I/var/obj.pkgsrc/www/mozilla/work.what-time-is-love/mozilla/dist/include/nspr  -I/usr/pkg/include -I/usr/pkg/include   -I/usr/X11R6/include   -fPIC -DPIC  -I/usr/pkg/include/gdk-pixbuf-1.0  -I/usr/pkg/include -I/usr/X11R6/include  -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-long-long -O2 -I/usr/pkg/include -I/usr/X11R6/include -Dunix -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O2  -I/usr/pkg/include/gdk-pixbuf-1.0  -I/usr/pkg/include -I/usr/X11R6/include  -I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/xpcshell.pp xpcshell.cpp
c++  -I/usr/pkg/include/gdk-pixbuf-1.0  -I/usr/pkg/include -I/usr/X11R6/include  -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-long-long -O2 -I/usr/pkg/include -I/usr/X11R6/include -Dunix -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O2 -o xpcshell xpcshell.o -Wl,-R/usr/pkg/lib/mozilla -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib   -L../../../../dist/bin -L../../../../dist/lib -L../../../../dist/bin -lmozjs -L../../../../dist/bin -lxpcom  -L/var/obj.pkgsrc/www/mozilla/work.what-time-is-love/mozilla/dist/lib -lplds4 -lplc4 -lnspr4 -L/usr/pkg/lib -L/usr/X11R6/lib -pthread   -lm  -lintl    -Wl,--export-dynamic
../../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub203()'
../../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub156()'
../../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub184()'
../../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub128()'
[ ... ]
../../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub102()'
../../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub229()'
gmake[3]: *** [xpcshell] Error 1
gmake[3]: Leaving directory `/var/obj.pkgsrc/www/mozilla/work.what-time-is-love/mozilla/js/src/xpconnect/shell'

	(there are about 250 of these "StubN" functions missing.)  the exactly same
	problem occurs in mozilla & phoenix.

	this is with GCC 3.3.2-nb1.

>How-To-Repeat:
	
	build either of www/{mozilla,MozillaFirebird} on maccpc/current.

>Fix:

	for prprf.c make it use va_copy(3) instead of either raw assignment or
	structure assignment.
>Release-Note:
>Audit-Trail:
>Unformatted: