As is you cannot build gnupg-2.0.18 on AIX 6.1. The problem is that the number
of file descriptors on AIX is high. FD_SETSIZE is 65534 and the value returned
by getrlimit is 2147483647. The work around is:
(1) Build "pth" using --with-fdsetsize=8192 (this is a pre-req for gnupg)
(2) Build "gnupg" prefixing each command with:
ulimit -H -n 8192; CC="gcc -DFD_SETSIZE=8192" i.e. ulimit -H -n 8192; CC="gcc -DFD_SETSIZE=8192" ./configure ulimit -H -n 8192; CC="gcc -DFD_SETSIZE-8192" make
The "ulimit -H -n 8192" is required for the "t-exechelp" test to work because
it "seems" to end up in a loop. Value other than 8192 might also work.