Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139089 - dev-java/jaxen-1.1_beta2-r1 fails compile.
Summary: dev-java/jaxen-1.1_beta2-r1 fails compile.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-03 14:54 UTC by Robert T Childers
Modified: 2006-07-04 11:59 UTC (History)
0 users

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


Attachments
output of compile failure. (jaxen_build_compile_error.txt,9.49 KB, text/plain)
2006-07-03 18:00 UTC, Robert T Childers
Details
full output of emerge -v1 jaxen (emerge_jaxen_full_output.txt,10.24 KB, text/plain)
2006-07-04 11:31 UTC, Robert T Childers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert T Childers 2006-07-03 14:54:28 UTC
After performing the java-upgrade  to the new generation-1, generation-2 system, I was recompiling jaxen trying to see if recompiling the dependencies of netbeans would help in solving the compile failure of netbeans 4.

emerge --info

Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16-gentoo-r3 i686)
=================================================================
System uname: 2.6.16-gentoo-r3 i686 AMD Duron(tm) Processor
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://gentoo.mirror.sdv.fr"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X Xaw3d aac acpi aim alsa amd amr ao apache2 apm arts artswrappersuid asf auth authdaemond berkdb bitmap-fonts blender-game bootsplash cdparanoia cdrom cgi cjk clamav clamd cli crypt cups dbus dga dmx dnd doc dri dv dvd dvdread emoticon encode erandom esd fbcon fftw fmod font-server fontconfig foomaticdb fortran freetype gdbm gif gimpprint gpm graphviz gsl gstreamer gtk gtk2 gtkhtml icq imap imlib imlib2 innodb ipv6 isdnlog ithreads jabber javascript jce jikes joystick jpeg jython kde kerberos libclamav libg++ libgda libwww lzo mad maildir mailwrapper mbox md5sum memlimit mikmod mmx mmxext motif mozcalendar mozilla mozsvg mp3 mp4 mp4live mpeg mpeg2 mpi mplayer msn music mysqli native ncurses net nls nntp nptl nsplugin nvidia oav offensive ogg opengl openssl oscar oss pam pcre pdf pdflib pear pear-db perl png ppds pppd prelude pthreads python qt qt3 qt4 quicktime readline reflection sasl sdl session slp soap sockets socks5 softmmu speedo spell spl ssl tcpd threads tools transcode truetype truetype-fonts type1 type1-fonts udev unicode unsafe vcd vhosts videos virus-scan vorbis wifi win32codecs wxwindows xinetd xml xmms xorg xpm xscreensaver xsl xv yahoo zeo zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-07-03 14:59:52 UTC
You need to post some errors when reporting bugs...
Comment 2 Robert T Childers 2006-07-03 17:58:08 UTC
Sorry Jakob I forgot to create the attachment.
Comment 3 Robert T Childers 2006-07-03 18:00:18 UTC
Created attachment 90820 [details]
output of compile failure.

This is all related to the upgrade to the java system in the java upgrade (generation-1, generation-2) system that accompanies java-config-1, java-config-2.
Comment 4 Robert T Childers 2006-07-03 18:03:46 UTC
Additionaly, when i tried to compile jaxen-1.1_beta6 as well as jaxen-1.1_beta2 I got similiar results. I also apologize for typing 1.0_beta2 when I meant 1.1_beta2.
Comment 5 Josh Nichols (RETIRED) gentoo-dev 2006-07-04 08:13:02 UTC
You're using a 1.5 JDK for the generation-1 system VM. This is not supported, because it causes problems like this, which is the original reason for package.masking Java 1.5.

A 1.4 JDK is required to be the generation-1 system VM. So, try that, and you will probably need to run java-1.5-fixer to make sure your packages haven't been compiled agianst 1.5.
Comment 6 Robert T Childers 2006-07-04 10:23:13 UTC
Explain to me how I am using the wrong jdk to build when I used java-config-1 and set it to sun-jdk-1.4. and for the use of 1.5 for root I used java-config-2 and there set it to sun-jdk-1.5.

