| View previous topic :: View next topic |
| Author |
Message |
LittleBug Tux's lil' helper


Joined: 30 Mar 2005 Posts: 148 Location: 45°51'31.28"N, 12°15'11.73"E
|
Posted: Sat Nov 15, 2008 9:07 am Post subject: [solved] scim fail to emerge |
|
|
Hi @ all!
There's no much to say. Simply I tried to obtain a japanese input method by following this thread but god say NO!
Everytime I emerge scim (1.4.5-r1) there's, after a minute, tons of this warning:
| Quote: | | scim_keyevent_data.h:3457: warning: deprecated conversion from string constant to 'char*' |
with consequently error and fail.
I usully use paludis but emerge give me same error.
Anyone have any idea?
Last edited by LittleBug on Mon Nov 17, 2008 2:30 pm; edited 1 time in total |
|
| Back to top |
|
 |
frostschutz Advocate


Joined: 22 Feb 2005 Posts: 2194 Location: Germany
|
Posted: Sat Nov 15, 2008 10:02 am Post subject: |
|
|
Well, the thing you quoted is a warning. Compiles do not fail because of warnings, they fail because of errors. So I daresay that if you got an error, you sure as hell quoted the wrong thing.
I use scim + anthy for Japanese, it works fine, and it compiles fine on my machine. I don't use 1.4.5-r1 though, instead I use 1.4.7-r1. This is because my whole system is ~arch. If in doubt you can just put all the scim stuff in your package.keywords file and try the newer (unstable) version. |
|
| Back to top |
|
 |
LittleBug Tux's lil' helper


Joined: 30 Mar 2005 Posts: 148 Location: 45°51'31.28"N, 12°15'11.73"E
|
Posted: Sat Nov 15, 2008 10:35 am Post subject: |
|
|
You're right sorry.
after the previous warning say
| Code: |
scim_event.cpp:361: error: ‘strcmp’ was not declared in this scope
make[2]: *** [scim_event.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../src -I.. -I../src -I../intl -DSCIM_DATADIR=\"/usr/share/scim\" -DSCIM_LOCALEDIR=\"/usr/share/locale\" -DSCIM_SYSCONFDIR=\"/etc\" -DSCIM_LIBEXECDIR=\"/usr/lib64/scim-1.0\" -DSCIM_ICONDIR=\"/usr/share/scim/icons\" -DSCIM_MODULE_PATH=\"/usr/lib64/scim-1.0\" -march=native -O2 -pipe -mfpmath=sse -mmmx -msse -msse2 -m3dnow -fomit-frame-pointer -MT scim_filter.lo -MD -MP -MF .deps/scim_filter.Tpo -c scim_filter.cpp -fPIC -DPIC -o .libs/scim_filter.o
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../src -I.. -I../src -I../intl -DSCIM_DATADIR=\"/usr/share/scim\" -DSCIM_LOCALEDIR=\"/usr/share/locale\" -DSCIM_SYSCONFDIR=\"/etc\" -DSCIM_LIBEXECDIR=\"/usr/lib64/scim-1.0\" -DSCIM_ICONDIR=\"/usr/share/scim/icons\" -DSCIM_MODULE_PATH=\"/usr/lib64/scim-1.0\" -march=native -O2 -pipe -mfpmath=sse -mmmx -msse -msse2 -m3dnow -fomit-frame-pointer -MT scim_filter.lo -MD -MP -MF .deps/scim_filter.Tpo -c scim_filter.cpp -o scim_filter.o >/dev/null 2>&1
mv -f .deps/scim_filter.Tpo .deps/scim_filter.Plo
make[2]: Leaving directory `/var/tmp/portage/app-i18n/scim-1.4.5-r1/work/scim-1.4.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-i18n/scim-1.4.5-r1/work/scim-1.4.5'
make: *** [all] Error 2
*
* ERROR: app-i18n/scim-1.4.5-r1 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2956: Called die
* The specific snippet of code:
* emake || die
* The die message:
* (no error message)
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/app-i18n/scim-1.4.5-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-i18n/scim-1.4.5-r1/temp/environment'.
*
|
I used 1.4.7-r1 version but when I emerge scim-uim-0.2.0 it downgrade (or try) scim to 1.4.5-r1 and fail. |
|
| Back to top |
|
 |
frostschutz Advocate


Joined: 22 Feb 2005 Posts: 2194 Location: Germany
|
Posted: Sat Nov 15, 2008 12:26 pm Post subject: |
|
|
If you want uim, I suggest you use uim directly, and not through scim-uim. I don't use uim, so I have no issue with scim-uim at all. (although on my system it does not pull an older scim version for it).
when using ~arch scim, you need to ~arch some of the scim dependencies too. |
|
| Back to top |
|
 |
VoidMage Advocate


Joined: 14 Oct 2006 Posts: 4060
|
Posted: Sat Nov 15, 2008 2:59 pm Post subject: |
|
|
If he's emerging scim, why would he need uim ?
I've been using scim for awhile and never needed uim.
Regardless of what that guide says, scim just works
(as long as you're in an UTF-8 locale).
That error is gcc 4.3 incompatibility and is fixed in the latest in the tree. |
|
| Back to top |
|
 |
LittleBug Tux's lil' helper


Joined: 30 Mar 2005 Posts: 148 Location: 45°51'31.28"N, 12°15'11.73"E
|
Posted: Mon Nov 17, 2008 9:58 am Post subject: |
|
|
Well!
I emerged scim (1.4.7-r1) and drop the uim part of the guide, add
| Code: | # The SCIM variables below are be exported prior to starting your WM,
# so that all your compatible X programs can default to it
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=scim-bridge
export QT_IM_MODULE=scim
|
to /etc/profile.d/scim.sh and all now work!
Sorry for the useless post!
Note for the future: "Try to think!!" |
|
| Back to top |
|
 |
frostschutz Advocate


Joined: 22 Feb 2005 Posts: 2194 Location: Germany
|
Posted: Mon Nov 17, 2008 10:30 am Post subject: |
|
|
Rather than /etc/profile.d/scim.sh, you should put env variables into /etc/env.d/42scim or something, and then run env-update and source /etc/profile (for X the new env variables may be available only after a reboot / relogin or so).
| Code: | XMODIFIERS="@im=SCIM"
GTK_IM_MODULE="scim"
QT_IM_MODULE="scim"
QT_IM_SWITCHER="imsw-multi" |
|
|
| Back to top |
|
 |
LittleBug Tux's lil' helper


Joined: 30 Mar 2005 Posts: 148 Location: 45°51'31.28"N, 12°15'11.73"E
|
Posted: Mon Nov 17, 2008 10:59 am Post subject: |
|
|
Ok thanks for the TIP!  |
|
| Back to top |
|
 |
|