Package: freej
Version: 0.8.1-3
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 freej_0.8.1-3 on chico by sbuild/i386 0.49
...
> if i486-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -pipe
> -D_REENTRANT -O2 -fomit-frame-pointer -march=i486 -ffast-math -msse
> -mfpmath=sse -MT flash.o -MD -MP -MF ".deps/flash.Tpo" -c -o flash.o
> flash.cc; \
> then mv -f ".deps/flash.Tpo" ".deps/flash.Po"; else rm -f
> ".deps/flash.Tpo"; exit 1; fi
> swf.h:202: error: previous declaration of 'int shape_size' with 'C++' linkage
> flash.cc:294: error: conflicts with new declaration with 'C' linkage
> swf.h:202: error: previous declaration of 'int shape_nb' with 'C++' linkage
> flash.cc:294: error: conflicts with new declaration with 'C' linkage
> swf.h:202: error: previous declaration of 'int shaperecord_size' with 'C++'
> linkage
> flash.cc:294: error: conflicts with new declaration with 'C' linkage
> swf.h:202: error: previous declaration of 'int shaperecord_nb' with 'C++'
> linkage
> flash.cc:294: error: conflicts with new declaration with 'C' linkage
> swf.h:202: error: previous declaration of 'int style_size' with 'C++' linkage
> flash.cc:294: error: conflicts with new declaration with 'C' linkage
> swf.h:202: error: previous declaration of 'int style_nb' with 'C++' linkage
> flash.cc:294: error: conflicts with new declaration with 'C' linkage
> make[4]: *** [flash.o] Error 1
> make[4]: Leaving directory `/build/tbm/freej-0.8.1/lib/flash'
--
Martin Michlmayr
http://www.cyrius.com/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]