dev-libs/confuse-2.6-r1 fails to compile, the compiler stops in confuse.c. Reproducible: Always Steps to Reproduce: 1. emerge confuse Actual Results: x86_64-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -Wall -march=athlon64 -pipe -msse3 -msse2 -msse -MT confuse.lo -MD -MP -MF .deps/confuse.Tpo -c confuse.c -fPIC -DPIC -o .libs/confuse.o confuse.c: In function 'cfg_init': confuse.c:1112: warning: implicit declaration of function 'setlocale' confuse.c:1112: error: 'LC_MESSAGES' undeclared (first use in this function) confuse.c:1112: error: (Each undeclared identifier is reported only once confuse.c:1112: error: for each function it appears in.) confuse.c:1113: error: 'LC_CTYPE' undeclared (first use in this function) make[2]: *** [confuse.lo] Erreur 1 make[2]: quittant le répertoire « /var/tmp/portage/dev-libs/confuse-2.6-r1/work/confuse-2.6/src » make[1]: *** [all-recursive] Erreur 1 make[1]: quittant le répertoire « /var/tmp/portage/dev-libs/confuse-2.6-r1/work/confuse-2.6 » make: *** [all] Erreur 2 * * ERROR: dev-libs/confuse-2.6-r1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 166: 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/log/portage/dev-libs:confuse-2.6-r1:20080506-181335.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/confuse-2.6-r1/temp/environment'. * Expected Results: Successful emerge. Portage 2.1.5_rc7 (default-linux/amd64/2006.1/desktop, gcc-4.2.3, glibc-2.7-r2, 2.6.24-gentoo-r4 x86_64) ================================================================= System uname: 2.6.24-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3500+ Timestamp of tree: Tue, 06 May 2008 15:45:03 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r4, 2.5.2-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.3 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.62 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.25-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -pipe -msse3 -msse2 -msse " 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/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=athlon64 -pipe -msse3 -msse2 -msse " DISTDIR="/usr/portage/distfiles" FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ http://ftp.heanet.ie/pub/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ " LANG="fr_FR.utf8" LDFLAGS="" LINGUAS="fr en" PKGDIR="/usr/portage/packages" 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" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="7zip X X509 a52 aac aalib accessibility alsa amd64 amr amrnb amrwb apache2 apm aqua_theme arts artworkextra audiofile avahi background bash-completion berkdb bittorrent bl bonobo browserplugin bzip2 c++ cairo calendar carbone_theme cdda cddb cdio cdparanoia cdr cdrom cgi chroot cjk cli cpudetection cracklib crypt ctype cups curl cvs cvsgraph daap dbus dga directfb djvu dri dts dv dvb dvd dvdr dvdread dvi eds emboss encode equalizer esd f77 fam fame fat ffmpeg firefox flac flash flx fmod font-server fortran gb gd gdbm gif gimp gimpprint glitz glut gnome gnuplot gnustep gpg2-experimental gpm graphviz gs gstreamer gtk gtk2 gtkhtml guile gvim gzip hal hddtemp hfs howl https iconv idn ieee1394 imagemagick imlib insecure-savers ipv6 isdnlog jack java javascript jbig jfs joystick jpeg jpeg2k kde keyring ladspa latex lcms libcaca libnotify libsamplerate libsexy lm_sensors logitech-mouse lua lzo mad math matroska mbrola mdnsresponder-compat midi mikmod mjpeg mkv mmkeys mng mod modplug mono motif mozilla mp3 mp4 mpd mpeg mplayer mudflap musepack mysql mysqli nas nautilus ncurses network networking networkmanager nls nntp nptl nptlonly nsplugin ntfs nvidia objc objc++ objc-gc ocaml offensive ogg openal openexr opengl openmp pam pcre pdf perl php plotutils png posix postgres povray ppds pppd pulseaudio python qt3 qt3support qt4 quicktime readline reflection regex reiser4 reiserfs rpm rtc rtsp ruby samba scanner scenarios screen sdl seamonkey sensord session sndfile sound sox speex spell spl ssl ssse3 svg sysfs szip tagwriting tcl tcpd tetex tga theora threads tiff timidity tk tokenizer trayicon truetype unicode unzip upnp usb v4l v4l2 vcd vcdimager videos vim vim-pager vim-with-x vlm vorbis vxwindows wavpack wma wma123 wmf x264 xanim xcb xforms xfs xft xine xml xml2 xmlreader xmlwriter xorg xosd xprint xscreensaver xsettings xv xvid xvmc yv12 zlib" ALSA_CARDS="via82xx mpu401" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr en" USERLAND="GNU" VIDEO_CARDS="vesa nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
With CFLAGS="-march=athlon64" both 2.6 and 2.6-r1 versions fail to compile. However, I think the reason is very simple: the <locale.h> header is not included in any of the confuse source files. I propose to patch the confuse.h file (see attached ebuild). I tested the new ebuild and it works for me.
Created attachment 154101 [details] confuse-2.6-r1.ebuild
Suggested ebuild does compile. Thanks. I let you change the status to the right state.
This is due to -O0: when optimisations are turned off libintl.h does not include locale.h; instead of using that nasty echo, on confuse-devel there's a patch from me to let this build. See http://blog.flameeyes.eu/2008/09/02/testing-the-corner-cases for more information about the problem.
AFAIK (and as explained by Diego) this is a duplicate of BUG236347 and fixed in at least the version (=dev-libs/confuse-2.6-r3) that is stable in all supported architectures
(In reply to comment #5) > AFAIK (and as explained by Diego) this is a duplicate of BUG236347 and fixed in > at least the version (=dev-libs/confuse-2.6-r3) that is stable in all supported > architectures Assuming this is fixed.