After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 750501 - AtkWrapper.c:21:17: fatal error: jni.h: No such file or directory
AtkWrapper.c:21:17: fatal error: jni.h: No such file or directory
Status: RESOLVED FIXED
Product: java-atk-wrapper
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: java-atk-wrapper maintainer(s)
java-atk-wrapper maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-06-06 20:29 UTC by Jose Vilmar Estacio de Souza
Modified: 2015-06-07 16:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
output file with content ofterminal during compilation (2.46 KB, application/gzip)
2015-06-07 13:30 UTC, Jose Vilmar Estacio de Souza
  Details
patch to address bug (1.33 KB, patch)
2015-06-07 15:18 UTC, Magdalen Berns (irc magpie)
committed Details | Review
add darwin includes. (1014 bytes, patch)
2015-06-07 16:30 UTC, Magdalen Berns (irc magpie)
committed Details | Review

Description Jose Vilmar Estacio de Souza 2015-06-06 20:29:36 UTC
I tried to compile java-atk-wrapper using the following sequence:
make clean
git clean -fX
./autogen.sh --prefix=/usr
make

The compillation was aborted with the following error:
AtkWrapper.c:21:17: fatal error: jni.h: No such file or directory
Comment 1 Magdalen Berns (irc magpie) 2015-06-07 10:46:53 UTC
I probably need to configure includes for your arch properly in acinclude.m4 [1] My JNI includes get set with https://git.gnome.org/browse/java-atk-wrapper/tree/acinclude.m4#n36

Can you paste out the terminal?

[1] https://git.gnome.org/browse/java-atk-wrapper/tree/acinclude.m4#n33
Comment 2 Jose Vilmar Estacio de Souza 2015-06-07 13:30:35 UTC
Created attachment 304727 [details]
output file with content ofterminal during compilation

In the attached file I can see the following:
JNI includes:                           -I/usr/lib/jvm/java-7-jdk/include -I/usr/lib/jvm/java-7-jdk/include/linux

The directory /usr/lib/jvm/java-7-jdk/include  contains the following files:
classfile_constants.h
jawt.h
jdwpTransport.h
jni.h
jvmticmlr.h
jvmti.h
linux
Comment 3 Magdalen Berns (irc magpie) 2015-06-07 15:18:29 UTC
Created attachment 304728 [details] [review]
patch to address bug

This should do the trick. Let me know if there are any further problems.
Comment 4 Jose Vilmar Estacio de Souza 2015-06-07 15:38:57 UTC
Works fine.
Thanks.

Should I  close this bug?
Comment 5 Magdalen Berns (irc magpie) 2015-06-07 16:30:58 UTC
Created attachment 304730 [details] [review]
add darwin includes.

Yes, thanks for confirming we can close now. I just checked on darwin as well and added this patch for darwin includes.

Let me know if there's anything else.

Thanks.