diff --git a/docs/nmap-install.xml b/docs/nmap-install.xml index 3a61c70c5..662b7406f 100644 --- a/docs/nmap-install.xml +++ b/docs/nmap-install.xml @@ -1257,6 +1257,87 @@ chapter referenced above. +AIX +AIX, installing on + + +Nmap can be installed from source on IBM AIX by following the instructions in +. You need only pay attention to a few +details. + + + +You must use the +gccGCC compiler, +not xlc. Nmap's configure script will automatically find +gcc if it is somewhere in the +PATHPATH environment variable +environment variable. + + + + +Some editions of the default +asas (assembler) +assembler either +crash or +produce object +files that can't be linked. This is what's happening if you see compiler +output like this: + +g++: internal compiler error: Segmentation fault (program as) +Please submit a full bug report, +with preprocessed source if appropriate. +See <http://gcc.gnu.org/bugs.html> for instructions. + + +ld: 0711-596 SEVERE ERROR: Object ../nsock/src/libnsock.a[nsock_core.o] + An RLD for section 2 (.data) refers to symbol 1794, + but the storage class of the symbol is not C_EXT or C_HIDEXT. + + + + +You can work around this problem by installing the as from +GNU binutilsbinutils. (But not +ld; you want to continue using the default +ld.) These instructions were tested on AIX 7.1 with +binutils-2.21.1a from +http://ftp.gnu.org/gnu/binutils. + + + +$ bzip2 -dc binutils-2.21.1a.tar.bz2 | tar -xvf - +$ cd binutils-2.21.1 +$ ./configure --disable-werror --disable-largefile CFLAGS="-O2 -Wall" +$ gmake +$ cd gas +$ su +# gmake install + + + +This will install as in /usr/local/bin. +The custom +CFLAGSCFLAGS +omit , (GCC option) +which would otherwise cause one of the as errors you are +trying to work around. You must make sure that +/usr/local/bin appears before +/usr/bin in +PATHPATH environment variable +while building and configuring Nmap. + + + +$ export PATH="/usr/local/bin:$PATH" + + + +Now follow the instructions in . + + + Amiga, HP-UX, IRIX, and Other Platforms AmigaOS, installing on HP-UX, installing on