Bug 453572
Summary: | gcj-devel exports jni includes in default include path | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Daniel Veillard <veillard> |
Component: | gcc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-07-09 09:15:03 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Daniel Veillard
2008-07-01 12:52:46 UTC
IMNSHO it is perfectly fine as is, I don't see a reason why it should be hidden in any way. When you compile against openjdk, just make sure its include directories are all mentioned in -I options. The above sounds like you are including some gcj-devel header (as jni_md.h is gcc specific, while jni.h is not). Preprocessed source (perhaps with -E -dD even better) might reveal where exactly is the problem. Yes the system specific $JAVA_HOME/include/linux include path was missing on the command line. Still i still consider a bug that normal gcc exports GCJ JNI header paths especially when the OpenJDK and GCJ includes are not compatible. that's call header pollution IMHO, you're spreading into a namespace where you don't have control. Using gcc as the compiler should not mean you might be using the gcj JNI include files. that looks just like a recipe for broken compile, broken projects (because their JNI code compile even though they forgot to add the include paths). I'm ready to bet that fixing that bug will expose various problems in the way JNI bindings are compiled left and right... Daniel Not So humble Opinion indeed... switching to CLOSED NOTABUG while not even looking at the incompatibility of the headers means you really don't want to be bothered ... I did post that bug after having asked feedback from people on the java and tools internal channels, and people stated the gcj headers really should be fixed because a guard for header inclusion was missing. You don't care, okay Daniel |