Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219959 - dev-util/subversion-1.5.0_rc4: Building of Subversion JavaHL library failed with jdk 1.4
Summary: dev-util/subversion-1.5.0_rc4: Building of Subversion JavaHL library failed w...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-01 18:52 UTC by Martin von Gagern
Modified: 2008-10-25 19:05 UTC (History)
4 users (show)

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


Attachments
Patch providing header files (219959a.patch,7.11 KB, patch)
2008-05-02 10:13 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2008-05-01 18:52:22 UTC
/bin/sh /var/tmp/portage/dev-util/subversion-1.5.0_rc4/work/subversion-1.5.0-rc4/libtool --tag=CXX --silent --mode=compile i686-pc-linux-gnu-g++ -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -I/usr/include/apr-1   -I/usr/include/apr-1 -I/usr/include/db4.5 -I/usr/include/mysql  -march=prescott -O2 -ggdb -fno-strict-aliasing  -I./subversion/include -I./subversion -I/usr/include/neon -I/usr/include/apr-1   -I/usr/include/apr-1 -I/usr/include/db4.5 -I/usr/include/mysql -I/usr/local/include  -I/opt/blackdown-jdk-1.4.2.03/include -I/opt/blackdown-jdk-1.4.2.03/include -I/opt/blackdown-jdk-1.4.2.03/include/linux -I/var/tmp/portage/dev-util/subversion-1.5.0_rc4/work/subversion-1.5.0-rc4/subversion/bindings/javahl/include -o subversion/bindings/javahl/native/DiffSummaryReceiver.lo -c /var/tmp/portage/dev-util/subversion-1.5.0_rc4/work/subversion-1.5.0-rc4/subversion/bindings/javahl/native/DiffSummaryReceiver.cpp
make: *** No rule to make target `subversion/bindings/javahl/include/org_tigris_subversion_javahl_ConflictDescriptor_Action.h', needed by `subversion/bindings/javahl/native/EnumMapper.lo'.  Stop.
 *
 * ERROR: dev-util/subversion-1.5.0_rc4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 5703:  Called die
 * The specific snippet of code:
 *           make JAVAC_FLAGS="$(java-pkg_javac-args) -encoding iso8859-1" javahl || die "Building of Subversion JavaHL library failed";
 *  The die message:
 *   Building of Subversion JavaHL library failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/dev-util:subversion-1.5.0_rc4:20080501-161427.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/subversion-1.5.0_rc4/temp/environment'.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=blackdown-jdk-1.4.2  CLASSPATH="" JAVA_HOME="/opt/blackdown-jdk-1.4.2.03"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""

This is not a parallel build issue. Looks like it would not build headers for nested classes. I could reproduce it with sun-jdk-1.4 whereas sun-jdk-1.5 works. Therefore a workaround is "JAVA_PKG_FORCE_VM=sun-jdk-1.5 emerge subversion".
Comment 1 Martin von Gagern 2008-05-02 10:13:53 UTC
Created attachment 151595 [details, diff]
Patch providing header files

Patch to provide header files for nested classes.
This is needed as javah from jdk 1.4 doesn't seem to generate these.
The patch also adds comments to the header files where these constants
originated. This ensures that the patch will fail when constants are modified.

With this patch applied, subversion-1.5.0_rc4 compiled cleanly with my blackdown-jdk-1.4.2.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-05-02 17:47:13 UTC
(In reply to comment #1)
> Created an attachment (id=151595) [edit]
> Patch providing header files
> 
> Patch to provide header files for nested classes.
> This is needed as javah from jdk 1.4 doesn't seem to generate these.
> The patch also adds comments to the header files where these constants
> originated. This ensures that the patch will fail when constants are
> modified.
> 
> With this patch applied, subversion-1.5.0_rc4 compiled cleanly with my
> blackdown-jdk-1.4.2.

IMO it's better to raise dependency versions.
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2008-05-07 18:07:06 UTC
fixed in 1.5.0_rc5
Comment 4 Patrick De Pinguin 2008-10-25 19:04:46 UTC
I still see this same error message with subversion-1.5.2, but in my case it does seem to be a parallel make issue. With -j3 the error occurs, with -j1 it does not.

Is this a different bug?