Subject: pkg/34624: Building "thunderbird" fails under NetBSD 3.1_RC3
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Matthias Scheler <tron@zhadum.org.uk>
List: pkgsrc-bugs
Date: 09/26/2006 13:45:00
>Number: 34624
>Category: pkg
>Synopsis: Building "thunderbird" fails under NetBSD 3.1_RC3
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 26 13:45:00 +0000 2006
>Originator: Matthias Scheler
>Release: NetBSD 3.1_RC3 2006-09-26 pkgsrc-HEAD sources
>Organization:
Matthias Scheler http://zhadum.org.uk/
>Environment:
System: NetBSD colwyn.zhadum.org.uk 3.1_RC3 NetBSD 3.1_RC3 (COLWYN) #0: Fri Sep 22 01:23:08 BST 2006 tron@colwyn.zhadum.org.uk:/export/scratch/tron/build.27093a/sys/compile/COLWYN i386
Architecture: i386
Machine: i386
>Description:
Building "thunderbird" on a NetBSD 3.1_RC3 systems fails for me after
the recent changes:
=> Required installed package digest>=20010302: digest-20060826 found
===> Checking for vulnerabilities in thunderbird-1.5.0.7
=> Checksum SHA1 OK for thunderbird-1.5.0.7-source.tar.bz2
=> Checksum RMD160 OK for thunderbird-1.5.0.7-source.tar.bz2
===> Building for thunderbird-1.5.0.7
[...]
c++ -o nsBrowserInstance.o -c -DMOZILLA_INTERNAL_API -DOSTYPE=\"NetBSD3\" -DOSARCH=\"NetBSD\" -DBUILD_ID=0000000000 -I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include/necko -I../../../dist/include/shistory -I../../../dist/include/widget -I../../../dist/include/gfx -I../../../dist/include/docshell -I../../../dist/include/appshell -I../../../dist/include/appcomps -I../../../dist/include/dom -I../../../dist/include/js -I../../../dist/include/uriloader -I../../../dist/include/pref -I../../../dist/include/webbrwsr -I../../../dist/include/windowwatcher -I../../../dist/include/history -I../../../dist/include/browser -I../../../dist/include -I../../../dist/include/nspr -I/usr/pkg/include -I/usr/pkg/include -I../../../dist/sdk/include -I/usr/X11R6/include -fPIC -DPIC -I/usr/pkg/include -I/usr/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/pkg/include/freetype2 -Dunix -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/nsBrowserInstance.pp nsBrowserInstance.cpp
In file included from nsBrowserInstance.cpp:41:
nsBrowserInstance.h:53:31: nsICmdLineHandler.h: No such file or directory
In file included from nsBrowserInstance.cpp:41:
nsBrowserInstance.h:101: error: parse error before `{' token
nsBrowserInstance.h:104: error: virtual outside class declaration
nsBrowserInstance.h:104: error: virtual outside class declaration
nsBrowserInstance.h:104: error: parse error before `protected'
nsBrowserInstance.h:109: error: parse error before `{' token
nsBrowserInstance.h:113: error: syntax error before `public'
nsBrowserInstance.h:113: error: virtual outside class declaration
nsBrowserInstance.h:113: error: virtual outside class declaration
nsBrowserInstance.h:113: error: parse error before `protected'
nsBrowserInstance.cpp:85:27: nsIAppStartup.h: No such file or directory
nsBrowserInstance.cpp:97:31: nsICmdLineService.h: No such file or directory
nsBrowserInstance.cpp: In member function `virtual nsresult
nsBrowserInstance::StartPageCycler(PRBool*)':
nsBrowserInstance.cpp:527: error: `nsICmdLineService' undeclared (first use
this function)
nsBrowserInstance.cpp:527: error: (Each undeclared identifier is reported only
once for each function it appears in.)
nsBrowserInstance.cpp:527: error: template argument 1 is invalid
nsBrowserInstance.cpp:527: error: ISO C++ forbids declaration of `cmdLineArgs'
with no type
nsBrowserInstance.cpp:528: error: cannot convert `const
nsGetServiceByContractIDWithError' to `int' in initialization
nsBrowserInstance.cpp:527: warning: unused variable `int cmdLineArgs'
nsBrowserInstance.cpp: At global scope:
nsBrowserInstance.cpp:636: error: invalid use of undefined type `class
nsChromeStartupHandler'
nsBrowserInstance.h:100: error: forward declaration of `class
nsChromeStartupHandler'
nsBrowserInstance.cpp: In member function `nsrefcnt
nsChromeStartupHandler::AddRef()':
nsBrowserInstance.cpp:636: error: `mRefCnt' undeclared (first use this
function)
nsBrowserInstance.cpp: At global scope:
nsBrowserInstance.cpp:636: error: invalid use of undefined type `class
nsChromeStartupHandler'
nsBrowserInstance.h:100: error: forward declaration of `class
nsChromeStartupHandler'
nsBrowserInstance.cpp: In member function `nsrefcnt
nsChromeStartupHandler::Release()':
nsBrowserInstance.cpp:636: warning: possible problem detected in invocation of
delete operator:
nsBrowserInstance.cpp:636: warning: `this' has incomplete type
nsBrowserInstance.h:100: warning: forward declaration of `class
nsChromeStartupHandler'
nsBrowserInstance.cpp:636: note: neither the destructor nor the class-specific
operator delete will be called, even if they are declared when the class is
defined.
nsBrowserInstance.cpp: At global scope:
nsBrowserInstance.cpp:636: error: invalid use of undefined type `class
nsChromeStartupHandler'
nsBrowserInstance.h:100: error: forward declaration of `class
nsChromeStartupHandler'
nsBrowserInstance.cpp: In member function `nsresult
nsChromeStartupHandler::QueryInterface(const nsIID&, void**)':
nsBrowserInstance.cpp:636: error: `nsICmdLineHandler' undeclared (first use
this function)
nsBrowserInstance.cpp:636: error: template argument 1 is invalid
nsBrowserInstance.cpp:636: error: parse error before `*' token
nsBrowserInstance.cpp: At global scope:
nsBrowserInstance.cpp:637: error: type specifier omitted for parameter
nsBrowserInstance.cpp:637: error: parse error before string constant
nsBrowserInstance.cpp:642: error: ISO C++ forbids declaration of `
CMDLINEHANDLER_IMPL' with no type
nsBrowserInstance.cpp: In function `int CMDLINEHANDLER_IMPL(...)':
nsBrowserInstance.cpp:642: error: invalid use of undefined type `class
nsBrowserContentHandler'
nsBrowserInstance.h:108: error: forward declaration of `class
nsBrowserContentHandler'
nsBrowserInstance.cpp: In member function `nsrefcnt
nsBrowserContentHandler::AddRef()':
nsBrowserInstance.cpp:642: error: invalid use of undefined type `class
nsBrowserContentHandler'
nsBrowserInstance.h:108: error: forward declaration of `class
nsBrowserContentHandler'
nsBrowserInstance.cpp: In member function `nsrefcnt
nsBrowserContentHandler::Release()':
nsBrowserInstance.cpp:642: warning: possible problem detected in invocation of
delete operator:
nsBrowserInstance.cpp:642: warning: `this' has incomplete type
nsBrowserInstance.h:108: warning: forward declaration of `class
nsBrowserContentHandler'
nsBrowserInstance.cpp:642: note: neither the destructor nor the class-specific
operator delete will be called, even if they are declared when the class is
defined.
nsBrowserInstance.cpp:642: error: invalid use of undefined type `class
nsBrowserContentHandler'
nsBrowserInstance.h:108: error: forward declaration of `class
nsBrowserContentHandler'
nsBrowserInstance.cpp: In member function `nsresult
nsBrowserContentHandler::QueryInterface(const nsIID&, void**)':
nsBrowserInstance.cpp:642: error: invalid static_cast from type `
nsBrowserContentHandler* const' to type `nsIContentHandler*'
nsBrowserInstance.cpp:642: error: template argument 1 is invalid
nsBrowserInstance.cpp:642: error: parse error before `*' token
nsBrowserInstance.cpp:643: error: type specifier omitted for parameter
nsBrowserInstance.cpp:643: error: parse error before string constant
nsBrowserInstance.cpp:646: error: ISO C++ forbids declaration of `
CMDLINEHANDLER_OTHERS_IMPL' with no type
nsBrowserInstance.cpp: In function `int CMDLINEHANDLER_OTHERS_IMPL(...)':
nsBrowserInstance.cpp:647: error: type specifier omitted for parameter
nsBrowserInstance.cpp:647: error: parse error before string constant
nsBrowserInstance.cpp:649: error: ISO C++ forbids declaration of `
CMDLINEHANDLER_REGISTERPROC_IMPL' with no type
nsBrowserInstance.cpp: In function `int CMDLINEHANDLER_REGISTERPROC_IMPL(...)':
nsBrowserInstance.cpp:649: error: invalid use of undefined type `class
nsBrowserContentHandler'
nsBrowserInstance.h:108: error: forward declaration of `class
nsBrowserContentHandler'
nsBrowserInstance.cpp: In member function `nsresult
nsBrowserContentHandler::GetChromeUrlForTask(char**)':
nsBrowserInstance.cpp:670: error: invalid use of undefined type `class
nsBrowserContentHandler'
nsBrowserInstance.h:108: error: forward declaration of `class
nsBrowserContentHandler'
nsBrowserInstance.cpp: In function `nsresult GetHomePageGroup(nsIPref*,
PRUnichar**)':
nsBrowserInstance.cpp:741: error: invalid use of undefined type `class
nsBrowserContentHandler'
nsBrowserInstance.h:108: error: forward declaration of `class
nsBrowserContentHandler'
nsBrowserInstance.cpp: In member function `nsresult
nsBrowserContentHandler::GetDefaultArgs(PRUnichar**)':
nsBrowserInstance.cpp:749: error: `NeedHomepageOverride' undeclared (first use
this function)
nsBrowserInstance.cpp:790: error: invalid use of undefined type `class
nsBrowserContentHandler'
nsBrowserInstance.h:108: error: forward declaration of `class
nsBrowserContentHandler'
make[4]: *** [nsBrowserInstance.o] Error 1
make[4]: Leaving directory `/src/NetBSD-current/pkgsrc/mail/thunderbird/work.colwyn/mozilla/xpfe/browser/src'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/src/NetBSD-current/pkgsrc/mail/thunderbird/work.colwyn/mozilla/xpfe/browser'
make[2]: *** [libs] Error 2
make[2]: Leaving directory `/src/NetBSD-current/pkgsrc/mail/thunderbird/work.colwyn/mozilla/xpfe'
make[1]: *** [tier_50] Error 2
make[1]: Leaving directory `/src/NetBSD-current/pkgsrc/mail/thunderbird/work.colwyn/mozilla'
gmake: *** [default] Error 2
*** Error code 2
Stop.
If I checkout "thunderbird" package source from 2006/09/21 and bring back
the "mozilla" package sources from the dead the build succeeds. So the
problem is definitely related to recent removal of the "mozilla" package.
>How-To-Repeat:
cd pkgsrc/mail/thunderbird
make
>Fix:
None provided.