trouble building libgcj

David Kulp
Thu May 6 09:54:00 GMT 1999

I apologize for this newbie question, but I'm trying to build libgcj
and I'm experiencing a strange problem.

Platform: i386-unknown-freebsd2.2.8
egcs: gcc version egcs-2.93.21 19990504 (gcc2 ss-980929 experimental)

I built the most recent egcs with --prefix=/usr/local/egcs passed to
configure.  Egcs built and installed ok.  /usr/local/egcs/bin is first
in my path.  Then I configure libgcj (also with --prefix set) and
make.  It gets through quite a lot, but dies with

gmake[1]: Entering directory `/usr/home/dkulp/hacks/build/i386-unknown-freebsd2.2.8/libjava'
/bin/sh ./libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I../../../libgcj/libjava -I./include -Iinclude -I../../../libgcj/libjava/include -I../../../libgcj/libjava/../boehm-gc -I./../boehm-gc  -DSILENT=1 -DNO_SIGNALS=1 -DNO_DEBUGGING=1 -DJAVA_FINALIZATION=1   -I../../../libgcj/libjava/../compat-include   -fno-rtti -fvtable-thunks   -W -Wall -g -O2 -c ../../../libgcj/libjava/
rm -f .libs/jni.lo
c++ -DHAVE_CONFIG_H -I. -I../../../libgcj/libjava -I./include -Iinclude -I../../../libgcj/libjava/include -I../../../libgcj/libjava/../boehm-gc -I./../boehm-gc -DSILENT=1 -DNO_SIGNALS=1 -DNO_DEBUGGING=1 -DJAVA_FINALIZATION=1 -I../../../libgcj/libjava/../compat-include -fno-rtti -fvtable-thunks -W -Wall -g -O2 -Wp,-MD,.deps/jni.pp -c  -fPIC -DPIC ../../../libgcj/libjava/ -o .libs/jni.lo
In file included from ../../../libgcj/libjava/
../../../libgcj/libjava/include/jni.h:127: type specifier omitted for parameter
../../../libgcj/libjava/include/jni.h:148: type specifier omitted for parameter

When I look at jni.h, the errors refer to _Jv_va_list which is defined
in this file to be __gnuc_va_list, which is supposedly defined in

This leads me to believe that there is a special stdarg.h for egcs,
but there is no such file in my installed version of egcs.

Can someone give me a pointer or two on how to remedy this?

-david kulp.

More information about the Java mailing list