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

2024-03-10 Thread Andreas Mantke

Hi Hossein,

thanks for your answer. Sorry for my late answer. I was busy with other
tasks during the last days.

Am 05.03.24 um 21:51 schrieb Hossein Nourikhah:

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=jawt_md.h=path=stable=any



I looked onto the Debian packages site (your link above) and they listed
jawt_md.h inside the folder, you mentioned above. But I looked into this
folder on my Netbook and there was no such file. There was only a file
named jni_md.h.

I tried to purge and reinstall the package with apt-get from the server
and local, but that didn't change anything. The local directory stayed
as it was.

Then I tried a run of apt-get install with the dependencies from the TDF
wiki for Debian and that fixed the issue. There is an jawt_md.h file
available jet in the folder, you mentioned above.

But yet another issue appeared with JAVA. There is no 'java' inside the
bin directory. There is instead a file named 'jconsole' and this breaks
the run of autogen.sh. It stops with the error message 'no java in the
bin directory of the jre found'.

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



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

2024-03-05 Thread Hossein Nourikhah

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=jawt_md.h=path=stable=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 
  |  ^~~
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