Le 04/05/2015 15:10, Fernando de Oliveira a écrit :
Checking the optional Sharutils, building Berkeley DB, needs
--enable-java, apparently.
With that, it recognizes "uudecode":
{{{
S["_ACJNI_JAVAC"]="/opt/jdk/bin/javac"
S["uudecode"]="yes"
S["JAVA"]="java"
S["JAVAC"]="javac"
}}}
But make fails. Search gave me the result:
https://aur.archlinux.org/packages/java-berkeleydb/
Error I,ve got is the same as:
{{{
Comment by soker
2014-10-24 21:57
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
env CLASSPATH="./classes" java -classpath ./classes \
com.sleepycat.persist.model.ClassEnhancer ./classes
java.lang.IllegalArgumentException
at com.sleepycat.asm.ClassReader.<init>(ClassReader.java:167)
at com.sleepycat.asm.ClassReader.<init>(ClassReader.java:153)
at
com.sleepycat.persist.model.ClassEnhancer.enhanceBytes(ClassEnhancer.java:297)
...
Makefile:973: recipe for target 'db.jar' failed
make: *** [db.jar] Error 1
}}}
Later we find:
{{{
Comment by Innominate8
2015-03-01 16:08
This will only build under jdk7.
}}}
Pierre (who handles java in the book) or somebody else, I believe some
comment would be necessary in BDB page. What do you think? No clue to
what the comment would be or where.
Help or, if somebody wouldn't mind, doing the eventually necessary
edition would be much appreciated.
I understand that openjdk 8 is not suitable for building the DB java
bindings.
And apparently DB is unable to use the uudecode command (whether it
comes from sharutils or another package) if java is not enabled... Well,
the obvious change to the book is to explain that on the Berkeley DB
page, or even completely remove the reference to uudecode and add that
"the java bindings are currently broken with JDK8" to command
explanations. But maybe somebody has a better idea.
Now, for a fix, I guess it is much harder!
Pierre
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page