JExtract unknown type name 'intmax_t' for /usr/include/yara.h

Maurizio Casciano mauriziocasciano7 at gmail.com
Wed Dec 28 17:23:12 UTC 2022


Thanks  to Jorn Vernee, who suggested me to try with the GitHub LLVM+CLang
build archive
I was able to generate the Java bindings for the YARA headers using this
build
https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.6/clang+llvm-15.0.6-x86_64-linux-gnu-ubuntu-18.04.tar.xz
A more detailed answer is also available on SO
https://stackoverflow.com/questions/74931278/jextract-yara-headers-throws-unknown-type-name-intmax-t

Best,
Maurizio

Il giorno mar 27 dic 2022 alle ore 16:53 Maurizio Casciano <
mauriziocasciano7 at gmail.com> ha scritto:

> Dear All,
> I'm trying to generate Java bindings for the yara library but I'm getting
>
> error: unknown type name 'intmax_t'
> when running the jextract command:
>
> build/jextract/bin/jextract --source --output java-yara --target-package com.virustotal.yara /usr/include/yara.h
>
> even if I include the relevant additional paths:
>
> -I /usr/include
> -I /usr/include/yara
> -I /usr/lib/llvm-15/lib/clang/15.0.6/include
>
> Here is my question on Stack-Overflow
> https://stackoverflow.com/questions/74931278/jextract-usr-include-yara-h-throws-unknown-type-name-intmax-t
> and my GitHub repository
> https://github.com/MaurizioCasciano/jextract/tree/unknown_type_name_intmax_t
>
> What may be missing in the command?
>
> Best,
> Maurizio
>


-- 

Maurizio Casciano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jextract-dev/attachments/20221228/8d224212/attachment-0001.htm>


More information about the jextract-dev mailing list