Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169517 - media-libs/libflash-0.4.10-r1 compile fails with gcc-4.1.2
Summary: media-libs/libflash-0.4.10-r1 compile fails with gcc-4.1.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2007-03-05 21:43 UTC by Walter Meinl
Modified: 2007-03-05 23:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. :)