Bug #1176
closedCannot build LTTng-ust from source with JUL support
0%
Description
Hi all,
I can't build LTTng-ust from source on my machine (Fedora 29, 4.20.7), the bug affects branches stable-2.09 to 2.11-rc2. I configure using:
./bootstrap ./configure --enable-java-agent-jul
The configure works fine, bug make gives me this:
make[4] : on entre dans le répertoire « /tmp/tmp.xF9X0lxMas/lttng-ust/liblttng-ust-java-agent/java/lttng-ust-agent-common » CLASSPATH=.:./.${CLASSPATH:+":$CLASSPATH"} javac -d . org/lttng/ust/agent/AbstractLttngAgent.java org/lttng/ust/agent/EventNamePattern.java org/lttng/ust/agent/ILttngAgent.java org/lttng/ust/agent/ILttngHandler.java org/lttng/ust/agent/LTTngAgent.java org/lttng/ust/agent/client/ILttngTcpClientListener.java org/lttng/ust/agent/client/SessiondCommand.java org/lttng/ust/agent/client/LttngAgentResponse.java org/lttng/ust/agent/client/LttngTcpSessiondClient.java org/lttng/ust/agent/client/SessiondCommandHeader.java org/lttng/ust/agent/client/SessiondDisableAppContextCommand.java org/lttng/ust/agent/client/SessiondDisableEventCommand.java org/lttng/ust/agent/client/SessiondEnableAppContextCommand.java org/lttng/ust/agent/client/SessiondEnableEventCommand.java org/lttng/ust/agent/client/SessiondListLoggersCommand.java org/lttng/ust/agent/context/LttngContextApi.java org/lttng/ust/agent/context/ContextInfoManager.java org/lttng/ust/agent/context/ContextInfoSerializer.java org/lttng/ust/agent/context/IContextInfoRetriever.java org/lttng/ust/agent/filter/FilterChangeNotifier.java org/lttng/ust/agent/filter/IFilterChangeListener.java org/lttng/ust/agent/session/EventRule.java org/lttng/ust/agent/session/LogLevelSelector.java org/lttng/ust/agent/utils/LttngUstAgentLogger.java echo timestamp > classnoinst.stamp jar cfm lttng-ust-agent-common-1.0.0.jar ./Manifest.txt org/lttng/ust/agent/*.class org/lttng/ust/agent/client/*.class org/lttng/ust/agent/context/*.class org/lttng/ust/agent/filter/*.class org/lttng/ust/agent/session/*.class org/lttng/ust/agent/utils/*.class && rm -f lttng-ust-agent-common.jar && ln -s lttng-ust-agent-common-1.0.0.jar lttng-ust-agent-common.jar /usr/bin/javah -classpath :. -d ../../jni/common org.lttng.ust.agent.context.LttngContextApi && \ echo "Context API JNI header generated" > context-jni-header.stamp Error: Could not find class file for 'org.lttng.ust.agent.context.LttngContextApi'. make[4]: *** [Makefile:631: context-jni-header.stamp] Error 1 make[4] : on quitte le répertoire « /tmp/tmp.xF9X0lxMas/lttng-ust/liblttng-ust-java-agent/java/lttng-ust-agent-common » make[3]: *** [Makefile:411: all-recursive] Error 1 make[3] : on quitte le répertoire « /tmp/tmp.xF9X0lxMas/lttng-ust/liblttng-ust-java-agent/java » make[2]: *** [Makefile:407: all-recursive] Error 1 make[2] : on quitte le répertoire « /tmp/tmp.xF9X0lxMas/lttng-ust/liblttng-ust-java-agent » make[1]: *** [Makefile:580: all-recursive] Error 1 make[1] : on quitte le répertoire « /tmp/tmp.xF9X0lxMas/lttng-ust » make: *** [Makefile:456: all] Error 2
For info:
$ javah -version javah version "1.8.0_201"
Thanks,
Loïc.
Files
Updated by Mathieu Desnoyers almost 6 years ago
Can you try with the following patch ?
Also please provide your config.log output.
Thanks,
Mathieu
Updated by Loïc Gelle almost 6 years ago
- File config.log config.log added
The patch did not fix the problem. See config.log attached.
Updated by Mathieu Desnoyers almost 6 years ago
Do you have a liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/context/LttngContextApi.class file in your build tree after issuing this make ?
Updated by Loïc Gelle almost 6 years ago
Mathieu Desnoyers wrote:
Do you have a liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/context/LttngContextApi.class file in your build tree after issuing this make ?
Yes.
Updated by Loïc Gelle almost 6 years ago
Fixed by replacing my preinstalled javah binary (from OpenJDK, provided by Fedora) by the one found in Oracle's JDK.