Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104347 - dev-java/jakarta-regexp-1.3-r2 fails with sun-jdk-1.4.2.09: java-config error
Summary: dev-java/jakarta-regexp-1.3-r2 fails with sun-jdk-1.4.2.09: java-config error
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-31 00:17 UTC by Ernst de Haan
Modified: 2005-09-12 01:42 UTC (History)
0 users

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 Ernst de Haan 2005-08-31 00:17:56 UTC
>>> emerge (2 of 7) dev-java/jakarta-regexp-1.3-r2 to /  
>>> md5 files   ;-) jakarta-regexp-1.3-r2.ebuild  
>>> md5 files   ;-) files/digest-jakarta-regexp-1.3-r2  
>>> md5 src_uri ;-) jakarta-regexp-1.3.tar.gz  
>>> Unpacking source...  
>>> Unpacking jakarta-regexp-1.3.tar.gz  
to /var/tmp/portage/jakarta-regexp-1.3-r2/work  
tar: A lone zero block at 1722  
>>> Source unpacked.  
Traceback (most recent call last):  
  File "/usr/bin/java-config", line 14, in ?  
    from java_config import jc_options  
ImportError: No module named java_config  
Error: JAVA_HOME is not defined correctly.  
  We cannot execute  
  
!!! ERROR: dev-java/jakarta-regexp-1.3-r2 failed.  
!!! Function src_compile, Line 32, Exitcode 1  
!!! compile problem  
!!! If you need support, post the topmost build error, NOT this status message.  
zaphod ernst # echo $JAVA_HOME  
/opt/sun-jdk-1.4.2.09  
  

Reproducible: Always
Steps to Reproduce:
1. emerge sync (just done it, Aug 31) 
2. ACCEPT_KEYWORDS="~x86" emerge dev-java/ant 
Actual Results:  
I got the above error 

Expected Results:  
Installed :-) 

Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.4, glibc-2.3.5-r1, 
2.6.12-gentoo-r9 i686) 
================================================================= 
System uname: 2.6.12-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz 
Gentoo Base System version 1.12.0_pre6 
dev-lang/python:     2.3.4, 2.4.1-r1 
sys-apps/sandbox:    1.2.12 
sys-devel/autoconf:  2.13, 2.59-r7 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 
sys-devel/binutils:  2.16.1 
sys-devel/libtool:   1.5.18-r1 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/gconf /etc/splash /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo 
http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.nutsmaas.nl/gentoo/ 
ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://130.59.10.35/mirror/gentoo/" 
LINGUAS="nl" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 X alsa apm arts avi berkdb bitmap-fonts crypt cups curl debug directfb eds 
emboss encode fam flac foomaticdb fortran gdbm gif gpm gstreamer gtk2 imlib ipv6 
java javamail jce jpeg junit kde libg++ libwww mad mikmod mmx motif mozilla mp3 
mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime 
readline sdl spell sse ssl svga tcpd tiff truetype truetype-fonts type1-fonts vorbis xine 
xinerama xml2 xmms xprint xv zlib linguas_nl userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2005-08-31 09:58:14 UTC
Was the first emerge an update of sun-jdk? After updating your jdk you need to
run env-update && source /etc/profile as the message in the ebuild tells you. 
Comment 2 Thomas Matthijs (RETIRED) gentoo-dev 2005-08-31 10:45:02 UTC
@ #c2 no that does not seem to be the error

it can't find the python module1.2.11-r1
do you have a PYTHONHOME or PYTHONPATH env var defined ?
if you do and you can't life with it
try java-config-1.2.11-r1
Comment 3 Ernst de Haan 2005-09-01 00:35:42 UTC
$ java -version  
java version "1.4.2_09"  
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-b05)  
Java HotSpot(TM) Client VM (build 1.4.2_09-b05, mixed mode)  
$ echo $PATH  
/home/ernst/bin:/bin:/usr/bin:/opt/kde3/bin:/opt/sun-jdk-1.4.2.09/bin:/home/ernst/apache-ant-1.6.5/bin:/home/ernst/xins-1.2.4/bin:/home/ernst/RealPlayer:/usr/local/bin:/usr/X11R6/bin  
$ echo $PYTHONHOME  
  
$ echo $PYTHONPATH  
/usr/lib/portage/pym  
$ epm -qa | grep python  
python-2.4.1-r1  
python-2.3.4  
python-fchksum-1.7.1  
$ epm -qa | grep java-config  
java-config-1.2.11-r1  
 
And then as root: 
 
zaphod ernst # env-update && source /etc/profile 
>>> Regenerating /etc/ld.so.cache... 
zaphod ernst # java -version 
java version "1.4.2_09" 
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-b05) 
Java HotSpot(TM) Client VM (build 1.4.2_09-b05, mixed mode) 
 
So problem fixed! Cheers! 
Comment 4 Ernst de Haan 2005-09-01 00:40:34 UTC
I was to optimistic. The problem persists:  
  
