Summary: | app-office/libreoffice-7.6.5.2 [java] fails to compile (MUSL-CLANG-SYSTEM): com_sun_star_comp_beans_LocalOfficeWindow.c:33:10: fatal error: jni.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Gentoo Office Team <office> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | thymelizabeth, w12101111 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 430702 | ||
Attachments: |
build.log
musl/gcc emerge --info and build.log |
Description
Agostino Sarubbo
2023-02-15 15:08:25 UTC
Created attachment 851248 [details]
build.log
build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: /var/tmp/portage/app-office/libreoffice-7.4.5.1/work/libreoffice-7.4.5.1/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c:33:10: fatal error: jni.h: No such file or directory fatal: not a git repository (or any parent up to mount point /var/tmp) /var/tmp/portage/app-office/libreoffice-7.4.5.1/work/libreoffice-7.4.5.1/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c:33:10: fatal error: jni.h: No such file or directory This error also occurs on musl/gcc systems. Created attachment 865329 [details]
musl/gcc emerge --info and build.log
tinderbox_musl has reproduced this issue with version 7.6.5.2 - Updating summary. A workaround: create those symlinks /usr/include/jawt.h -> /usr/lib/openjdk-17/include/jawt.h /usr/include/jawt_md.h -> /usr/lib/openjdk-17/include/linux/jawt_md.h /usr/include/jni.h -> /usr/lib/openjdk-17/include/jni.h /usr/include/jni_md.h -> /usr/lib/openjdk-17/include/linux/jni_md.h /usr/include/jvmti.h -> /usr/lib/openjdk-17/include/jvmti.h /usr/include/jvmticmlr.h -> /usr/lib/openjdk-17/include/jvmticmlr.h Maybe another workaround is appending `-I /usr/lib/openjdk-17/include/ -I /usr/lib/openjdk-17/include/linux` to CXXFLAG |