Debian 12.5 - 32bit Compiling Error - Missing jawt_md.h

Hossein Nourikhah hossein at libreoffice.org
Tue Mar 5 20:51:03 UTC 2024


Hello Andreas,

The file jawt_md.h is available in the include path of the openjdk, but 
the path to the file varies according to the architecture. For example, 
compare these two:

/usr/lib/jvm/java-17-openjdk-i386/include/linux/jawt_md.h
/usr/lib/jvm/java-17-openjdk-amd64/include/linux/jawt_md.h
https://packages.debian.org/search?searchon=contents&keywords=jawt_md.h&mode=path&suite=stable&arch=any

Please make sure that you have the correct OpenJDK (for example, 
	openjdk-17-jdk package) installed. If you have it and still get the 
error, the issue might be that the Java include path ($JAVAINC) is not 
constructed correctly in the configuration variables of configure.ac.

As far as I remember, the only change that was merged recently, and 
might be related, is this one:

https://git.libreoffice.org/core/commit/4267c7124876b9213b3169a55731d260c8c63f7c

Please try to see if reverting it helps.

Also, can you try installing a JDK from the compressed archive (tar.gz), 
and pass the installation path to autogen.input like this?

--with-jdk-home=

You can probably download 32 bit Java 8 JDK from here:
https://www.oracle.com/java/technologies/downloads/#java8

Regards,
Hossein

On 05.03.2024 19:59, Andreas Mantke wrote:
> Hi all,
> 
> I tried to compile the current source code from the LibreOffice core
> master, but I failed with an error within the bean module:
> 
> [C  ] bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c
> /home/andreas/libreoffice/libo/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c:35:10:
> fatal error: jawt_md.h: Datei oder Verzeichnis nicht gefunden
>    35 | #include <jawt_md.h>
>       |          ^~~~~~~~~~~
> compilation terminated.
> make[1]: ***
> [/home/andreas/libreoffice/libo/solenv/gbuild/LinkTarget.mk:275:
> /home/andreas/libreoffice/libo/workdir/CObject/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.o]
> Fehler 1
> 
> 
> The gcc compiler didn't find the 'jawa_md.h' file. This seemed to be an
> issue with the open-jdk on Debian Linux.
> 
> The error didn't appear during my previous compilation of LibreOffice 
> on
> the same 32-bit Netbook, using a LibreOffice source checkout about two
> weeks before.
> 
> Is there a workaround or a solution for this issue available?
> 
> Regards,
> Andreas
> 
> --
> ## Free Software Advocate
> ## Free Online Office (LibreOffice Technology):
> ## https://github.com/freeonlineoffice/online
> ## Plone add-on developer
> ## My blog: http://www.amantke.de/blog


More information about the LibreOffice mailing list