Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149132 - app-i18n/uim-1.2.1 fails to build with USE="gtk -canna -anthy"
Summary: app-i18n/uim-1.2.1 fails to build with USE="gtk -canna -anthy"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-25 20:31 UTC by Nick Bowler
Modified: 2006-10-07 11:07 UTC (History)
1 user (show)

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 Nick Bowler 2006-09-25 20:31:14 UTC
DICT support in UIM (which with 1.2.1 is enabled by the "gtk" useflag), fails to build when neither "anthy" or "canna" useflags are specified, with the following error:

if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../uim -I../replace -I../uim -DUIM_DATADIR=\""/usr/share/uim"\" -I.. -I..    -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12   -O2 -march=k8 -pipe -fomit-frame-pointer -O2 -pipe -Wall -std=gnu89 -pedantic -Wchar-subscripts -Wmissing-declarations -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -MT uim_dict_gtk-dict-dict.o -MD -MP -MF ".deps/uim_dict_gtk-dict-dict.Tpo" -c -o uim_dict_gtk-dict-dict.o `test -f 'dict-dict.c' || echo './'`dict-dict.c; \
        then mv -f ".deps/uim_dict_gtk-dict-dict.Tpo" ".deps/uim_dict_gtk-dict-dict.Po"; else rm -f ".deps/uim_dict_gtk-dict-dict.Tpo"; exit 1; fi
dict-dict.c:55: warning: ISO C forbids empty initializer braces
dict-dict.c:48: error: zero or negative size array 
Comment 1 Nick Bowler 2006-09-25 20:31:14 UTC
DICT support in UIM (which with 1.2.1 is enabled by the "gtk" useflag), fails to build when neither "anthy" or "canna" useflags are specified, with the following error:

if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../uim -I../replace -I../uim -DUIM_DATADIR=\""/usr/share/uim"\" -I.. -I..    -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12   -O2 -march=k8 -pipe -fomit-frame-pointer -O2 -pipe -Wall -std=gnu89 -pedantic -Wchar-subscripts -Wmissing-declarations -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -MT uim_dict_gtk-dict-dict.o -MD -MP -MF ".deps/uim_dict_gtk-dict-dict.Tpo" -c -o uim_dict_gtk-dict-dict.o `test -f 'dict-dict.c' || echo './'`dict-dict.c; \
        then mv -f ".deps/uim_dict_gtk-dict-dict.Tpo" ".deps/uim_dict_gtk-dict-dict.Po"; else rm -f ".deps/uim_dict_gtk-dict-dict.Tpo"; exit 1; fi
dict-dict.c:55: warning: ISO C forbids empty initializer braces
dict-dict.c:48: error: zero or negative size array classes
make[1]: *** [uim_dict_gtk-dict-dict.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/uim-1.2.1/work/uim-1.2.1/helper'
make: *** [all-recursive] Error 1

!!! ERROR: app-i18n/uim-1.2.1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  uim-1.2.1.ebuild, line 74:   Called die

The dict-dict.c file defines a zero-length array if neither anthy or canna are enabled.

I have temporarily created a local ebuild with DICT support explicitly disabled (by simply removing "$(use_enable gtk dict) \"), and it works.

Portage 2.1.2_pre1-r2 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-mm6 x86_64)
=================================================================
System uname: 2.6.17-mm6 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.5
Last Sync: Mon, 25 Sep 2006 22:30:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.3-r1, 2.0.30
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d/gcc /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirror.datapipe.net/gentoo"
LANG="en_CA.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/xgl-coffee"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib acpi alsa audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cgi cjk cli cups curl dmx dri dts dvd dvdr dvdread elibc_glibc emboss encode exo expat fam fastcgi fbcon ffmpeg fifo flac fontconfig fortran gd gdbm gif glitz glut gmp gpm gstreamer gtk gtk2 gtkhtml guile howl icecast iconv idn imagemagick imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg jpeg2k junit kernel_linux lcms libcaca libg++ lua mad matroska mikmod mng mouse mozilla mp3 mpeg musepack mysql ncurses nls nptl nptlonly nvidia ogg openal opengl pam pcre pdflib perl php png posix pppd pulseaudio python quicktime readline reflection ruby samba sdl session sockets speex spell spl ssl startup-notification svg sysfs tcpd tetex theora thunar-vfs tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU userlocales video_cards_nvidia video_cards_tdfx video_cards_vesa vorbis x264 xine xinerama xml xml2 xorg xpm xscreensaver xv xvid xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Jason S. 2006-09-27 02:06:14 UTC
Happens on x86 too (not that this is a arch specific thing...).

Portage 2.1.2_pre1-r3 (default-linux/x86/2006.1, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.5
Last Sync: Tue Sep 26 23:55:01 MST 2006
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=prescott -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/"
LANG="en_US"
LINGUAS="en ja"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/musicbrainz"
SYNC="rsync://gentoo.mirrors.easynews.com/gentoo-portage"
USE="x86 7zip X aac aalib acl aim alsa aoss apache2 arts autoipd avahi bash-completion berkdb bitmap-fonts bookmarks bzip2 cgi cjk cli crypt ctype cups curl dbus dlloader dri elibc_glibc esd exif flac fortran gdbm gif gimp gmail gnome gpm gstreamer gtalk gtk gtk2 gtkspell hal howl-compat iconv icq ilbc imap immqt-bc input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jabber jpeg kde kernel_linux lame libcaca libg++ linguas_en linguas_ja mad mdnsresponder-compat mono mp3 msn musicbrainz mysql mysqli ncurses nls nptl nptlonly nsplugin offensive ogg opengl openssl ortp pam pcre perl php png ppds pppd python qt3 qt4 rdesktop readline reflection ruby sasl server session simplexml speex spell spl sqlite sqlite3 ssl svg svga svgz symlink tcltk tcpd theora tidy tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU userlocales video_cards_fbdev video_cards_radeon video_cards_vesa vim vim-pager vim-with-x vorbis vorbis-psy win32codecs wireshark wxwindows xinerama xml xmlreader xmlrpc xmlwriter xmms xorg xpm xscreensaver xsl xslt xvid yahoo yp zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 MATSUU Takuto (RETIRED) gentoo-dev 2006-10-07 11:07:47 UTC
fixed in cvs.