Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 169517

Summary: media-libs/libflash-0.4.10-r1 compile fails with gcc-4.1.2
Product: Gentoo Linux Reporter: Walter Meinl <wuno>
Component: [OLD] GCC PortingAssignee: Please assign to toolchain <gcc-porting>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=377177
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 117482    

Description Walter Meinl 2007-03-05 21:43:28 UTC
No probs to emerge media-libs/libflash-0.4.10-r1 with gcc-4.1.1 on x86 and amd64, but after upgrading to gcc-4.1.2 conflicts regarding with declarations of C and C++ linkage let the compile fail. I saw a (quite old) bug report with the same results using alpha versions of gcc-4.2 on debian, here's the link
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=377177
This bug report has a further link to the gcc bugzilla
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27227

Reproducible: Always

Actual Results:  
/bin/sh ../libtool --mode=compile c++ -DPACKAGE=\"libflash\" -DVERSION=\"0.4.10\"  -I. -I.  -I../lib    -O3 -Wall -fno-rtti -fno-exceptions -g3 -c flash.cc
c++ -DPACKAGE=\"libflash\" -DVERSION=\"0.4.10\" -I. -I. -I../lib -O3 -Wall -fno-rtti -fno-exceptions -g3 -c flash.cc  -fPIC -DPIC -o flash.lo
/bin/sh ../libtool --mode=compile c++ -DPACKAGE=\"libflash\" -DVERSION=\"0.4.10\"  -I. -I.  -I../lib    -O3 -Wall -fno-rtti -fno-exceptions -g3 -c font.cc
swf.h:199: error: previous declaration of 'int shape_size' with 'C++' linkage
flash.cc:266: error: conflicts with new declaration with 'C' linkage
swf.h:199: error: previous declaration of 'int shape_nb' with 'C++' linkage
flash.cc:266: error: conflicts with new declaration with 'C' linkage
swf.h:199: error: previous declaration of 'int shaperecord_size' with 'C++' linkage
flash.cc:266: error: conflicts with new declaration with 'C' linkage
swf.h:199: error: previous declaration of 'int shaperecord_nb' with 'C++' linkage
flash.cc:266: error: conflicts with new declaration with 'C' linkage
swf.h:199: error: previous declaration of 'int style_size' with 'C++' linkage
flash.cc:266: error: conflicts with new declaration with 'C' linkage
swf.h:199: error: previous declaration of 'int style_nb' with 'C++' linkage
flash.cc:266: error: conflicts with new declaration with 'C' linkage
make[1]: *** [flash.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
c++ -DPACKAGE=\"libflash\" -DVERSION=\"0.4.10\" -I. -I. -I../lib -O3 -Wall -fno-rtti -fno-exceptions -g3 -c font.cc  -fPIC -DPIC -o font.lo
make[1]: Leaving directory `/var/tmp/portage/media-libs/libflash-0.4.10-r1/work/libflash-0.4.10/lib'
make: *** [all-recursive] Error 1
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2007-03-05 23:58:29 UTC
I've updated the gcc41 patch to fix this.  Thanks for the report. :)