[kaffe] Problems compiling kaffe (gcc 3.2 & 3.1.1)

Gwenole Beauchesne gbeauchesne at mandrakesoft.com
Sat Aug 31 11:30:09 PDT 2002


Hi,

> it seems that the configure script is unable to find
> fcntl.h or string.h. Do these include files exist on
> your system?

I have a patch/workaround for that in our package. What happens is when 
compiling with explicit -I/usr/include or -I/usr/local/include, gcc 
warns you that this is bad practice. It turns out that the (generated) 
configure script doesn't know about the warning as the AC_CHECK_HEADER 
(IIRC, that was this one) checks that no output is emitted. That is, it 
considers the feature as missing. Thus, HAVE_SOME_HEADER_H is not 
defined and the necessary includes are not... included.

<http://cvs.mandrakesoft.com/cgi-
bin/cvsweb.cgi/SPECS/kaffe/kaffe-1.0.7-no-locincpth.patch>

As other packages do, the clean way to fix that is to check the tested 
include path prior to adding it to CPPFLAGS. For sure, -I/usr/include is 
bad if gcc was configured with prefix=/usr. -I/usr/local/include was 
questionable and you may want to consult the gcc@ mailing-list archives.

Bye,
Gwenole.





More information about the kaffe mailing list