Error emerging vim. Same error when trying to compile it from source from vim website. Here is the last lines that describe the problem: >>> Source configured. >>> Compiling source in /var/tmp/portage/app-editors/vim-7.2.303/work/vim72 ... make: Entering directory `/var/tmp/portage/app-editors/vim-7.2.303/work/vim72/src' CC="i686-pc-linux-gnu-gcc -Iproto -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5/5.8.8/i686-linux/CORE -I/usr/include/python2.6 -pthread " srcdir=. sh ./osdef.sh mkdir objects make: Leaving directory `/var/tmp/portage/app-editors/vim-7.2.303/work/vim72/src' make Starting make in the src directory. If there are problems, cd to the src directory and run make there cd src && make first make[1]: Entering directory `/var/tmp/portage/app-editors/vim-7.2.303/work/vim72/src' i686-pc-linux-gnu-gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -march=pentium-m -pipe -mtune=pentium-m -D_FORTIFY_SOURCE=1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5/5.8.8/i686-linux/CORE -I/usr/include/python2.6 -pthread -o objects/buffer.o buffer.c In file included from vim.h:282, from buffer.c:28: auto/osdef.h:18: error: conflicting types for 'printf' auto/osdef.h:19: error: conflicting types for 'fprintf' auto/osdef.h:20: error: conflicting types for 'sprintf' auto/osdef.h:30: error: conflicting types for 'fwrite' auto/osdef.h:31: error: conflicting types for 'fputs' auto/osdef.h:63: error: conflicting types for 'memmove' auto/osdef.h:75: error: conflicting types for 'strtol' /usr/include/stdlib.h:184: note: previous declaration of 'strtol' was here auto/osdef.h:78: error: conflicting types for 'strftime' auto/osdef.h:81: error: conflicting types for 'strcasecmp' auto/osdef.h:84: error: conflicting types for 'strncasecmp' auto/osdef.h:89: error: conflicting types for 'atoi' /usr/include/stdlib.h:284: note: previous definition of 'atoi' was here auto/osdef.h:90: error: conflicting types for 'atol' /usr/include/stdlib.h:289: note: previous definition of 'atol' was here auto/osdef.h:94: error: conflicting types for 'execvp' auto/osdef.h:119: error: conflicting types for 'fchown' /usr/include/unistd.h:446: note: previous declaration of 'fchown' was here auto/osdef.h:121: error: conflicting types for 'getcwd' /usr/include/bits/unistd.h:201: note: previous definition of 'getcwd' was here auto/osdef.h:133: error: conflicting types for 'getenv' /usr/include/stdlib.h:566: note: previous declaration of 'getenv' was here auto/osdef.h:134: error: conflicting types for 'setenv' /usr/include/stdlib.h:584: note: previous declaration of 'setenv' was here auto/osdef.h:135: error: conflicting types for 'putenv' /usr/include/stdlib.h:578: note: previous declaration of 'putenv' was here auto/osdef.h:138: error: conflicting types for 'gethostname' /usr/include/bits/unistd.h:345: note: previous definition of 'gethostname' was here auto/osdef.h:153: error: conflicting types for 'write' /usr/include/unistd.h:335: note: previous declaration of 'write' was here In file included from /usr/include/X11/Intrinsic.h:56, from structs.h:84, from vim.h:1614, from buffer.c:28: /usr/include/X11/Xlib.h:70: error: conflicting types for '_Xmblen' auto/osdef.h:204: note: previous declaration of '_Xmblen' was here make[1]: *** [objects/buffer.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-editors/vim-7.2.303/work/vim72/src' make: *** [first] Error 2 Tried re-emerging perl and libperl, no avail. Here is my "emerge --info =app-editors/vim-7.2.303" Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.10.1-r1, 2.6.34-gentoo i686) ================================================================= System Settings ================================================================= System uname: Linux-2.6.34-gentoo-i686-Intel-R-_Pentium-R-_M_processor_1.70GHz-with-gentoo-1.12.13 Timestamp of tree: Tue, 22 Jun 2010 19:00:22 +0000 app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.5-r2, 3.1.2-r3 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.3-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe -mtune=pentium-m" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=pentium-m -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="et_EE" LC_ALL="et_EE" LDFLAGS="-Wl,-O1" LINGUAS="en" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/esteid" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac accessibility acl acpi alsa amarok amarok2 amazon archive arts audacious autoipd automount bash-completion berkdb bluetooth bonjour branding bzip2 cairo cardbus ccache cdda cddax cdr cdrkit cdrom cdrtools cifsupcall cli cmake colordiff connection-sharing consolekit contrast corefonts cpudetection cpufreq cracklib crypt cups cupsddk cursors cxx dbus dhclient dhcp dhcpcd dillo disk-partition dri dts dvd dvdr eap-sim emboss encode exif fam fat firefox firefox3 flac flash foomaticdb fortran gdbm geolocation gif gimp glibc-compat20 gmplayer google-gadgets gpm gps grub gstreamer gtk hal hddtemp iconv id3 id3tag ioctl ipod ipv6 irda java jpeg jpeg2k kde kde4 kdm keyboard laptop lcms ldap lensfun libnotify lm_sensors mad mediaplayer mikmod mmx mmxext mng modules moznopango mp3 mp3tunes mp4 mpeg mpeg2 mplayer msn mudflap mysql ncurses nls nptl nptlonly nsplugin ntp obex odbc offensive ogg old-daemons opengl openmp openssl openvpn pam pango pcmcia pcre pdf perl plasma png ppds pppd python qt3 qt3support qt4 quicktime rdesktop readline reflection reiserfs samba sasl scanner sdl semantic-desktop session skins smartcard spell spl sse sse2 ssh ssl startup-notification svg symlink sysfs tcpd tiff transmitter truetype udev unicode upnp usb vim-syntax vlc vorbis webkit wicd win32codecs winbind winetools wma wps x264 x86 xcb xcomposite xindy xinerama xml xmlpatterns xorg xosd xulrunner xv xvid zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="synaptics keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="all" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= app-editors/vim-7.2.303 was built with the following: USE="acl bash-completion gpm nls perl python -cscope -debug -minimal -ruby -vim-pager -vim-with-x" CFLAGS="-O2 -march=pentium-m -pipe" Reproducible: Always Steps to Reproduce: 1.Emerge app-editors/vim-7.2.303 2. 3. Actual Results: The compile does not work Expected Results: It should compile emerge --info Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.10.1-r1, 2.6.34-gentoo i686) ================================================================= System uname: Linux-2.6.34-gentoo-i686-Intel-R-_Pentium-R-_M_processor_1.70GHz-with-gentoo-1.12.13 Timestamp of tree: Tue, 22 Jun 2010 19:00:22 +0000 app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.5-r2, 3.1.2-r3 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.3-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe -mtune=pentium-m" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=pentium-m -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="et_EE" LC_ALL="et_EE" LDFLAGS="-Wl,-O1" LINGUAS="en" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/esteid" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac accessibility acl acpi alsa amarok amarok2 amazon archive arts audacious autoipd automount bash-completion berkdb bluetooth bonjour branding bzip2 cairo cardbus ccache cdda cddax cdr cdrkit cdrom cdrtools cifsupcall cli cmake colordiff connection-sharing consolekit contrast corefonts cpudetection cpufreq cracklib crypt cups cupsddk cursors cxx dbus dhclient dhcp dhcpcd dillo disk-partition dri dts dvd dvdr eap-sim emboss encode exif fam fat firefox firefox3 flac flash foomaticdb fortran gdbm geolocation gif gimp glibc-compat20 gmplayer google-gadgets gpm gps grub gstreamer gtk hal hddtemp iconv id3 id3tag ioctl ipod ipv6 irda java jpeg jpeg2k kde kde4 kdm keyboard laptop lcms ldap lensfun libnotify lm_sensors mad mediaplayer mikmod mmx mmxext mng modules moznopango mp3 mp3tunes mp4 mpeg mpeg2 mplayer msn mudflap mysql ncurses nls nptl nptlonly nsplugin ntp obex odbc offensive ogg old-daemons opengl openmp openssl openvpn pam pango pcmcia pcre pdf perl plasma png ppds pppd python qt3 qt3support qt4 quicktime rdesktop readline reflection reiserfs samba sasl scanner sdl semantic-desktop session skins smartcard spell spl sse sse2 ssh ssl startup-notification svg symlink sysfs tcpd tiff transmitter truetype udev unicode upnp usb vim-syntax vlc vorbis webkit wicd win32codecs winbind winetools wma wps x264 x86 xcb xcomposite xindy xinerama xml xmlpatterns xorg xosd xulrunner xv xvid zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="synaptics keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="all" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Full build log and config.log would be useful here.
Created attachment 237171 [details] build.log
Created attachment 237173 [details] environment log
Lets try with config.log again. Probably that generated auto/osdef.h could be helpful too.
Created attachment 237477 [details] output of ./configure
Comment on attachment 237477 [details] output of ./configure I am not sure how to get this osdef file
Well, third time's the charm - attach 'config.log' - that one of the files, configure script produces, where the correctly written checks tend to leave more info than the console output of configure. The other file is obviously in the source tree after it gets generated during CC="i686-pc-linux-gnu-gcc -Iproto -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5/5.8.8/i686-linux/CORE -I/usr/include/python2.6 -pthread " srcdir=. sh ./osdef.sh
Created attachment 237591 [details] The correct config.log
Created attachment 237593 [details] auto/osdef
OK, one more thing: see if you can emerge it while LC_ALL is set to i.e 'C' or 'en_US.UTF-8'. On that note (regarding your environment): it should be enough to set LANG, LC_ALL is mainly for overrides.
Same thing with en_US.UTF-8 and same with C. (In reply to comment #10) > OK, one more thing: see if you can emerge it while > LC_ALL is set to i.e 'C' or 'en_US.UTF-8'. > > On that note (regarding your environment): it should be enough to set LANG, > LC_ALL is mainly for overrides. >
My bad, forgot to update environment. With en_US-UTF-8 compiles well. How can I compile with my proper localization? (In reply to comment #11) > Same thing with en_US.UTF-8 and same with C. > > > (In reply to comment #10) > > OK, one more thing: see if you can emerge it while > > LC_ALL is set to i.e 'C' or 'en_US.UTF-8'. > > > > On that note (regarding your environment): it should be enough to set LANG, > > LC_ALL is mainly for overrides. > > >
OK, time to assign. et_EE is often a problem, due to a-z not covering the whole ASCII alphabet. It's a valid bug though. However, it's strange it wasn't reported earlier, so probably either the problem will be on your side or recently a not quite thought out change was introduced somewhere in the build system.
ok, running into the same problem here, also on et_EE. strange thing is 303 compiles, but everything from 442 on fails. sudo ACCEPT_KEYWORDS=~x86 LC_ALL=en_US-UTF-8 emerge -va vim succeeds for me (currently ~7.3)
I don't think I've seen this in the 7.4 branch at all. Recommend closing this bug.
(In reply to Leho Kraav (:macmaN @lkraav) from comment #15)