Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200321 - java-utils-2.eclass should set variables to empty instead of unset
Summary: java-utils-2.eclass should set variables to empty instead of unset
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-25 19:53 UTC by radekd2
Modified: 2015-06-15 21:37 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 radekd2 2007-11-25 19:53:46 UTC
error compilation dev-java/ant-core-1.7.0:
src/main/org/apache/tools/ant/taskdefs/  [...]  : cannot find symbol

Reproducible: Always




[root@prime~]# emerge --info
Portage 2.1.4_rc3 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.21-gentoo-r4 i686)
=================================================================
System uname: 2.6.21-gentoo-r4 i686 AMD Athlon(tm) XP 2500+
Timestamp of tree: Sun, 25 Nov 2007 17:46:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -s -fomit-frame-pointer"
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/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -s"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://src.gentoo.pl http://gentoo.osuosl.org http://gentoo.zie.pg.gda.pl http://distfiles.gentoo.org"
LANG="pl_PL"
LC_ALL="pl_PL"
LINGUAS="pl"
MAKEOPTS="-j2 -s"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/home/portemp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gentoo.prz.rzeszow.pl/gentoo-portage"
USE="X alsa apm avi berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus debug doc dri dvd dvdr eds emboss encode esd fam firefox fortran gdbm gif gpm gstreamer gtk2 hal iconv imlib ipv6 isdnlog java jpeg kde kdeenablefinal ldap mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre perl png ppds pppd python qt qt3 qt4 quicktime readline reflection samba sdl session spell spl ssl svga tcpd truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs x86 xml xorg xprint xv zlib" ALSA_CARDS="au8820" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="kdb mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

#############

>>> Emerging (1 of 22) dev-java/ant-core-1.7.0 to /
 * ant-1.7.0-gentoo.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                            [ ok ]
 * apache-ant-1.7.0-src.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                        [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                 [ ok ]
 * checking apache-ant-1.7.0-src.tar.bz2 ;-) ...                                                                                       [ ok ]
 * checking ant-1.7.0-gentoo.tar.bz2 ;-) ...                                                                                           [ ok ]
 * Using: sun-jdk-1.6
>>> Unpacking source...
>>> Unpacking apache-ant-1.7.0-src.tar.bz2 to /home/portemp/portage/dev-java/ant-core-1.7.0/work
>>> Unpacking ant-1.7.0-gentoo.tar.bz2 to /home/portemp/portage/dev-java/ant-core-1.7.0/work
removed `lib/xercesImpl.jar'
removed `lib/xml-apis.jar'
>>> Source unpacked.
>>> Compiling source in /home/portemp/portage/dev-java/ant-core-1.7.0/work/apache-ant-1.7.0 ...
... Bootstrapping Ant Distribution
... Compiling Ant Classes
src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java:80: cannot find symbol
symbol  : method getJavaVersionNumber()
location: class org.apache.tools.ant.util.JavaEnvUtils
            cause = orCause(cause, be, JavaEnvUtils.getJavaVersionNumber() < 14);
                                                   ^
src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java:119: newInstance(java.lang.String,java.lang.ClassLoader) in org.apache.tools.ant.util.ClasspathUtils cannot be applied to (java.lang.String,java.lang.ClassLoader,java.lang.Class<org.apache.tools.ant.util.regexp.RegexpMatcher>)
        return (RegexpMatcher) ClasspathUtils.newInstance(className,
                                             ^
src/main/org/apache/tools/ant/Project.java:1428: cannot find symbol
symbol  : method translatePath(java.lang.String)
location: class org.apache.tools.ant.util.FileUtils
        return FileUtils.translatePath(toProcess);
                        ^
src/main/org/apache/tools/ant/AntClassLoader.java:529: decodeUri(java.lang.String) has private access in org.apache.tools.ant.launch.Locator
                String decodedPath = Locator.decodeUri(libraryURL.getFile());
                                            ^
src/main/org/apache/tools/ant/DirectoryScanner.java:1527: cannot find symbol
symbol  : method dissect(java.lang.String)
location: class org.apache.tools.ant.util.FileUtils
                String[] s = FILE_UTILS.dissect(path);
                                       ^
src/main/org/apache/tools/ant/Diagnostics.java:628: cannot find symbol
symbol  : method getJavaVersionNumber()
location: class org.apache.tools.ant.util.JavaEnvUtils
        if (JavaEnvUtils.getJavaVersionNumber() < 15) {
                        ^
src/main/org/apache/tools/ant/Main.java:740: newInstance(java.lang.String,java.lang.ClassLoader) in org.apache.tools.ant.util.ClasspathUtils cannot be applied to (java.lang.String,java.lang.ClassLoader,java.lang.Class<org.apache.tools.ant.BuildListener>)
                    (BuildListener) ClasspathUtils.newInstance(className,
                                                  ^
src/main/org/apache/tools/ant/Main.java:762: newInstance(java.lang.String,java.lang.ClassLoader) in org.apache.tools.ant.util.ClasspathUtils cannot be applied to (java.lang.String,java.lang.ClassLoader,java.lang.Class<org.apache.tools.ant.input.InputHandler>)
            handler = (InputHandler) ClasspathUtils.newInstance(
                                                   ^
src/main/org/apache/tools/ant/Main.java:786: newInstance(java.lang.String,java.lang.ClassLoader) in org.apache.tools.ant.util.ClasspathUtils cannot be applied to (java.lang.String,java.lang.ClassLoader,java.lang.Class<org.apache.tools.ant.BuildLogger>)
                logger = (BuildLogger) ClasspathUtils.newInstance(

[...]

src/main/org/apache/tools/ant/taskdefs/condition/ResourcesMatch.java:81: cannot find symbol
symbol  : method contentEquals(org.apache.tools.ant.types.Resource,org.apache.tools.ant.types.Resource,boolean)
location: class org.apache.tools.ant.util.ResourceUtils
                    if (!ResourceUtils.contentEquals(r1, r2, asText)) {
                                      ^
src/main/org/apache/tools/ant/types/resources/comparators/FileSystem.java:44: cannot find symbol
symbol  : method isLeadingPath(java.io.File,java.io.File)
location: class org.apache.tools.ant.util.FileUtils
            : FILE_UTILS.isLeadingPath(foofile, barfile) ? -1
                        ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
33 errors
... Failed compiling Ant classes !
Bootstrap FAILED
 *
 * ERROR: dev-java/ant-core-1.7.0 failed.
 * Call stack:
 *               ebuild.sh, line 1762:  Called dyn_compile
 *               ebuild.sh, line  891:  Called qa_call 'src_compile'
 *               ebuild.sh, line   35:  Called src_compile
 *             environment, line 3905:  Called die
 * The specific snippet of code:
 *       ./build.sh ${bsyscp} jars-core $(use_doc javadocs) || diefunc "$FUNCNAME" "$LINENO" "$?" "build failed"
 *  The die message:
 *   build failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/home/portemp/portage/dev-java/ant-core-1.7.0/temp/build.log'.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="/usr/share/ant-core/lib/ant.jar:/usr/share/cyrus-sasl-2/lib/cyrus-sasl.jar:/usr/share/ant-core/lib/ant-launcher.jar:/usr/share/libidn/lib/libidn-0.5.15.jar:/usr/share/pdflib-5/lib/pdflib.jar:/usr/lib/db-4.2.jar:." JAVA_HOME="/opt/sun-jdk-1.6.0.03"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-11-25 23:12:01 UTC
(In reply to comment #0)
> CLASSPATH="/usr/share/ant-core/lib/ant.jar:/usr/share/cyrus-sasl-2/lib/cyrus-sasl.jar:/usr/share/ant-core/lib/ant-launcher.jar:/usr/share/libidn/lib/libidn-0.5.15.jar:/usr/share/pdflib-5/lib/pdflib.jar:/usr/lib/db-4.2.jar:."

Please try again with CLASSPATH unset in the shell you call emerge.

Looks like the "unset CLASSPATH" in our eclass doesn't work without phase hooks.

[00:03] Caster seems like unsetting var isn't preserved across stages :/
[00:05] zmedico Caster: set it to empty if possible
[00:07] Caster zmedico: is that new regression or again something we didn't check enough when removing our phase hooks? :)
[00:08] zmedico it's not a regression. it's long standing behavior
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-11-25 23:15:49 UTC
Looks like another instance of bug 189417 (dupe of 56407) which we somehow lost sight of.
Comment 3 James Le Cuirot gentoo-dev 2015-06-15 21:37:35 UTC
The eclass has had "export CLASSPATH=" for a long time now.