Bug 63919 - libgpg-error-1.0-r1 fails to emerge
Bug#: 63919 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: CLOSED Severity: normal Priority: P2
Resolution: TEST-REQUEST Assigned To: crypto@gentoo.org Reported By: nocheinsven@gmx.de
Component: Library
URL: 
Summary: libgpg-error-1.0-r1 fails to emerge
Keywords:  
Status Whiteboard: 
Opened: 2004-09-13 12:17 0000
Description:   Opened: 2004-09-13 12:17 0000
emerge -v libgpg-error produces the output seen in the attached file and fails
to complete. 
(Actually I stumbled across this,when trying to emerge kde, since it's a
dependency of kde-pim)

Reproducible: Always
Steps to Reproduce:
1. emerge -v libgpg-error
2.
3.




Information from emerge info:

Portage 2.0.50-r11 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.6)
=================================================================
System uname: 2.6.6 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi alsa apm avi berkdb bitmap-fonts bonobo canna cdr
cryptcups dga directfb dnd dvd dvdr emacs encode esd esk fbcon flash foomaticdb
freetype gdbm gif gnome gpm gtk gtk2 guile icq imlib jabber jack java joystick
jpeg kde leim libg++ libwww mad mikmod mmx motif mozilla mpeg mule ncurses nls
oggvorbis opengl oscar oss pam pdflib perl png python qt quicktime readline sdl
slang spell ssl svga tcltk tcpd tetex truetype unicode videos x86 xml2 xmms
xprint xv zlib"

------- Comment #1 From Sven Siggelkow 2004-09-13 12:20:04 0000 -------
Created an attachment (id=39523) [details]
Output from "emerge -v libgpg-error"

------- Comment #2 From Andrey Shytov 2004-09-13 13:42:59 0000 -------
I had exactly the same problem. I then emerged libgpg-error with NLS support
off: 

USE="-nls" emerge libgpg-error

It worked.

------- Comment #3 From Sven Siggelkow 2004-09-13 14:13:56 0000 -------
Worked here as well. Thanks a lot!

------- Comment #4 From Wilson M. Michaels 2004-09-15 06:45:16 0000 -------
I have exactly the same problem. I work around works for me too. 

------- Comment #5 From Peter 2004-09-16 07:23:22 0000 -------
Confirmed here aswell, USE=-nls works for me too.

------- Comment #6 From Daniel Black 2004-09-16 14:14:56 0000 -------
solutions welcome peoples.

------- Comment #7 From Daniel Black 2004-09-17 01:07:36 0000 -------
Created an attachment (id=39745) [details]
config.log

Removed nls USE flag from libgpg-error-1.0 until the cause this can be found.
Copied libgpg-error-1.0 to libgpg-error-1.0-r1 to continue debugging effort.

Attached is my config.log. Please compare/and or attach yours for comparison
along with your emerge info.


bash-2.05b# emerge info
Portage 2.0.51_rc1 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1,
2.6.8-gentoo-r1 i686)
=================================================================
System uname: 2.6.8-gentoo-r1 i686 AMD Athlon(tm) XP 1900+
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"

------- Comment #8 From Kris Kelley 2004-09-20 21:43:50 0000 -------
Created an attachment (id=40050) [details]
config.log for libgpg-error-1.0; my system's "emerge info" output

------- Comment #9 From Kris Kelley 2004-09-20 21:45:05 0000 -------
I am seeing this problem with the new version of the 1.0 ebuild.  The compile
results are the same; it complains about LC_ALL not being defined, shortly
before the compile aborts.  Needless to say, disabling the nls USE flag no
longer works around this problem.  See the above attachments for my config.log
and "emerge info" output.

------- Comment #10 From Daniel Black 2004-09-22 01:56:50 0000 -------
Kris - I mentioned that the version bump to -r1 was the same as the previous
for testing. Yes its still broken. Use 1.0 or -nls if you don't want an error.
Solutions welcome. -r1 is there to assist in testing.

------- Comment #11 From Philippe Lafoucrière 2004-10-24 02:35:10 0000 -------
Removing the line with LC_ALL let me compile the package. I don't know how to
test the package now :p

