[kaffe] Can't compile with gcc 3.1
FAbel
klm@lmib.org
Mon, 3 Jun 2002 12:04:25 +0200
Hi,
I've checked out the cvs today, it compiles well with gcc 2.9.x but I can't
compile it with gcc 3.1, this is my error output:
/bin/sh ../../config/regen-forward ./../kaffevm/jar.c jar.c
/usr/local/gcc3/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../../config -I../../include
-I../kaffevm -I./../kaffevm -DKAFFEH -DKVER=1.1.x-cvs
-I/home/abel/MyDownload/cvs/kaffe/./kaffe/kaffevm
-I/home/abel/MyDownload/cvs/kaffe/./kaffe/kaffevm/systems/unix-jthreads
-I../../config -I../../include -I/usr/local/include -march=k6 -O3 -Wall
-Wstrict-prototypes -c jar.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
In file included from jar.c:1:
../kaffevm/jar.c: In function `jar_read':
../kaffevm/jar.c:34: warning: implicit declaration of function `memcpy'
../kaffevm/jar.c:45: warning: implicit declaration of function `strerror'
In file included from jar.c:1:
../kaffevm/jar.c: In function `openJarFile':
../kaffevm/jar.c:224: `O_RDONLY' undeclared (first use in this function)
../kaffevm/jar.c:224: (Each undeclared identifier is reported only once
../kaffevm/jar.c:224: for each function it appears in.)
../kaffevm/jar.c: In function `lookupJarFile':
../kaffevm/jar.c:266: warning: implicit declaration of function `strcmp'
make[2]: *** [jar.o] Error 1
make[2]: Leaving directory `/home/abel/MyDownload/cvs/kaffe/kaffe/kaffeh'
make[1]: *** [stamp-kaffeh] Error 2
make[1]: Leaving directory `/home/abel/MyDownload/cvs/kaffe/include'
make: *** [all-recursive] Error 1
my build system is Linux 2.4.18 i386
gcc flags are:
export GCC3_BIN=/usr/local/gcc3/bin
export CXX=$GCC3_BIN/g++
export CC=$GCC3_BIN/gcc
export CPP=$GCC3_BIN/cpp
export CFLAGS="-march=k6 -O3"
export CXXFLAGS="-march=k6 -O3"
export LDFLAGS="-march=k6 -O3"
#export QTDIR=/usr/local/src/kde/qt-copy-3.0.4
export QTDIR=/usr/local/qt
export KDEDIR=/usr/local/kde301
export LD_LIBRARY_PATH=$QTDIR/lib
export PATH=$QTDIR/bin:$PATH
export MANPATH=$QTDIR/doc/man:$MANPATH
thanks,
Fabio.