Bug 148961 - dev-libs/wnn7sdk-20011017 fails to build with gcc-4.1.1/not modular X ready
|
Bug#:
148961
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: major
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: cjk@gentoo.org
|
Reported By: eva@gentoo.org
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: dev-libs/wnn7sdk-20011017 fails to build with gcc-4.1.1/not modular X ready
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2006-09-24 09:33 0000
|
don't really know if it is a gcc-4 issue but at some point in the past it was
compiling happily and now I'm getting those errors :
rm -f js.o unshared/js.o
gcc -m32 -c -I/var/tmp/portage/wnn7sdk-20011017/work/src/Wnn/include
-I/var/tmp/portage/wnn7sdk-20011017/work/src -I/usr/include -Dlinux
-D__i386__ -D_POSIX_C_SOURCE=199309L
-D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE
-D_SVID_SOURCE -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64
-DFUNCPROTO=15 -DNARROWPROTO -DLIBDIR=\"/usr/lib/wnn7\"
-DETCDIR=\"/etc/wnn7\" -DVARDIR=\"/var/lib/wnn7\"
-DSHAREDIR=\"/usr/share/wnn7\" -DWRITE_CHECK -O2 -fno-strength-reduce
-fno-strict-aliasing js.c -o unshared/js.o
In file included from js.c:193:
../etc/bdic.c:1024: erreur: static declaration of
don't really know if it is a gcc-4 issue but at some point in the past it was
compiling happily and now I'm getting those errors :
rm -f js.o unshared/js.o
gcc -m32 -c -I/var/tmp/portage/wnn7sdk-20011017/work/src/Wnn/include
-I/var/tmp/portage/wnn7sdk-20011017/work/src -I/usr/include -Dlinux
-D__i386__ -D_POSIX_C_SOURCE=199309L
-D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE
-D_SVID_SOURCE -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64
-DFUNCPROTO=15 -DNARROWPROTO -DLIBDIR=\"/usr/lib/wnn7\"
-DETCDIR=\"/etc/wnn7\" -DVARDIR=\"/var/lib/wnn7\"
-DSHAREDIR=\"/usr/share/wnn7\" -DWRITE_CHECK -O2 -fno-strength-reduce
-fno-strict-aliasing js.c -o unshared/js.o
In file included from js.c:193:
../etc/bdic.c:1024: erreur: static declaration of change_file_uniq1 follows
non-static declaration
../etc/bdic.c:842: erreur: previous implicit declaration of
change_file_uniq1 was here
distcc[3222] ERROR: compile js.c on localhost failed
make[3]: *** [js.o] Erreur 1
make[3]: quittant le répertoire «
/var/tmp/portage/wnn7sdk-20011017/work/src/Wnn/jlib »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire «
/var/tmp/portage/wnn7sdk-20011017/work/src/Wnn »
make[1]: *** [all] Erreur 2
make[1]: quittant le répertoire « /var/tmp/portage/wnn7sdk-20011017/work/src
»
Make Start Time => dim sep 24 18:26:08 CEST 2006
Make Finished Time => dim sep 24 18:26:43 CEST 2006
Full build of Input Method.
>>> Source compiled.
>>> Test phase [not enabled]: dev-libs/wnn7sdk-20011017
>>> Install wnn7sdk-20011017 into /var/tmp/portage/wnn7sdk-20011017/image/ category dev-libs
!!! dolib: *.so* does not exist
I tested this on a least 4 boxes (pentium M, athlon, pentium II and III) stable
and unstable, with and without distcc.
The simple solution is to move the 'change_file_uniq1' function above the
implicit declaration. The is another function move to do in another file.
I don't know if it is the best solution but it compiles and scim-wnn don't
complain about it.
Portage 2.1.2_pre1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3,
2.6.17-suspend2-r4 i686)
=================================================================
System uname: 2.6.17-suspend2-r4 i686 Pentium III (Katmai)
Gentoo Base System version 1.12.5
Last Sync: Thu, 21 Sep 2006 01:00:07 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[enabled]
ccache version 2.4 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 2.0.29
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="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -ftree-vectorize -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/lib/X11/xkb
/usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo
/etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -ftree-vectorize -pipe
-fvisibility-inlines-hidden"
DISTDIR="/var/tmp/distfiles"
FEATURES="autoconfig distcc distlocks metadata-transfer parallel-fetch sandbox
sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://85.25.128.62
http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://pandemonium.tiscali.de/pub/gentoo/"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en fr ja zh zh_CN"
MAKEOPTS="-j6"
PKGDIR="/var/tmp/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync-exlude"
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/overlays/portage
/usr/portage/local/layman/liferea_overlay /usr/portage/local/layman/sunrise
/usr/portage/local/layman/gentopia /usr/portage/local/layman/gnome-experimental
/usr/portage/local/layman/wrobel /usr/portage/local/layman/hanno-xgl"
SYNC="rsync://percolator.esiee.net/gentoo-portage"
USE="x86 X a52 aalib acl acpi alsa avahi bash-completion beagle bitmap-fonts
bonjour bzip2 cairo canna cdr cjk cli crypt daap dbus dlloader dri dvd dvdr eds
elibc_glibc emboss encode esd evo exif fam fbcon ffmpeg firefox flac freewnn
gaim gecko-sdk gif glitz glx gnome gnutls gphoto2 gpm gstreamer gstreamer010
gtk gtkhtml h264 hal input_devices_evdev input_devices_keyboard
input_devices_mouse ipv6 isdnlog jabber jpeg kernel_linux lcms ldap libg++
libnotify libsexy linguas_en linguas_fr linguas_ja linguas_zh linguas_zh_CN
logrotate mad matroska mmx mng mp3 mpeg msn musicbrainz ncurses networkmanager
nfs nls nptl nptlonly nsplugin ogg opengl pam parse-clocks pcre pdf perl png
ppds pppd python quicktime readline reflection samba sdl session silc smp spell
spl sqlite sse ssl svg tcpd theora threads tiff truetype truetype-fonts
type1-fonts udev unicode userland_GNU v4l v4l2 video_cards_r200
video_cards_radeon video_cards_vesa vorbis win32codecs x264 xinerama xml xorg
xv xvid zlib"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK
(patch to follow)
I shall add that looking at wnn7sdk ebuild, it seems it requires virtual/x11
just for imake dependencie. I think that given gentoo is going to drop <xorg-7
support, we can change that to x11-misc/imake.
Not modular X ready either. This needs to be fixed or removed (together w/
app-i18n/scim-wnn that depends on it).
Fixed in CVS with slighty different patch (just aded prototypes in each
header).
Also fixed modular X dependencies. Thanks for the bug report.
indeed, that's cleaner :)
thanks for the work