The file fastjar/jartool.c does an "#include <getopt.h>" and AIX provides the getopt definition in "<unistd.h>". Doing: #ifdef _AIX #include <unistd.h> #else #include <getopt.h> #endif causes other failures. Suggestions?
Hmm, fastjar is only built when java is enabled which is not very useful as libgcj is not yet builtable for AIX.
This actually fails in the bootstrap, rather than the configure step. I'm currently building 4.0.1 and it seems to get past this and fails later with another problem of: gmake[2]: *** No rule to make target `../zlib/libz.a', needed by `fastjar'. Stop.
This is not critical as there is a work around of not configuring java, so doing --enable- languages=c,c++,f90,objc while configuring. But from the looks of it, libz is not building before fastjar.
The GCC configuration for AIX already includes libgcj in the noconfigdirs list, so it should not be configured nor built by default. If it is being built, you have made some unsupported change to the GCC configuration.
libjava and fastjar currently are not a supported configuration on AIX.