Package: thunderbird
Version: 1.5.0.4-2
Your package fails to build with recent versions of the gcc-snapshot
package, i.e. a pre-release of GCC 4.2. The problem is that external
variables are defined both in a C and C++ context, as you can see in
this simple example:
42059:[EMAIL PROTECTED]: ~] /usr/lib/gcc-snapshot/bin/g++ -c t.cc
t.cc:1: error: previous declaration of 'int i' with 'C++' linkage
t.cc:4: error: conflicts with new declaration with 'C' linkage
42060:[EMAIL PROTECTED]: ~] cat t.cc
extern int i;
extern "C" {
extern int i;
}
According to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27227#c8 this is
not valid, so please investgate.
> Automatic build of thunderbird_1.5.0.4-2 on test.track.rz.uni-augsburg.de by
> sbuild/powerpc 0.47
...
> c++ -o mimemult.o -c -fvisibility=hidden -DENABLE_SMIME
> -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\"
> -DBUILD_ID=2006070308 -I../../../dist/include/xpcom
> -I../../../dist/include/xpcom_obsolete -I../../../dist/include/string
> -I../../../dist/include/msgbase -I../../../dist/include/msgbaseutil
> -I../../../dist/include/pref -I../../../dist/include/js
> -I../../../dist/include/necko -I../../../dist/include/uconv
> -I../../../dist/include/unicharutil -I../../../dist/include/msgcompose
> -I../../../dist/include/dom -I../../../dist/include/intl
> -I../../../dist/include/msgimap -I../../../dist/include/exthandler
> -I../../../dist/include/mailnews -I../../../dist/include/msgdb
> -I../../../dist/include/chardet -I../../../dist/include/caps
> -I../../../dist/include/mimetype -I../../../dist/include/uriloader
> -I../../../dist/include/xpconnect -I../../../dist/include/nkcache
> -I../../../dist/include/pipnss -I../../../dist/include/imglib2
> -I../../../dist/include/content -I../../../dist/include/htmlparser
> -I../../../dist/include/layout -I../../../dist/include/msgsmime
> -I../../../dist/include/mime -I../../../dist/include
> -I../../../dist/include/nspr -I/usr/include -I/usr/include -I/usr/include
> -fPIC -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith
> -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy
> -Wno-non-virtual-dtor -Wno-long-long -pedantic -fshort-wchar -pthread -pipe
> -DNDEBUG -DTRIMMED -O2 -fno-strict-aliasing -fno-unsigned-char
> -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/mimemult.pp
> mimemult.cpp
> mimemult.cpp:55: warning: missing braces around initializer for
> 'MimeContainerClass'
> mimemult.cpp:55: warning: missing braces around initializer for
> 'MimeObjectClass'
> mimeeobj.h:57: error: previous declaration of 'MimeExternalObjectClass
> mimeExternalObjectClass' with 'C++' linkage
> mimemult.cpp:76: error: conflicts with new declaration with 'C' linkage
> make[5]: *** [mimemult.o] Error 1
--
Martin Michlmayr
http://www.cyrius.com/