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

Bug 218109

Summary: app-i18n/scim-anthy-1.2.4 fails to build with sys-devel/gcc-4.3.0
Product: Gentoo Linux Reporter: elprespufferfish
Component: [OLD] GCC PortingAssignee: CJK Team <cjk>
Status: RESOLVED FIXED    
Severity: normal CC: esigra
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: emerge --info
attempt at a patch

Description elprespufferfish 2008-04-17 13:29:44 UTC
scim-anthy fails to build with gcc-4.3.

Reproducible: Always

Steps to Reproduce:
1.  Switch to gcc-4.3
2.  emerge scim-anthy
3.  fail

Actual Results:  
config.status: executing depfiles commands
scim_anthy_helper.cpp: In function 'void run(const scim::String&, const scim::ConfigPointer&)':
scim_anthy_helper.cpp:237: warning: deprecated conversion from string constant to 'char*'
scim_anthy_helper.cpp:238: warning: deprecated conversion from string constant to 'char*'
scim_anthy_preedit.cpp: In member function 'bool scim_anthy::Preedit::is_comma_or_period(const scim::String&)':
scim_anthy_preedit.cpp:534: error: 'strcmp' was not declared in this scope
scim_anthy_preedit.cpp:541: error: 'strcmp' was not declared in this scope
make[2]: *** [anthy_la-scim_anthy_preedit.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


Expected Results:  
Compile Successfully
Comment 1 elprespufferfish 2008-04-17 13:29:58 UTC
Created attachment 150052 [details]
emerge --info
Comment 2 elprespufferfish 2008-04-17 13:44:48 UTC
Created attachment 150058 [details]
attempt at a patch

A few files 
scim_anthy_kana.cpp scim_anthy_preedit.cpp  scim_anthy_prefs.cpp  scim_anthy_setup.cpp  scim_anthy_utils.cpp
seem to need an
#include <cstring>
to compile
Comment 3 MATSUU Takuto (RETIRED) gentoo-dev 2008-04-21 16:39:48 UTC
scim-anthy-1.2.6 was fixed to build with gcc-4.3 by upstream.
please test.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-04-27 13:13:46 UTC
I can confirm 1.2.6 builds with GCC 4.3 :) Thanks!