Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38991 - Unable to merge latest latest version of gettext(0.12.1), breaks emerge -u system
Summary: Unable to merge latest latest version of gettext(0.12.1), breaks emerge -u sy...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-21 23:09 UTC by Nelson Leblanc
Modified: 2004-10-03 01:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nelson Leblanc 2004-01-21 23:09:29 UTC
when i try to 'emerge -u system', gettext causes it to fail because it can't compile.

emerge -up system shows:
[ebuild     U ] sys-devel/gettext-0.12.1 [0.11.5-r1]
and all the other stuff that needs to be upgraded.

Here are the last couple of lines of the attempted compile:
make[3]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime/intl'
Making all in intl-java
make[3]: Entering directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime/intl-java'
/bin/sh ../lib/javacomp.sh -d . ./gnu/gettext/GettextResource.java
make[3]: *** [gnu/gettext/GettextResource.class] Killed
make[3]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime/intl-java'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime'
make: *** [all-recursive] Error 1

!!! ERROR: sys-devel/gettext-0.12.1 failed.
!!! Function src_compile, Line 50, Exitcode 2
!!! (no error message)

Reproducible: Always
Steps to Reproduce:
1.emerge sync
2.emerge -u system

Actual Results:  
portage attempted to compile gettext and something caused it to fail?

Expected Results:  
updated!

Sorry if this bug report is absolutely useless and poorly written.

Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/specs
Configured with: /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/configure 
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.2 
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include 
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2 
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/man 
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/info --enable-shared 
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib 
--enable-languages=c,c++,f77,objc,java --enable-threads=posix --enable-long-long 
--disable-checking --enable-cstdio=stdio --enable-clocale=generic 
--enable-__cxa_atexit --enable-version-specific-runtime-libs 
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3 
--with-local-prefix=/usr/local --enable-shared --enable-nls 
--without-included-gettext
Thread model: posix
gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-01-21 23:13:53 UTC
nelson, please paste the output of: emerge info

into this bug
Comment 2 Nelson Leblanc 2004-01-21 23:15:51 UTC
Portage 2.0.49-r4 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.24)
=================================================================
System uname: 2.4.24 i686 AMD Duron(tm) Processor
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=athlon -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://mirror.tucdemonic.org/gentoo/ http://gentoo.noved.org/ http://gentoo.ccccom.com ftp://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm arts avi crypt cups encode foomaticdb gif gpm gtk gtk2 imlib jpeg kde gnome libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl pdflib png qt quicktime sdl slang spell svga truetype X xml2 xmms xv zlib gdbm berkdb readline java tcpd pam ssl perl python"
Comment 3 M Grundman 2004-01-22 05:23:42 UTC
I have two systems, for the first "big" one gettext  builds and for the second "small" it does not build. Maybe the problem depends of the building history, too. Two systems are up to date, the "small" has glibc-2.3.2-r3 with gettext-0.11.5-r1. The building history of two systems was different.
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2004-01-22 08:47:37 UTC
Its prob the OOM killer ?  Check 'dmesg' output after that failure.

Seemant, do we really need the java stuff?
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2004-01-22 12:30:50 UTC
azarah, no I'm not sure that we do need it -- I'm rather inclined to disable it by default, and those who *NEED* or *WANT* it can uncomment some stuff.  what do you think?
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2004-01-23 09:31:02 UTC
I don't have an issue - the NEED part is what worry me though.  Ill add the
java guys to have a say.
Comment 7 Adrian Almenar 2004-01-23 11:35:49 UTC
Well i have seen in the past problems of java being killed, and it was due to GRSecurity and PAX. I compiled it on a machine that has java enabled, gs-sources-2.4.23_pre8-r2 and it worked.

Can you post "java -version" output ?

Ill try to investigate but, which kernel version are you using (i mean which package did you installed (vanilla|aa-sources|gentoo-sources|xxxxxx))?
Comment 8 Nelson Leblanc 2004-01-23 21:01:03 UTC
I am using vanilla sources patched with grsecurity.  That must be my problem.  Is there any way around this Adrian?
Comment 9 solar (RETIRED) gentoo-dev 2004-01-23 23:59:47 UTC
Nelson,

If PaX were to kill something it would log it.
You would see an event of this if you were to type dmesg.

Here the solution for java/gettext/pdflib/mplayer/xfree and 
misc sanbox violations etc..

emerge -C chpax
rm /etc/{init,conf}.d/chpax
emerge '>=sys-apps/chpax-0.6.1'
/etc/init.d/chpax restart

That should get rid of most of the java errors.

99% chance this bug can be closed now.
Comment 10 REdOG 2004-02-05 08:15:51 UTC
I have the exact same error on ppc.
my emerge --info is :