# env-update && source /etc/profile  
>>> Regenerating /etc/ld.so.cache...  
# emerge dev-java/ant  
Calculating dependencies ...done!  
>>> emerge (1 of 6) dev-java/jakarta-regexp-1.3-r2 to /  
>>> md5 files   ;-) jakarta-regexp-1.3-r2.ebuild  
>>> md5 files   ;-) files/digest-jakarta-regexp-1.3-r2  
>>> md5 src_uri ;-) jakarta-regexp-1.3.tar.gz  
>>> Unpacking source...  
>>> Unpacking jakarta-regexp-1.3.tar.gz  
to /var/tmp/portage/jakarta-regexp-1.3-r2/work  
tar: A lone zero block at 1722  
>>> Source unpacked.  
Traceback (most recent call last):  
  File "/usr/bin/java-config", line 14, in ?  
    from java_config import jc_options  
ImportError: No module named java_config  
Error: JAVA_HOME is not defined correctly.  
  We cannot execute  
  
!!! ERROR: dev-java/jakarta-regexp-1.3-r2 failed.  
!!! Function src_compile, Line 32, Exitcode 1  
!!! compile problem  
!!! If you need support, post the topmost build error, NOT this status message.  
Comment 5 Thomas Matthijs (RETIRED) gentoo-dev 2005-09-10 07:54:06 UTC
Oh!

you must have just updated python and forgot too run
python-updater

like the post install message tells you too
Comment 6 Ernst de Haan 2005-09-12 01:42:01 UTC
Trying to do that:

# python-updater
 * Starting Python Updater from 2.3 to 2.4 :
 * Searching for packages with files in /usr/lib/python2.3 /usr/lib32/python2.3
/usr/lib64/python2.3 ..
   Adding to list: media-libs/lcms-1.13
   Adding to list: sys-apps/file-4.15
   Adding to list: dev-java/java-config-1.2.11-r1
   Adding to list: dev-libs/libxml2-2.6.20-r2
   Adding to list: dev-libs/libxslt-1.1.14-r2
   Adding to list: dev-python/python-fchksum-1.7.1
 * Calculating Upgrade Package List ..
 * Re-ordering packages to merge ..
 * Preparing to merge these packages in this order:
   dev-libs/libxml2-2.6.20-r2
   dev-java/java-config-1.2.11-r1
   sys-apps/file-4.15
   dev-python/python-fchksum-1.7.1
   dev-libs/libxslt-1.1.14-r2
   media-libs/lcms-1.13
 * Starting to merge (1/6) dev-libs/libxml2-2.6.20-r2 ..
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-libs/libxml2-2.6.20-r2 to /
...
checking for i686-pc-linux-gnu-strip... i686-pc-linux-gnu-strip
checking for correct ltmain.sh version... no

*** Gentoo sanity check failed! ***
*** libtool.m4 and ltmain.sh have a version mismatch! ***
*** (libtool.m4 = 1.5.20, ltmain.sh = 1.5) ***

Please run:

  libtoolize --copy --force

if appropriate, please contact the maintainer of this
package (or your distribution) for help.


!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/lcms-1.13/work/lcms-1.13/config.log

!!! ERROR: media-libs/lcms-1.13 failed.
!!! Function econf, Line 496, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.

 * Failed merging media-libs/lcms-1.13 (6/6)!

 * ************************************************************
 * * Packages that still need to be manually emerged :        *
 * ************************************************************

 *  Failed Packaged:
 *  ----------------
 *  These packages have failed and need to be re-emerged again.
 *  Alternatively, try re-running this script again to see if it
 *  can be fixed.

 *  emerge -p  \=media-libs/lcms-1.13

Ok, so I try to run libtoolize (which I never heard of before):

# libtoolize --copy --force
libtoolize: `configure.ac' does not exist
Try `libtoolize --help' for more information.

Ok, so I try to re-emerge lcms:

# emerge -p  \=media-libs/lcms-1.13

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] media-libs/lcms-1.13
# emerge \=media-libs/lcms-1.13
Calculating dependencies ...done!
>>> emerge (1 of 1) media-libs/lcms-1.13 to /
...
checking for correct ltmain.sh version... no

*** Gentoo sanity check failed! ***
*** libtool.m4 and ltmain.sh have a version mismatch! ***
*** (libtool.m4 = 1.5.20, ltmain.sh = 1.5) ***

Please run:

  libtoolize --copy --force

if appropriate, please contact the maintainer of this
package (or your distribution) for help.


!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/lcms-1.13/work/lcms-1.13/config.log

!!! ERROR: media-libs/lcms-1.13 failed.
!!! Function econf, Line 496, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.

So I remain optimistic and try re-emerging jakarta-regexp anyway:

...
>>> dev-java/jakarta-regexp-1.3-r2 merged.
>>> Recording dev-java/jakarta-regexp in "world" favorites file...

It works! :-)

So I'll leave this bug report as FIXED, but I may file a new one for the other
problem...