Bug 156914 - LibreOffice fails to build with --without-java
Summary: LibreOffice fails to build with --without-java
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Samuel Mehrbrodt (allotropia)
Whiteboard: target:7.6.2
Depends on:
Reported: 2023-08-25 14:58 UTC by Heiko Becker
Modified: 2023-09-04 06:41 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Becker 2023-08-25 14:58:53 UTC
While built fine with --without-java, started to fail to build with that:

[build CXX] cui/source/options/optlingu.cxx
/var/tmp/paludis/build/app-office-libreoffice- In member function 'void SvxJavaClassPathDlg::SetClassPath(co
nst rtl::OUString&)':
/var/tmp/paludis/build/app-office-libreoffice- error: 'jfw_convertUserPathList' was not declared in this scope
  945 |         std::vector paths = jfw_convertUserPathList(_rPath);
      |                             ^~~~~~~~~~~~~~~~~~~~~~~

#include <jvmfwk/framework.hxx> is behind "#if HAVE_FEATURE_JAVA" but "jfw_convertUserPathList" is not, causing the build failure.
Comment 1 Julien Nabet 2023-08-25 15:32:24 UTC
Samuel: noticing 7795a2adc0a724220440dca997495043902f1384, thought you might be interested in this one.
Comment 2 Commit Notification 2023-09-01 08:17:26 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "libreoffice-7-6":


tdf#156914 Fix --without-java build

It will be available in 7.6.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:

Affected users are encouraged to test the fix and report feedback.