public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/35089] New: previous declaration of jboolean
@ 2008-02-05 14:32 yalbasilva at gmail dot com
2008-02-05 16:54 ` [Bug c/35089] " rguenth at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: yalbasilva at gmail dot com @ 2008-02-05 14:32 UTC (permalink / raw)
To: gcc-bugs
When compiling JNI code in Linux RedHat, I get the following error:
/usr/java/j2sdk1.4.2_16/include/jni.h:39: error: conflicting types for
'jboolean'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/jni_md.h:84: error: previous
declaration of 'jboolean' was here
I need the compiler to pick the Sun's declaration, and not that one from gcc. I
have -I/usr/java/j2sdk1.4.2_16/include in my options.
Is there any workaround for this?
--
Summary: previous declaration of jboolean
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: yalbasilva at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35089
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/35089] previous declaration of jboolean
2008-02-05 14:32 [Bug c/35089] New: previous declaration of jboolean yalbasilva at gmail dot com
@ 2008-02-05 16:54 ` rguenth at gcc dot gnu dot org
2008-02-05 17:03 ` tromey at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-02-05 16:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2008-02-05 16:53 -------
The declarations should be effectively the same.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35089
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/35089] previous declaration of jboolean
2008-02-05 14:32 [Bug c/35089] New: previous declaration of jboolean yalbasilva at gmail dot com
2008-02-05 16:54 ` [Bug c/35089] " rguenth at gcc dot gnu dot org
@ 2008-02-05 17:03 ` tromey at gcc dot gnu dot org
2008-02-05 17:04 ` tromey at gcc dot gnu dot org
2008-02-06 20:26 ` yalbasilva at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: tromey at gcc dot gnu dot org @ 2008-02-05 17:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from tromey at gcc dot gnu dot org 2008-02-05 17:02 -------
I think you need an additional -I pointing to the directory
containing the JDK's jni_md.h.
Can you confirm this and get back to me?
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |tromey at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-02-05 17:02:57
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35089
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/35089] previous declaration of jboolean
2008-02-05 14:32 [Bug c/35089] New: previous declaration of jboolean yalbasilva at gmail dot com
2008-02-05 16:54 ` [Bug c/35089] " rguenth at gcc dot gnu dot org
2008-02-05 17:03 ` tromey at gcc dot gnu dot org
@ 2008-02-05 17:04 ` tromey at gcc dot gnu dot org
2008-02-06 20:26 ` yalbasilva at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: tromey at gcc dot gnu dot org @ 2008-02-05 17:04 UTC (permalink / raw)
To: gcc-bugs
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35089
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/35089] previous declaration of jboolean
2008-02-05 14:32 [Bug c/35089] New: previous declaration of jboolean yalbasilva at gmail dot com
` (2 preceding siblings ...)
2008-02-05 17:04 ` tromey at gcc dot gnu dot org
@ 2008-02-06 20:26 ` yalbasilva at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: yalbasilva at gmail dot com @ 2008-02-06 20:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from yalbasilva at gmail dot com 2008-02-06 20:25 -------
Hi,
Yes, I had a typo when I included $JAVA_HOME/include/linux. Once I fixed it I
was able to compile OK.
Thanks for looking into this so quick! This can be closed.
--
yalbasilva at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35089
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-02-06 20:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-05 14:32 [Bug c/35089] New: previous declaration of jboolean yalbasilva at gmail dot com
2008-02-05 16:54 ` [Bug c/35089] " rguenth at gcc dot gnu dot org
2008-02-05 17:03 ` tromey at gcc dot gnu dot org
2008-02-05 17:04 ` tromey at gcc dot gnu dot org
2008-02-06 20:26 ` yalbasilva at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).