------- Comment #12 From Daniel Black 2004-11-04 13:05:39 0000 -------
from where? src/gpg-error.c:262:  setlocale (LC_ALL, "" ) ? I tried this again
and it misteriously worked. Anyone else as lucky? I'll look more later

------- Comment #13 From Albert Holm 2004-11-04 14:11:34 0000 -------
Compiles if #include <locale.h> is added to gpg-error.c.

------- Comment #14 From Daniel Black 2004-11-16 03:39:58 0000 -------
libgpg-error-1.0-r1 fixed. Please test before and after sync and confirm that
it is broken before and fixed afterwards. I was unable to reproduce the problem
due to my system configuration changes however I have made the configure detect
and include the presence of locale.h.

You should see:
checking where the gettext function comes from... libc
checking for ANSI C header files... (cached) yes
checking for stdlib.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes

in the output.

Sorry this took so long.

------- Comment #15 From Wilson M. Michaels 2004-11-16 20:38:09 0000 -------
I just noticed that my post #4 was for libgpg-error-1.0 not
libgpg-error-1.9-r1. I was having the same problem and USE -nls worked for me.
It was fixed for libgpg-error-1.0 by something else. I just tried both 1.0 and
1.0-r1 and they compiled with nls just fine. 

------- Comment #16 From Daniel Black 2004-11-19 02:49:05 0000 -------
*** Bug 71652 has been marked as a duplicate of this bug. ***

------- Comment #17 From Daniel Black 2004-11-19 02:58:26 0000 -------
Julien, can you please include your complete output and attach config.log.
~x86 masked as requested.

As an alternate to downgrading you can try emergeing without nls USE flag.

------- Comment #18 From Julien Cayzac 2004-11-19 04:10:48 0000 -------
Created an attachment (id=44270) [details]
(julien) full emerge log

As requested

------- Comment #19 From Julien Cayzac 2004-11-19 04:12:35 0000 -------
Created an attachment (id=44271) [details]
(julien) config.log

As requested

------- Comment #20 From Daniel Black 2004-11-19 05:12:43 0000 -------
Julien does libgpg-error-1.0-r1 work? env ACCEPT_KEYWORDS=~x86 emerge
libgpg-error

------- Comment #21 From Julien Cayzac 2004-11-19 06:29:34 0000 -------
yes, 1.0-r1 compiles fine

------- Comment #22 From Benjamin Burns 2004-11-19 09:55:15 0000 -------
I tried doing this with USE=-nls, this did NOT work for me.  Only thing that
did work was downgrading to version 7, as seen in bug 71652.

------- Comment #23 From Daniel Black 2004-11-19 10:23:58 0000 -------
Ben are you talking about 1.0-r1?

------- Comment #24 From Benjamin Burns 2004-11-19 15:12:28 0000 -------
Daniel - Yes, talking about libgpg-error-1.0-r1.ebuild, or
libgpg-error-1.0.ebuild.  Same error with both.  Worked with
libgpg-error-0.7-r1.ebuild.  Needless to say I didnt try 6.  Note that I havent
had any problems with 0.7, Ive successfully compiled gnome, openoffice, etc.
since I resovled this problem by downgrading.  

------- Comment #25 From Daniel Black 2004-11-19 15:43:56 0000 -------
Ben, Please attach config.log, emerge info and the error output so I have
something to go by in attempting to get 1.0-r1 working for you.

------- Comment #26 From Benjamin Burns 2004-11-20 19:45:41 0000 -------
Daniel - I havent been able to duplicate the problem.  Ive even successfully
installed version 1.0-r1.  I tested with and without settings in /etc/make.conf
and doesnt make any difference.  The only other major change to my system was
that I recompiled the kernel.  This may have something to do with it, although
I really couldnt tell you what options I changed...  Sorry for the trouble...
Thanks for your help though.   Ben.

------- Comment #27 From Daniel Black 2004-11-20 19:58:08 0000 -------
ok - thanks ben

------- Comment #28 From Albert Holm 2005-09-06 15:03:33 0000 -------
This bug is still "test-request". I installed libgpg-error-1.1 (newer version) 
with both USE="-nls" and USE="nls" and it merged successfully. Kernel got nls 
support.