Portage 2.0.49-r20 (default-ppc-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.21-ppc-r2)
=================================================================
System uname: 2.4.21-ppc-r2 ppc 
Gentoo Base System version 1.4.3.12
ccache version 2.2 [enabled]
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CFLAGS="-mcpu=7450 -O2 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=7450 -O2 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache digest"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib apache1 apache2 arts berkdb bonobo cdr cups directfb dvd esd ethereal fbcon foomaticdb gd gdbm gif gnome-libs gpm gtk gtk2 gtkhtml guile imlib jpeg kde ldap libwww mitshm motif mozcalendar mozilla mysql nls offensive oggvorbis opengl oss pam perl png ppc python qt radeon readline samba scanner sdl slang ssl tcltk tcpd truetype xmms xv"
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-08 03:48:15 UTC
Redog, anything in the logs (OOM?).  Then, if so, are/does ppc/you use grsecurity
or PaX ?
Comment 12 Ethernal 2004-02-16 14:15:59 UTC
i have the same problem :(

#>emerge -u gettext
...
make[2]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime'
> make: *** [all-recursive] Error 1
>
> !!! ERROR: sys-devel/gettext-0.12.1 failed.
> !!! Function src_compile, Line 50, Exitcode 2
> !!! (no error message)

Here is my configuration : 
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.23-grsec)
=================================================================
System uname: 2.4.23-grsec i686 Celeron (Mendocino)
Gentoo Base System version 1.4.3.10
Autoconf: sys-devel/autoconf-2.57-r1
Automake: sys-devel/automake-1.7.5-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo http://gentoo.oregonstate.edu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="apm arts avi berkdb cdr crypt cups encode esd foomaticdb gdbm gif gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Comment 13 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-19 10:59:51 UTC
We cannot see the error ...
Comment 14 Ethernal 2004-02-21 06:13:19 UTC
The problem comes from blackdown-jdk-1.4.1.
So, I uninstall blackdown-jdk-1.4.1 (emerge -C blackdown-jdk) and then I emerge gettext.
It works for me !
Comment 15 Ethernal 2004-02-21 11:01:24 UTC
Here's my syslog lines if it can help :
Feb 19 16:07:00 XXXXXX kernel: grsec: From ****************: exec of /bin/bash (/bin/sh ../lib/javacomp.sh -d . ./gnu/gettext/GettextResource. ) by (make:5519) UID(0) EUID(0), parent (make:7458) UID(0) EUID(0)
Feb 19 16:07:00 XXXXXX kernel: grsec: From ****************: exec of /opt/blackdown-jdk-1.4.1/bin/javac (/opt/blackdown-jdk-1.4.1/bin/javac -d . ./gnu/gettext/GettextR ) by (sh:5519) UID(0) EUID(0), parent (make:7458) UID(0) EUID(0)
Feb 19 16:07:00 XXXXXX kernel: grsec: From ****************: exec of /opt/blackdown-jdk-1.4.1/bin/javac (/opt/blackdown-jdk-1.4.1/bin/javac -d . ./gnu/gettext/GettextR ) by (javac:5519) UID(0) EUID(0), parent (make:7458) UID(0) EUID(0)
Feb 19 16:07:00 XXXXXX kernel: PAX: From ****************: terminating task: /opt/blackdown-jdk-1.4.1/bin/javac(javac):5519, uid/euid: 0/0, PC: 2a884b28, SP: 5ee9f08c
Feb 19 16:07:00 XXXXXX kernel: PAX: bytes at PC: 68 7f 02 00 00 d9 6c 24 00 58 c3 90 cc cc cc cc 00 00 00 00
Feb 19 16:07:00 XXXXXX kernel: grsec: From ****************: attempted resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 by (javac:5519) UID(0) EUID(0), parent (make:7458) UID(0) EUID(0)
Feb 19 16:07:00 XXXXXX kernel: grsec: From ****************: chdir to /var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime/intl-java by (make:7458) UID(0) EUID(0), parent (sh:22552) UID(0) EUID(0)
Feb 19 16:07:00 XXXXXX kernel: grsec: From ****************: chdir to /var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime by (make:26206) UID(0) EUID(0), parent (make:9113) UID(0) EUID(0)
Feb 19 16:07:00 XXXXXX kernel: grsec: From ****************: chdir to /var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime by (make:9113) UID(0) EUID(0), parent (sh:21708) UID(0) EUID(0)
Feb 19 16:07:00 XXXXXX kernel: grsec: From ****************: chdir to /var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1 by (make:8841) UID(0) EUID(0), parent (ebuild.sh:19628) UID(0) EUID(0)

So, I think that blackdown-jdk is the cause of my problem.
As i said in my previous post, when i uninstalled this package, the compilation of gettext works well.
Comment 16 Adrian Almenar 2004-02-22 08:49:55 UTC
Again, the problem its not blackdown, its a misconfigured grsecurity.

Try installing "sys-apps/chpax" then later emerge blackdown-jdk.

That should solve your problem.
Comment 17 Benjamin West 2004-03-11 15:36:22 UTC
I get this same error when doing a bootstrap.sh using a stage1 tar.bz2 from lug.mtu.edu/gentoo.  I am chrooted in from a fresh (yum update'd) fedora core instalation on same drive although I have had this problem several times, including when using liveCD to boot.  I don't think I had this problem when using a stage from november, but I don't think the CD is any good anymore.  Is the stage1 tar.bz2 ok?

arch: i686 1400Mhz intel Celeron on a Shuttle/Intel i815 chipset
Comment 18 SpanKY gentoo-dev 2004-10-03 01:06:32 UTC
user's system is misconfigured