Bug 70578 - iiimf-skk fails to compile
Bug#: 70578 Product:  Gentoo Linux Version: 2004.0 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: cjk@gentoo.org Reported By: kinoko@matrix.x0.com
Component: Applications
URL: 
Summary: iiimf-skk fails to compile
Keywords:  
Status Whiteboard: 
Opened: 2004-11-09 07:24 0000
Description:   Opened: 2004-11-09 07:24 0000
iiimf-skk-0.1.22.95 fails to compile.

then, i removed `use_enable canna` from src_compile() in iiimf-skk-0.1.22.95.ebuild, and i emerged successful.
(canna is not installed on my computer.)

Reproducible: Always
Steps to Reproduce:
1.emerge iiimf-skk
2.
3.
Actual Results:  
In file included from skkcannadictimpl.c:43:
skkcannadictimpl.h:43:27: canna/jrkanji.h: No such file or directory
In file included from skkcannadictimpl.c:43:
skkcannadictimpl.h:52: error: syntax error before "jrKanjiStatusWithValue"
skkcannadictimpl.h:52: warning: no semicolon at end of struct or union
skkcannadictimpl.h:54: error: syntax error before '}' token
skkcannadictimpl.c:65: error: conflicting declarations of `context_id'
skkcannadictimpl.h:53: error: `context_id' previously declared here
skkcannadictimpl.c:65: warning: `context_id' was declared `extern' and later `static'
skkcannadictimpl.c:85: error: syntax error before '*' token
skkcannadictimpl.c: In function `parse_guideline':
skkcannadictimpl.c:90: error: `pks' undeclared (first use in this function)
skkcannadictimpl.c:90: error: (Each undeclared identifier is reported only once
skkcannadictimpl.c:90: error: for each function it appears in.)
skkcannadictimpl.c:104: error: `pnum' undeclared (first use in this function)
skkcannadictimpl.c:105: error: `pcurrent' undeclared (first use in this function)
skkcannadictimpl.c:106: error: `psegs' undeclared (first use in this function)
skkcannadictimpl.c:107: error: `pnb' undeclared (first use in this function)
skkcannadictimpl.c: In function `get_new':
skkcannadictimpl.c:141: error: `jrKanjiStatus' undeclared (first use in this function)
skkcannadictimpl.c:141: error: `pks' undeclared (first use in this function)
skkcannadictimpl.c:142: error: invalid application of `sizeof' to an incomplete type
skkcannadictimpl.c:143: error: syntax error before ')' token
skkcannadictimpl.c:144: error: dereferencing pointer to incomplete type
skkcannadictimpl.c:145: error: dereferencing pointer to incomplete type
skkcannadictimpl.c:147: warning: implicit declaration of function `jrKanjiControl'
skkcannadictimpl.c:147: error: dereferencing pointer to incomplete type
skkcannadictimpl.c:147: error: `KC_INITIALIZE' undeclared (first use in this function)
skkcannadictimpl.c:148: error: dereferencing pointer to incomplete type
skkcannadictimpl.c:148: error: `KC_SETAPPNAME' undeclared (first use in this function)
skkcannadictimpl.c:149: error: dereferencing pointer to incomplete type
skkcannadictimpl.c:150: error: dereferencing pointer to incomplete type
skkcannadictimpl.c:151: error: dereferencing pointer to incomplete type
skkcannadictimpl.c:152: error: dereferencing pointer to incomplete type
skkcannadictimpl.c:152: error: `CANNA_MODE_HenkanMode' undeclared (first use in this function)
skkcannadictimpl.c:153: error: dereferencing pointer to incomplete type
skkcannadictimpl.c:153: error: `KC_CHANGEMODE' undeclared (first use in this function)
skkcannadictimpl.c:153: error: dereferencing pointer to incomplete type
skkcannadictimpl.c: In function `do_query':
skkcannadictimpl.c:162: error: `jrKanjiStatusWithValue' undeclared (first use in this function)
skkcannadictimpl.c:162: error: `pksv' undeclared (first use in this function)
skkcannadictimpl.c:162: error: dereferencing pointer to incomplete type
skkcannadictimpl.c:163: error: `jrKanjiStatus' undeclared (first use in this function)
skkcannadictimpl.c:163: error: `pks' undeclared (first use in this function)
skkcannadictimpl.c:163: error: dereferencing pointer to incomplete type
skkcannadictimpl.c:173: error: dereferencing pointer to incomplete type
skkcannadictimpl.c:173: error: `KC_STOREYOMI' undeclared (first use in this function)
skkcannadictimpl.c:174: warning: implicit declaration of function `jrKanjiString'
skkcannadictimpl.c:174: error: dereferencing pointer to incomplete type
skkcannadictimpl.c:179: error: dereferencing pointer to incomplete type
skkcannadictimpl.c:221: error: dereferencing pointer to incomplete type
skkcannadictimpl.c:221: error: `KC_KILL' undeclared (first use in this function)skkcannadictimpl.c: In 
function `destroy':
skkcannadictimpl.c:231: error: dereferencing pointer to incomplete type
skkcannadictimpl.c:231: error: `KC_FINALIZE' undeclared (first use in this function)
skkcannadictimpl.c:232: error: dereferencing pointer to incomplete type
skkcannadictimpl.c:233: error: dereferencing pointer to incomplete type
skkcannadictimpl.c: At top level:
skkcannadictimpl.c:86: warning: `parse_guideline' defined but not used
{standard input}: Assembler messages:
{standard input}:25: Error: symbol `context_id' is already defined
{standard input}:25: Warning: rest of line ignored; first ignored character is `,'
make[2]: *** [skkcannadictimpl.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/iiimf-skk-0.1.22.95/work/iiimf-skk-0.1.22.95/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/iiimf-skk-0.1.22.95/work/iiimf-skk-0.1.22.95'
make: *** [all] Error 2


Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.10-rc1-mm2 
i686)
===============================================================
==
System uname: 2.6.10-rc1-mm2 i686 Intel(R) Celeron(TM) CPU                1000MHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /
usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"CONFIG_PROTECT_MASK="/etc/
gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO/ http://mirror.gentoo.gr.jp/ http://
gentoo.llarian.net/distfiles/ http://ftp.gentoo.or.kr/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm avi berkdb bitmap-fonts bootsplash cdr cjk crypt cups divx4linux dvd encode f77 fam 
foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib jpeg libg++ libwww 
mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python 
quicktime readline sdl slang spell sse ssl svga tcpd tiff truetype x86 xml xml2 xv xvid zlib"

------- Comment #1 From Mamoru KOMACHI (RETIRED) 2004-11-09 09:03:11 0000 -------
Could you provide the original (failed) log file of `emerge iiimf-skk`?
If you don't set USE="canna", then --disable-canna will be passed
to iiimf-skk.

------- Comment #2 From kinoko 2004-11-10 01:50:44 0000 -------
Created an attachment (id=43647) [details]
failed log

This is a failed log file.

------- Comment #3 From Mamoru KOMACHI (RETIRED) 2004-11-10 02:49:43 0000 -------
Thanks, it doesn't seem iiimf-skk treats --disable-canna correctly. I fixed it
CVS.