Note: this document refers to an ancient version of mod_gcj. Up-to-date build instructions can be found inside the the source distribution
Compiling the test code with Apache 2.0
Because of limitations in libgcj (see "Known Problems" section below) mod_gcj can currently only be built as a statically linked module, i.e. it has to be compiled with and baked into Apache.
Before you start you need a rather fresh versions of the gcc/g++/gcj installed. I'm using version 3.3.1 from SuSE 9.0 which works ok. If you are using a different version I'd be interested to hear about any success/failure stories.
Because the version of libtool shipped with Apache isn't particularly smart about C++ and Java files you we also rely on an up-to-date version of libtool installed on your system for compiling our code. If compilation fails for the .cpp or .java files, try installing the latest version of libtool.
If everything went according to plan, a page generated by mod_gcj should appear in your browser window. You can edit and recompile page/Demo.java in the mod_gcj directory to change it. Note that you can also use any other class as handler that implements the modgcj.Handler interface.
If something went wrong during the configure or build phase it probably has to do with libtool or gcj not being there or fresh enough. If you think there's some other problem please let me know.