bean JunitTest_bean_complex - jurt.jar missing from classpath
gmail Vladimir Koković
vladimir.kokovic at gmail.com
Wed Aug 28 17:36:54 UTC 2019
Hi,
I want to reactivate bean JunitTest_bean_complex but I have a problem
because I don't know how to add jurt.jar to classpath in bean module.
I did the following:
1.clone LibreOffice git
2.changed bean / Module_bean.mk to activate JunitTest_bean_complex
diff --git a/bean/Module_bean.mk b/bean/Module_bean.mk
index 08d9390..df140c8 100644
--- a/bean/Module_bean.mk
+++ b/bean/Module_bean.mk
@@ -20,9 +20,9 @@
))
# complex tests compilable but fail at runtime
-#$(eval $(call gb_Module_add_subsequentcheck_targets,bean,\
-# JunitTest_bean_complex \
-#))
+$(eval $(call gb_Module_add_subsequentcheck_targets,bean,\
+ JunitTest_bean_complex \
+))
endif
endif
3.make
./autogen.sh \
--with-junit=/mnt/sdd1/home/src/libreoffice-vk/junit-4.12.jar \
--with-hamcrest=/mnt/sdd1/home/src/libreoffice-vk/hamcrest-core-1.3.jar \
--enable-qt5 \
--enable-kf5 \
--disable-firebird-sdbc \
--prefix=/mnt/sdd1/home/src/libreoffice-vk/libreoffice-install \
--with-parallelism=4 \
--enable-dbgutil \
--with-jdk-home=/usr/lib/jvm/default \
--with-system-dicts \
--with-myspell-dicts \
--with-system-zlib \
--without-system-poppler \
--without-system-openssl \
--without-system-libpng \
--without-system-libxml \
--without-system-jpeg \
--without-system-jars \
--without-system-postgresql \
--with-help \
--without-helppack-integration \
--with-linker-hash-style=both \
--with-fonts \
--with-external-thes-dir=/usr/share/mythes \
--with-external-hyph-dir=/usr/share/hyphen \
--with-external-dict-dir=/usr/share/myspell \
--enable-dbus \
--enable-extension-integration \
--enable-odk \
--disable-gtk3 \
--enable-gstreamer-1-0 \
--enable-evolution2 \
--enable-gio \
--enable-scripting-beanshell \
--enable-scripting-javascript \
--enable-ext-wiki-publisher \
--enable-ext-nlpsolver \
--enable-epm \
--enable-python=internal \
--enable-online-update \
--enable-breakpad \
--disable-dconf \
--enable-mergelibs \
--with-vendor="The Document Foundation" \
--with-package-format=archive \
--disable-dependency-tracking \
--with-export-validation \
> ../autogen-outz.log 2>&1
make clean
make > ../make-outx.log 2>&1
make install > ../make-outz.log 2>&1
4. check
make bean.clean verbose=t > ../make-outx1.log 2>&1
make bean verbose=t >> ../make-outx1.log 2>&1
make bean.subsequentcheck verbose=t >> ../make-outx1.log 2>&1
cat ../make-outx1.log
---------------------
cd /mnt/sdd1/home/src/libreoffice-vk/libreoffice/bean && make -j 4 -r clean
make[1]: Entering directory
'/mnt/sdd1/home/src/libreoffice-vk/libreoffice/bean'
[clean JCS] Jar/officebean
S=/mnt/sdd1/home/src/libreoffice-vk/libreoffice && I=$S/instdir &&
W=$S/workdir && rm -rf $W/JavaClassSet/Jar/officebean/ \
/mnt/sdd1/home/src/libreoffice-vk/libreoffice/workdir/JavaClassSet/Jar/officebean.prepared
[clean LNK] Library/libofficebean.so
RESPONSEFILE=/tmp/gbuild.HucXJj && \
cat ${RESPONSEFILE} /dev/null | xargs -n 200 rm -fr && \
rm -f ${RESPONSEFILE}
[clean JCS] JunitTest/bean_complex
S=/mnt/sdd1/home/src/libreoffice-vk/libreoffice && I=$S/instdir &&
W=$S/workdir && rm -rf $W/JavaClassSet/JunitTest/bean_complex/ \
/mnt/sdd1/home/src/libreoffice-vk/libreoffice/workdir/JavaClassSet/JunitTest/bean_complex.prepared
[clean JAR] officebean
S=/mnt/sdd1/home/src/libreoffice-vk/libreoffice && I=$S/instdir &&
W=$S/workdir && rm -f $I/program/classes/officebean.jar
S=/mnt/sdd1/home/src/libreoffice-vk/libreoffice && I=$S/instdir &&
W=$S/workdir && rm -f $W/Clean/JunitTest/bean_complex
$W/Clean/JunitTest/bean_complex.log
S=/mnt/sdd1/home/src/libreoffice-vk/libreoffice && I=$S/instdir &&
W=$S/workdir && rm -f $W/LinkTarget/Library/libofficebean.so.exports
[clean MOD] bean
S=/mnt/sdd1/home/src/libreoffice-vk/libreoffice && I=$S/instdir &&
W=$S/workdir && rm -f $W/Module/bean $W/Module/nonl10n/bean
$W/Module/l10n/bean $W/Module/check/bean $W/Module/slowcheck/bean
$W/Module/screenshot/bean $W/Module/subsequentcheck/bean
$W/Module/perfcheck/bean
[clean ALL] top level modules: bean
[clean ALL] loaded modules: bean
make[1]: Leaving directory
'/mnt/sdd1/home/src/libreoffice-vk/libreoffice/bean'
cd /mnt/sdd1/home/src/libreoffice-vk/libreoffice/bean && make -j 4 -r
make[1]: Entering directory
'/mnt/sdd1/home/src/libreoffice-vk/libreoffice/bean'
mkdir -p
/mnt/sdd1/home/src/libreoffice-vk/libreoffice/workdir/JavaClassSet/Jar/
&& touch
/mnt/sdd1/home/src/libreoffice-vk/libreoffice/workdir/JavaClassSet/Jar/officebean.prepared
S=/mnt/sdd1/home/src/libreoffice-vk/libreoffice && I=$S/instdir &&
W=$S/workdir && touch $W/Headers/Library/libofficebean.so
[build LOC] bean
S=/mnt/sdd1/home/src/libreoffice-vk/libreoffice && I=$S/instdir &&
W=$S/workdir && mkdir -p $W/Module/l10n/ && touch $W/Module/l10n/bean
[build CHK] bean
S=/mnt/sdd1/home/src/libreoffice-vk/libreoffice && I=$S/instdir &&
W=$S/workdir && mkdir -p $W/Module/check/ && touch $W/Module/check/bean
[build LOC] top level modules: bean
[build LOC] loaded modules: bean
[build C ] bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c
S=/mnt/sdd1/home/src/libreoffice-vk/libreoffice && I=$S/instdir &&
W=$S/workdir && mkdir -p $W/CObject/bean/native/unix/
$W/Dep/CObject/bean/native/unix/ && cd
/mnt/sdd1/home/src/libreoffice-vk/libreoffice && gcc
-DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED
-DCPPU_ENV=gcc3 -DDBG_UTIL -DLINUX -DOSL_DEBUG_LEVEL=1 -DSAL_LOG_INFO
-DSAL_LOG_WARN -DUNIX -DUNX -DX86_64 -D_DEBUG -D_GLIBCXX_DEBUG
-D_PTHREADS -D_REENTRANT -fvisibility=hidden -Wall -Wendif-labels
-Wextra -Wstrict-prototypes -Wundef -Wunreachable-code -Wunused-macros
-finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe
-Wduplicated-cond -Wlogical-op -Wshift-overflow=2
-fstack-protector-strong -std=gnu89 -fPIC -Wdeclaration-after-statement
-Wshadow -O0 -fstrict-aliasing -fstrict-overflow -ggdb2 -gsplit-dwarf
-ggnu-pubnames -DLIBO_INTERNAL_ONLY -c
$S/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c -o
$W/CObject/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.o
-I$S/include -I/usr/lib/jvm/default/include
-I/usr/lib/jvm/default/include/linux -I$S/config_host
[build JCS] Jar/officebean
S=/mnt/sdd1/home/src/libreoffice-vk/libreoffice && I=$S/instdir &&
W=$S/workdir && mkdir -p $W/JavaClassSet/Jar/officebean/ && rm -rf
$W/JavaClassSet/Jar/officebean/* && RESPONSEFILE=/tmp/gbuild.khJDCW &&
/usr/lib/jvm/default/bin/javac -J-Xmx128M -encoding utf8 -source 8
-target 8 -g -classpath
"$I/program/classes/ridl.jar:$I/program/classes/unoil.jar:$I/program/classes/jurt.jar:$I/program/classes/juh.jar:$W/JavaClassSet/Jar/officebean"
-d $W/JavaClassSet/Jar/officebean @$RESPONSEFILE && rm -f $RESPONSEFILE
&& touch $W/JavaClassSet/Jar/officebean/done
[build CHK] loaded modules: bean
[build LNK] Library/libofficebean.so
S=/mnt/sdd1/home/src/libreoffice-vk/libreoffice && I=$S/instdir &&
W=$S/workdir && gcc -shared -Wl,-z,noexecstack -Wl,-z,origin
'-Wl,-rpath,$ORIGIN' -Wl,-rpath-link,$I/program -Wl,-z,defs
-fuse-ld=gold -fstack-protector-strong -Wl,-rpath-link,/lib:/usr/lib
-Wl,-z,combreloc -Wl,--hash-style=both -Wl,-Bsymbolic-functions
-L$W/LinkTarget/StaticLibrary -L$I/sdk/lib -L$I/program -L$I/program
-Wl,--gdb-index
$W/CObject/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.o
-Wl,--start-group -L/usr/lib/jvm/default/jre/lib/amd64 -ljawt
-Wl,--end-group -Wl,--no-as-needed -o $I/program/libofficebean.so
S=/mnt/sdd1/home/src/libreoffice-vk/libreoffice && I=$S/instdir &&
W=$S/workdir && readelf -d $I/program/libofficebean.so | grep SONAME >
$W/LinkTarget/Library/libofficebean.so.exports.tmp; nm --dynamic
--extern-only --defined-only --format=posix $I/program/libofficebean.so
| cut -d' ' -f1-2 >> $W/LinkTarget/Library/libofficebean.so.exports.tmp
&& if cmp -s $W/LinkTarget/Library/libofficebean.so.exports.tmp
$W/LinkTarget/Library/libofficebean.so.exports; then rm
$W/LinkTarget/Library/libofficebean.so.exports.tmp; else mv
$W/LinkTarget/Library/libofficebean.so.exports.tmp
$W/LinkTarget/Library/libofficebean.so.exports && touch -r
$I/program/libofficebean.so
$W/LinkTarget/Library/libofficebean.so.exports; fi
TEMPFILE=/tmp/gbuild.zdnFeV && mv ${TEMPFILE}
/mnt/sdd1/home/src/libreoffice-vk/libreoffice/workdir/LinkTarget/Library/libofficebean.so.objectlist
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
[build JAR] officebean
S=/mnt/sdd1/home/src/libreoffice-vk/libreoffice && I=$S/instdir &&
W=$S/workdir && mkdir -p $W/JavaClassSet/Jar/officebean/META-INF &&
echo Manifest-Version: 1.0 >
$W/JavaClassSet/Jar/officebean/META-INF/MANIFEST.MF && echo
"Solar-Version: 6.4.0.0" >>
$W/JavaClassSet/Jar/officebean/META-INF/MANIFEST.MF && mkdir -p
$I/program/classes/ && cd $W/JavaClassSet/Jar/officebean && jar cfm
$I/program/classes/officebean.jar
$W/JavaClassSet/Jar/officebean/META-INF/MANIFEST.MF META-INF com ||
(rm $I/program/classes/officebean.jar; false)
[build BIN] bean
S=/mnt/sdd1/home/src/libreoffice-vk/libreoffice && I=$S/instdir &&
W=$S/workdir && mkdir -p $W/Module/nonl10n/ && touch $W/Module/nonl10n/bean
[build MOD] bean
S=/mnt/sdd1/home/src/libreoffice-vk/libreoffice && I=$S/instdir &&
W=$S/workdir && mkdir -p $W/Module/ && touch $W/Module/bean
[build BIN] top level modules: bean
[build BIN] loaded modules: bean
[build ALL] top level modules: build-non-l10n-only build-l10n-only
[build ALL] loaded modules: bean
make[1]: Leaving directory
'/mnt/sdd1/home/src/libreoffice-vk/libreoffice/bean'
cd /mnt/sdd1/home/src/libreoffice-vk/libreoffice/bean && make -j 4 -r
subsequentcheck
make[1]: Entering directory
'/mnt/sdd1/home/src/libreoffice-vk/libreoffice/bean'
mkdir -p
/mnt/sdd1/home/src/libreoffice-vk/libreoffice/workdir/JavaClassSet/JunitTest/
&& touch
/mnt/sdd1/home/src/libreoffice-vk/libreoffice/workdir/JavaClassSet/JunitTest/bean_complex.prepared
[build ALL] All modules but instset: bean
touch
/mnt/sdd1/home/src/libreoffice-vk/libreoffice/workdir/Postprocess/AllModulesButInstsetNative
[build JCS] JunitTest/bean_complex
S=/mnt/sdd1/home/src/libreoffice-vk/libreoffice && I=$S/instdir &&
W=$S/workdir && mkdir -p $W/JavaClassSet/JunitTest/bean_complex/ && rm
-rf $W/JavaClassSet/JunitTest/bean_complex/* &&
RESPONSEFILE=/tmp/gbuild.v91kVE && /usr/lib/jvm/default/bin/javac
-J-Xmx128M -encoding utf8 -source 8 -target 8 -g -classpath
"/mnt/sdd1/home/src/libreoffice-vk/junit-4.12.jar:/mnt/sdd1/home/src/libreoffice-vk/hamcrest-core-1.3.jar:$W/Jar/OOoRunner.jar:$I/program/classes/ridl.jar:$W/Jar/test.jar:$I/program/classes/unoil.jar:$I/program/classes/officebean.jar:$W/JavaClassSet/JunitTest/bean_complex"
-d $W/JavaClassSet/JunitTest/bean_complex @$RESPONSEFILE && rm -f
$RESPONSEFILE && touch $W/JavaClassSet/JunitTest/bean_complex/done
/mnt/sdd1/home/src/libreoffice-vk/libreoffice/bean/qa/complex/bean/OOoBeanTest.java:82:
error: cannot access Proxy
com.sun.star.frame.XModel model = bean.getDocument();
^
class file for com.sun.star.lib.uno.Proxy not found
Note:
/mnt/sdd1/home/src/libreoffice-vk/libreoffice/bean/qa/complex/bean/WriterFrame.java
uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
make[1]: ***
[/mnt/sdd1/home/src/libreoffice-vk/libreoffice/solenv/gbuild/JavaClassSet.mk:53:
/mnt/sdd1/home/src/libreoffice-vk/libreoffice/workdir/JavaClassSet/JunitTest/bean_complex/done]
Error 1
make[1]: Leaving directory
'/mnt/sdd1/home/src/libreoffice-vk/libreoffice/bean'
make: *** [Makefile:120: bean.subsequentcheck] Error 2
---------------------
Regards,
Vladimir Koković, DP senior(69)
Serbia, Belgrade, 28.aug 2019
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20190828/ac76b10a/attachment.html>
More information about the LibreOffice
mailing list