Subject: pkg/30964: firefox doesn't compile on -current/macppc
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <d.zanon@infinito.it>
List: pkgsrc-bugs
Date: 08/10/2005 14:58:00
>Number:         30964
>Category:       pkg
>Synopsis:       firefox doesn't compile on -current/macppc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 10 14:58:00 +0000 2005
>Originator:     Davide Zanon
>Release:        3.99.7
>Organization:
>Environment:
NetBSD power 3.99.7 NetBSD 3.99.7 (POWER) #1: Sat Aug  6 23:00:11 GMT 2005  serah@nyarlathotep.serah.tvb:/usr/obj-macppc/sys/arch/macppc/compile/POWER macppc

>Description:
I get this error while compiling firefox-1.0.6 on a -current macppc system.

make[4]: Entering directory `/usr/pkgsrc/www/firefox/work/mozilla/xpcom/string/src'
nsAString.cpp
c++ -o nsAString.o -c -DOSTYPE=\"NetBSD3.99\" -DOSARCH=\"NetBSD\" -D_IMPL_NS_COM  -I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include -I/usr/pkgsrc/www/firefox/work/mozilla/dist/include/nspr  -I/usr/pkg/include -I/usr/pkg/include  -I/usr/X11R6/include   -fPIC -DPIC  -I/usr/pkg/include -I/usr/include -I/usr/X11R6/include -I/usr/pkg/include/freetype2  -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -O2 -I/usr/pkg/include -I/usr/include -I/usr/X11R6/include -I/usr/pkg/include/freetype2 -Dunix -pthread -pipe  -DNDEBUG -DTRIMMED -maltivec  -I/usr/pkg/include -I/usr/include -I/usr/X11R6/include -I/usr/pkg/include/freetype2  -I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/nsAString.pp nsAString.cpp
In file included from /usr/include/g++/new:41,
                 from ../../../dist/include/string/nsString.h:55,
                 from nsAString.cpp:41:
/usr/include/g++/cstddef:53: error: parse error before `unsigned'
In file included from ../../../dist/include/string/nsString.h:55,
                 from nsAString.cpp:41:
/usr/include/g++/new:54: error: parse error before `{' token
/usr/include/g++/new:59: error: destructors must be member functions
/usr/include/g++/new:59: error: virtual outside class declaration
/usr/include/g++/new:82: error: parse error before `unsigned'
/usr/include/g++/new:82: error: parse error before `::' token
/usr/include/g++/new:82: error: `operator new' takes type `size_t' (`unsigned
   int') as first parameter
/usr/include/g++/new:83: error: parse error before `unsigned'
/usr/include/g++/new:83: error: parse error before `::' token
/usr/include/g++/new:83: error: `operator new' takes type `size_t' (`unsigned
   int') as first parameter
/usr/include/g++/new:86: error: parse error before `unsigned'
/usr/include/g++/new:86: error: `operator new' takes type `size_t' (`unsigned
   int') as first parameter
/usr/include/g++/new:87: error: parse error before `unsigned'
/usr/include/g++/new:87: error: `operator new' takes type `size_t' (`unsigned
   int') as first parameter
/usr/include/g++/new:88: error: parse error before `&' token
/usr/include/g++/new:88: error: `operator delete' takes type `void*' as first
   parameter
/usr/include/g++/new:89: error: parse error before `&' token
/usr/include/g++/new:89: error: `operator delete' takes type `void*' as first
   parameter
/usr/include/g++/new:92: error: parse error before `unsigned'
/usr/include/g++/new:92: error: `operator new' takes type `size_t' (`unsigned
   int') as first parameter
/usr/include/g++/new: In function `void* operator new(unsigned int, ...)':
/usr/include/g++/new:92: error: `__p' undeclared (first use this function)
/usr/include/g++/new:92: error: (Each undeclared identifier is reported only
   once for each function it appears in.)
/usr/include/g++/new: At global scope:
/usr/include/g++/new:93: error: parse error before `unsigned'
/usr/include/g++/new:93: error: `operator new' takes type `size_t' (`unsigned
   int') as first parameter
/usr/include/g++/new:99: error: parse error before `}' token

>How-To-Repeat:
cd pkgsrc/www/firefox && make install
>Fix: