Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339603 - www-servers/tomcat-5.5.27-r4 build fails with error "Reference jspc.classpath not found"
Summary: www-servers/tomcat-5.5.27-r4 build fails with error "Reference jspc.classpath...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-03 15:47 UTC by Luca Wehrstedt
Modified: 2011-01-19 02:41 UTC (History)
1 user (show)

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


Attachments
The complete build log (build.log,87.75 KB, text/plain)
2010-10-03 15:48 UTC, Luca Wehrstedt
Details
The output of "emerge -pqv =www-servers/tomcat-5.5.27-r4" (emerge_pqv.txt,88 bytes, text/plain)
2010-10-03 15:49 UTC, Luca Wehrstedt
Details
Patch for build/build.xml (build-jspc-classpath.patch,1.45 KB, patch)
2010-11-03 23:29 UTC, Isaac Richter
Details | Diff
ebuild utilizing build-jspc-classpath.patch (tomcat-5.5.27-r4.ebuild,9.88 KB, text/plain)
2010-11-03 23:30 UTC, Isaac Richter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Wehrstedt 2010-10-03 15:47:36 UTC
Trying to build www-servers/tomcat-5.5.27-r4 with only the examples USE flag enabled fails. These are the error messages:

BUILD FAILED
/var/tmp/portage/www-servers/tomcat-5.5.27-r4/work/apache-tomcat-5.5.27-src/build.xml:42: The following error occurred while executing this line:
/var/tmp/portage/www-servers/tomcat-5.5.27-r4/work/apache-tomcat-5.5.27-src/build/build.xml:687: The following error occurred while executing this line:
/var/tmp/portage/www-servers/tomcat-5.5.27-r4/work/apache-tomcat-5.5.27-src/build/build.xml:330: The following error occurred while executing this line:
/var/tmp/portage/www-servers/tomcat-5.5.27-r4/work/apache-tomcat-5.5.27-src/build/build.xml:407: Reference jspc.classpath not found.



Reproducible: Always

Steps to Reproduce:
emerge www-servers/tomcat-5.5.27-r4
Actual Results:  
build failed

Expected Results:  
build succeed

Portage 2.1.9.13 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-gentoo-r8 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34-gentoo-r8-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 03 Oct 2010 08:00:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.5.4-r4, 2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.34 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL skype-eula AdobeFlash-10 AdobeFlash-10.1 googleearth"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS=" -march=nocona -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS=" -march=nocona -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://distfiles.gentoo.org/"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -s"
LINGUAS="it en de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/java-overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa amd64 apache2 apm avahi bash-completion bluetooth bzip2 cairo cdr cli cracklib crypt css cups cvs cxx dbus dnd dri dvd dvdr encode examples exif ffmpeg firefox ftp gdbm geoip gif gimp gnome gnome-keyring gnutls gpm graphviz gstreamer gtk iconv id3tag ieee1394 imagemagick imap ipod jabber jack java javascript jingle jpeg jpeg2k kvm lame libnotify libproxy libwww lm_sensors mad mime mmx modules mozilla mp3 mpeg msn mtp mudflap multilib mysql mysqli nautilus ncurses nforce2 nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl php pmu png posix pppd python qt3support qt4 readline reflection rss session simplexml spell sqlite sqlite3 sse sse2 sse3 sse4_1 ssl subversion svg sysfs tagwriting tcpd theora threads truetype udev unicode usb v4l v4l2 vcd vdpau vnc vorbis webkit wxwindows x264 xcomposite xinerama xml xorg xulrunner xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="alias authz_host dav davfs dav_lock dir headers include mime mime_magic rewrite" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en de" RUBY_TARGETS="ruby18" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="nouveau nv v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Luca Wehrstedt 2010-10-03 15:48:19 UTC
Created attachment 249437 [details]
The complete build log
Comment 2 Luca Wehrstedt 2010-10-03 15:49:29 UTC
Created attachment 249438 [details]
The output of "emerge -pqv =www-servers/tomcat-5.5.27-r4"
Comment 3 Isaac Richter 2010-11-03 23:29:53 UTC
Created attachment 253109 [details, diff]
Patch for build/build.xml

The problem seems to stem from how ant (probably a new version) handles <path id="..."> ... </path> tags. It seems to want them only inside "<project></project>"s, but in Tomcat 5.5, there is a <path id="jspc.classpath">...</path> inside of a <target ...></target>.

The ebuild I'm uploading makes use of this patch.
Comment 4 Isaac Richter 2010-11-03 23:30:35 UTC
Created attachment 253111 [details]
ebuild utilizing build-jspc-classpath.patch
Comment 5 Miroslav Šulc gentoo-dev 2011-01-19 02:41:11 UTC
thanks for the bug report and for the patch. fixed in 5.5.27-r5.