While looking for something else I found this (and in general it looks like the GCJ FAQ could use some spring cleaning).
Lots of "might be possible" in addition to this being really about quite older versions of GNU/Linux. Applied. Gerald 2012-10-21 Gerald Pfeifer <ger...@pfeifer.com> * faq.html (My libgcj build fails with "invalid use of undefined type struct sigcontext_struct"): Remove. Index: faq.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/java/faq.html,v retrieving revision 1.65 diff -u -3 -p -r1.65 faq.html --- faq.html 16 May 2011 04:57:30 -0000 1.65 +++ faq.html 21 Oct 2012 14:05:19 -0000 @@ -38,7 +38,6 @@ should I build it?</a></li> <li><a href="#3_2">Linker bug on Solaris</a></li> <li><a href="#3_3">Can I configure/build in the source tree?</a></li> - <li><a href="#3_4">My libgcj build fails with "invalid use of undefined type struct sigcontext_struct"</a></li> </ol> </li> <li><a href="#4_0">Gcj Compile/Link Questions</a> @@ -330,22 +329,6 @@ $ ../configure [...] </dd> </dl> - <hr /> - <h3><a name="3_4">3.4 My libgcj build fails with "invalid use of undefined type struct sigcontext_struct"</a></h3> - <dl> - <dd> - <p>If you're using Linux, this probably means you need to upgrade to - a newwer, glibc (libc6) based Linux distribution. libgcj does not - support the older linux libc5.</p> - <p>It might be possible to get a working libgcj by changing occurrences - of "sigcontext_struct" to "sigcontext", however this has not been tested. - Even if it works, it is likely that there are other issues with older - libc versions that would prevent libgcj from working correctly (threads - bugs, for example).</p> - </dd> - </dl> - - <h2><a name="4_0">Gcj Compile/Link Questions</a></h2> <h3><a name="4_1">4.1 Why do I get <tt>undefined reference to `main'</tt>