Output from java-1.5-fixer
 * Generating a list of jars which ant uses ...                           [ ok ]
 * Checking for > 1.4 bytecode in ant jars ...                            [ ok ]
 * Generating a list of jars in the system ...                            [ ok ]
 * Checking for > 1.4 bytecode in system jars ...                         [ ok ]
 * Congratulations! All system jars are right as rain.

Add to this when it runs the ebuilds it states in the start of the ebuild that its using sun-jdk-1.4.
Initial output of build for jaxen
 * Enabling generation-2 compatibility ...
 * Using sun-jdk-1.4                                                      [ ok ]
>>> Unpacking source...
>>> Unpacking jaxen-1.1-beta-2-src.tar.gz to /var/tmp/portage/jaxen-1.1_beta2-r1/work
tar: A lone zero block at 5011
 * Applying jaxen-1.1_beta2-gentoo.diff ...                               [ ok ]
>>> Source unpacked.

output of java-config-1 -L
[sun-jdk-1.4.2.12] "Sun JDK 1.4.2.12" (/etc/env.d/java/20sun-jdk-1.4.2.12) *
[sun-jre-bin-1.4.2.12] "Sun JRE 1.4.2.12" (/etc/env.d/java/20sun-jre-bin-1.4.2.12)
[blackdown-jdk-1.4.2.03] "Blackdown JDK 1.4.2.03" (/etc/env.d/java/20blackdown-jdk-1.4.2.03)

output of java-config-2 -L
1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2] (/usr/share/java-config-2/vm/blackdown-jdk-1.4.2)
2) Sun JDK 1.4.2.12 [sun-jdk-1.4] (/usr/share/java-config-2/vm/sun-jdk-1.4)
*) Sun JDK 1.5.0.07 [sun-jdk-1.5] (/usr/share/java-config-2/vm/sun-jdk-1.5)
4) Sun JRE 1.4.2.12 [sun-jre-bin-1.4] (/usr/share/java-config-2/vm/sun-jre-bin-1.4)
5) Sun JRE 1.5.0.07 [sun-jre-bin-1.5] (/usr/share/java-config-2/vm/sun-jre-bin-1.5)

Now taking into account what I read in the java-upgrade page it seems to me that it should be building jaxen with 1.4 not 1.5. If I have made an error somewhere please point it out to me. Cause what I read in the page said that it would use the java compilier from the java-config-1 -S setting not the java compiler of the java-config-2 -S setting.
Now if after making the settings that I make it is building with 1.5 then I would agree that the problem isn't the ebuild for jaxen but in the way the gen-1, gen-2 java system is setup. So either there is a problem with jaxen's ebuild or there is a problem with the gen-1, gen-2 java system. Or maybe both.
Comment 7 Josh Nichols (RETIRED) gentoo-dev 2006-07-04 11:18:56 UTC
I just tested on my system, and it does use the generation-1 system vm. At the top of the build, you should see something to the effect of:

 * Enabling generation-2 compatibility ...
 * Using blackdown-jdk-1.4.2      

Of course,substitute blackdown-jdk-1.4.2 with your generation-1 system vm.

So, could you please post the full long from start to end of the build?
Comment 8 Robert T Childers 2006-07-04 11:31:50 UTC
Created attachment 90879 [details]
full output of emerge -v1 jaxen

Here is the full output from the emerge that you requested. I really hope that this helps. I am slowly teaching myself java, so my best guess after looking over the output is that there is some name collisions going on. Mind you this is just my intial read of the output and I still have a lot to learn about java.
Comment 9 Josh Nichols (RETIRED) gentoo-dev 2006-07-04 11:45:46 UTC
I've added an updated revision, 1,1_beta7-r1, which uses the new Java system. That should fix this immediate problem. However, I am concerned that it may crop up for you with other packages.
Comment 10 Robert T Childers 2006-07-04 11:59:31 UTC
Oh i don't doubt that its going to crop up in other places. This all started with netbeans. When I did the java upgrade to the new gen-1, gen-2 setup, netbeans went totally flaky on me. So I uninstalled netbeans 4 and attempted to reinstall it. After it failed I asked in an already open bug report if I should rebuild the dependencies. It was suggested that I try that. Thats when I ran into the problem with jaxen. My next problem is to go back and finish the rebuilding of the first level of netbeans dependencies and if netbeans still fails to build revisit the netbeans bug report.