This small patch allows GCC 3.4.0 to build on AIX 4.2.1. The GCC folks don't want to fix it (not that I blame them, AIX 4.2.1 reached the end of its service life in mid-2000). http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15226 Apply this patch, the bos.rte.bind_cmds.4.2.1.11 fileset (available at ftp://service.boulder.ibm.com/aix/fixes/v4/os/) and build with: ../gcc-3.4.0/configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld \ --enable-languages=c make LDFLAGS=-Wl,-bbigtoc BOOT_LDFLAGS=-Wl,-bbigtoc bootstrap --- gcc-3.4.0/gcc/collect2.c.orig 2004-04-30 21:05:54.727042000 +1000 +++ gcc-3.4.0/gcc/collect2.c 2004-04-30 21:06:48.534416000 +1000 @@ -35,6 +35,9 @@ # define SIGCHLD SIGCLD #endif +#include +#include + #ifdef vfork /* Autoconf may define this to fork for us. */ # define VFORK_STRING "fork" #else