# emerge libgpg-error [...] config.status: creating po/POTFILES config.status: creating po/Makefile make all-recursive make[1]: Entering directory `/var/tmp/portage/libgpg-error-1.0-r1/work/libgpg-error-1.0' Making all in m4 make[2]: Entering directory `/var/tmp/portage/libgpg-error-1.0-r1/work/libgpg-error-1.0/m4' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/var/tmp/portage/libgpg-error-1.0-r1/work/libgpg-error-1.0/m4' Making all in src make[2]: Entering directory `/var/tmp/portage/libgpg-error-1.0-r1/work/libgpg-error-1.0/src' gawk -f ./mkstrtable.awk -v textidx=3 \ ./err-sources.h.in >err-sources.h gawk -f ./mkstrtable.awk -v textidx=3 \ ./err-codes.h.in >err-codes.h gawk -f ./mkerrnos.awk ./errnos.in >code-to-errno.h gawk -f ./mkerrcodes1.awk ./errnos.in >_mkerrcodes.h gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \ ./err-sources.h.in >err-sources-sym.h i686-pc-linux-gnu-gcc -E _mkerrcodes.h | grep GPG_ERR_ | gawk -f ./mkerrcodes.awk >mkerrcodes.h gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \ ./err-codes.h.in >err-codes-sym.h gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \ -v prefix=GPG_ERR_ -v namespace=errnos_ \ ./errnos.in >errnos-sym.h gawk -f ./mkheader.awk \ ./err-sources.h.in \ ./err-codes.h.in \ ./errnos.in \ ./gpg-error.h.in > gpg-error.h rm _mkerrcodes.h i686-pc-linux-gnu-gcc -I. -I. -o mkerrcodes ./mkerrcodes.c In file included from ./mkerrcodes.c:26: ./mkerrcodes.h:17: error: parse error before "GPG_ERR_EBADE" ./mkerrcodes.h:18: error: parse error before "GPG_ERR_EBADF" ./mkerrcodes.h:27: error: parse error before "GPG_ERR_ECHILD" ./mkerrcodes.h:28: error: parse error before "GPG_ERR_ECHRNG" ./mkerrcodes.h:29: error: parse error before "GPG_ERR_ECOMM" ./mkerrcodes.h:33: error: parse error before "GPG_ERR_EDEADLK" ./mkerrcodes.h:38: error: parse error before "GPG_ERR_EDQUOT" ./mkerrcodes.h:44: error: parse error before "GPG_ERR_EIDRM" ./mkerrcodes.h:47: error: parse error before "GPG_ERR_EINTR" ./mkerrcodes.h:49: error: parse error before "GPG_ERR_EIO" ./mkerrcodes.h:51: error: parse error before "GPG_ERR_EISDIR" ./mkerrcodes.h:53: error: parse error before "GPG_ERR_EL2HLT" ./mkerrcodes.h:65: error: parse error before "GPG_ERR_EMFILE" ./mkerrcodes.h:66: error: parse error before "GPG_ERR_EMLINK" ./mkerrcodes.h:70: error: parse error before "GPG_ERR_ENAVAIL" ./mkerrcodes.h:74: error: parse error before "GPG_ERR_ENFILE" ./mkerrcodes.h:75: error: parse error before "GPG_ERR_ENOANO" ./mkerrcodes.h:77: error: parse error before "GPG_ERR_ENOCSI" ./mkerrcodes.h:80: error: parse error before "GPG_ERR_ENOENT" ./mkerrcodes.h:82: error: parse error before "GPG_ERR_ENOLCK" ./mkerrcodes.h:85: error: parse error before "GPG_ERR_ENOMEM" ./mkerrcodes.h:86: error: parse error before "GPG_ERR_ENOMSG" ./mkerrcodes.h:87: error: parse error before "GPG_ERR_ENONET" ./mkerrcodes.h:88: error: parse error before "GPG_ERR_ENOPKG" ./mkerrcodes.h:96: error: parse error before "GPG_ERR_ENOTDIR" ./mkerrcodes.h:98: error: parse error before "GPG_ERR_ENOTNAM" ./mkerrcodes.h:103: error: parse error before "GPG_ERR_ENXIO" ./mkerrcodes.h:106: error: parse error before "GPG_ERR_EPERM" ./mkerrcodes.h:116: error: parse error before "GPG_ERR_ERESTART" ./mkerrcodes.h:117: error: parse error before "GPG_ERR_EROFS" ./mkerrcodes.h:121: error: parse error before "GPG_ERR_ESRCH" ./mkerrcodes.h:128: error: parse error before "GPG_ERR_ETXTBSY" ./mkerrcodes.h:130: error: parse error before "GPG_ERR_EUNATCH" ./mkerrcodes.h:131: error: parse error before "GPG_ERR_EUSERS" make[2]: *** [mkerrcodes] Error 1 make[2]: Leaving directory `/var/tmp/portage/libgpg-error-1.0-r1/work/libgpg-error-1.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libgpg-error-1.0-r1/work/libgpg-error-1.0' make: *** [all] Error 2 !!! ERROR: dev-libs/libgpg-error-1.0-r1 failed. !!! Function src_compile, Line 35, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. And the mkerrcodes.h is really broken: [...] { 59, "GPG_ERR_EBFONT" }, { 16, "GPG_ERR_EBUSY" }, { 125, "GPG_ERR_ECANCELED" }, { 10 GPG_ERR_ECHILD, "GPG_ERR_" }, { 44 GPG_ERR_ECHRNG, "GPG_ERR_" }, { 70 GPG_ERR_ECOMM, "GPG_ERR_" }, { 103, "GPG_ERR_ECONNABORTED" }, { 111, "GPG_ERR_ECONNREFUSED" }, [...] As you see, there are a missing ',' in the lines beginning with 10, 44 and 70. Reproducible: Always Steps to Reproduce: 1.emerge libgpg-error 2. 3. emerge info: Gentoo Base System version 1.6.8 Portage 2.0.51-r13 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r5 i686) ================================================================= System uname: 2.6.10-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz Python: dev-lang/python-2.3.4 [2.3.4 (#1, Jan 14 2005, 10:32:14)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -mfpmath=sse -mmmx -msse2 -fomit-frame-pointer -fforce-addr -pipe" CHOST="i686-pc-linux-gnu" 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="-O2 -march=pentium4 -mfpmath=sse -mmmx -msse2 -fomit-frame-pointer -fforce-addr -pipe" DISTDIR="/usr/portage/distfiles"FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox severe sfperms strict" GENTOO_MIRRORS="http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.inode.at/ http://mirror.switch.ch/mirror/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="GAPING_SECURITY_HOLE S3TC X X509 Xaw3d aac acpi acpi4linux alsa apache2 apm artworkextra avi bash-completion bdf beepmp bitmap-fonts bmp bonobo bzlib calendar cap caps cddb cdinstall cdparanoia cdr chroot clamav cpdflib crypt cscope css ctype cups dba dbx devmap dga dio divx4linux dmx droproot dts dvd dvdr dvdread edl eds encode erandom esd ethereal evo exif extensions f77 fam ffmpeg fftw flac font-server foomaticdb fortran ftp gb gd gdbm gif gimp gimpprint gmail gnome gnomedb gphoto2 gpm graphviz gs gstreamer gtk gtk2 gtkhtml howl idea image imagekits imagemagick imlib imlib2 intl ipv6 jabber java jce jpeg ldap libg++ libgda libwww live lzo lzw lzw-tiff mad matroska mbox md5sum mikmod mime mimencode mjpeg mng mono motif mozsvg mozxmlterm mp3 mpeg mpi mplayer mythtv mzscheme ncurses network nls nntp no_wxgtk1 nocd nptl offensive ofx oggvorbis openal opengl oss pam pcre pda pdf pdflib perl png posix ppds python quicktime readline real sdl silc slang smartcard smime sndfile sockets sox speex spell ssl svg sysvipc szip tcpd tga theora threads tiff transcode truetype truetype-fonts type1 type1-fonts usb uudeview v4l v4l2 vhosts videos vim vim-pager vim-with-x wmf x86 xanim xface xim xml2 xosd xpm xv xvid xvmc yv12 zlib zvbi" Unset: LDFLAGS, PORTDIR_OVERLAY awk version (maybe important): GNU Awk 3.1.4
same problem here.
Also seen http://bsdforum.or.kr/viewtopic.php?t=764 English translation: http://babelfish.altavista.com/babelfish/tr?lp=ko_en&url=http%3A//bsdforum.or.kr/viewtopic.php%3Ft%3D764 I couldn't repoduce on gawk 3.1.4 or 3.1.3 See if a "C" locale fixes it?
It dosen't compile with the "C" locale or if you unset the LANG and LC_* variables. It stops with the same error.
Ok, I'm sure, that the bug NOT in libgpg-error but in gawk-3.1.4 The awk script mkerrcodes.awk should got 2 fields in every line, but it got just 1 field in some lines and this field has a space separator in it. If you change the order of the lines the bug sometimes dissapears. I downgrade my gawk to 3.1.3-r2 and it seems it works well. Please reassign the bug to the gawk-3.1.4.
if you unset all your LANG/LOCALE stuff and re-emerge gawk and then re-emerge libgpg-error, does it work ?
Works like a charm for me. I synced this morning and emerged dev-libs/libgpg-error-1.0-r1. emerge info: Portage 2.0.51-r14 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-nitro4 i686) ================================================================= System uname: 2.6.10-nitro4 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Jan 7 2005, 20:41:51)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.8.5-r2, 1.6.3, 1.9.4, 1.5, 1.7.9 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r3 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -mtune=pentium4 -O3 -pipe -fomit-frame-pointer -ffast-math -msse -msse2 -mmmx -m32 -mfpmath=sse,387 -fforce-addr -ftracer -frename-registers" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/init.d /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -mtune=pentium4 -O3 -pipe -fomit-frame-pointer -ffast-math -msse -msse2 -mmmx -m32 -mfpmath=sse,387 -fforce-addr -ftracer -frename-registers -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig candy ccache distlocks fixpackages sandbox sfperms" GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo/" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://mirror.hamakor.org.il/gentoo-portage" USE="x86 X aalib acpi alsa apache2 apm berkdb bidi bitmap-fonts cdparanoia cdr crypt cups encode esd f77 fam fbcon font-server foomaticdb fortran gdbm gif gphoto2 gpm gtk2 iconv icq imagemagick imap imlib ipv6 jack jpeg libg++ libwww mad maildir mikmod mmx motif mpeg msn mysql ncurses nls nptl oggvorbis opengl pam pam-mysql pdflib perl php png python quicktime readline samba sdl spell sse ssl tcpd tidy tiff truetype truetype-fonts type1-fonts unicode xinetd xml xml2 xv zlib linguas_he linguas_en" Gawk: 3.1.4
It works if you unset the LANG/LOCALE stuff. You don't need to re-emerge gawk. Previously I made a mistake: I just unset the LANG and LC_* variables, and did not erase them from the /etc/profile.env. When the emerge system started a new shell is re-reads them. My default LANG is hu_HU.UTF-8. Emerging libgpg-error works if you unset LANG or if you set it to hu_HU but do not work with hu_HU.UTF8. It seems gawk has some problem with handling UTF-8 locales.
correct output would have been: ... { 125, "GPG_ERR_ECANCELED" }, { 10, "GPG_ERR_ECHILD" }, { 44, "GPG_ERR_ECHRNG" }, ... can you guys who have this problem try this (make sure LANG / LC_ALL is set to whatever value you normally use): tar -zxf libgpg-error-1.0.tar.gz cd libgpg-error-1.0/src gawk -f ./mkerrcodes1.awk ./errnos.in >_mkerrcodes.h gcc -E _mkerrcodes.h | grep GPG_ERR_ | gawk -f ./mkerrcodes.awk >mkerrcodes.h then post the '_mkerrcodes.h' and 'mkerrcodes.h' files as attachments
please try gawk-3.1.4-r1 actually
Created attachment 49796 [details] _mkerrcodes.h with LANG=hu_HU.UTF8, gawk-3.1.4
Created attachment 49797 [details] mkerrcodes.h with LANG=hu_HU.UTF8, gawk-3.1.4
I just make emerge sync, and there is no gawk-3.1.4-r1 in the portage tree.
impatient arent we ? :P sync up now
gawk-3.1.4-r1 works well.