Package: libflash
Version: 0.4.13-7

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 libflash_0.4.13-7 on test.track.rz.uni-augsburg.de by 
> sbuild/powerpc 0.47
...
>  powerpc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -fno-rtti 
> -fno-exceptions -g -O2 -MT flash.lo -MD -MP -MF .deps/flash.Tpo -c flash.cc  
> -fPIC -DPIC -o .libs/flash.o
> swf.h:203: error: previous declaration of 'int shape_size' with 'C++' linkage
> flash.cc:296: error: conflicts with new declaration with 'C' linkage
> swf.h:203: error: previous declaration of 'int shape_nb' with 'C++' linkage
> flash.cc:296: error: conflicts with new declaration with 'C' linkage
> swf.h:203: error: previous declaration of 'int shaperecord_size' with 'C++' 
> linkage
> flash.cc:296: error: conflicts with new declaration with 'C' linkage
> swf.h:203: error: previous declaration of 'int shaperecord_nb' with 'C++' 
> linkage
> flash.cc:296: error: conflicts with new declaration with 'C' linkage
> swf.h:203: error: previous declaration of 'int style_size' with 'C++' linkage
> flash.cc:296: error: conflicts with new declaration with 'C' linkage
> swf.h:203: error: previous declaration of 'int style_nb' with 'C++' linkage
> flash.cc:296: error: conflicts with new declaration with 'C' linkage
> make[3]: *** [flash.lo] Error 1
> make[3]: Leaving directory `/build/tbm/libflash-0.4.13/lib'

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to