Blame README.aix

Packit Service b38f0b
Some notes for the AIX port
Packit Service b38f0b
===========================
Packit Service b38f0b
Packit Service b38f0b
1. Known problems
Packit Service b38f0b
-----------------
Packit Service b38f0b
Packit Service b38f0b
There are the following known problems on AIX:
Packit Service b38f0b
Packit Service b38f0b
1) Shared libraries / embedded perl
Packit Service b38f0b
Packit Service b38f0b
Up to (and including) net-snmp 5.4, configure forced a static build
Packit Service b38f0b
on AIX which caused embedded Perl to be disabled as well.
Packit Service b38f0b
Packit Service b38f0b
Starting with net-snmp 5.4.1, we build shared libraries by default on AIX
Packit Service b38f0b
(like on any other platform) using run-time linking. configure forces the
Packit Service b38f0b
use of the required "-brtl" linker flag.
Packit Service b38f0b
Packit Service b38f0b
With net-snmp 5.5 the shared library build is broken again but the there is
Packit Service b38f0b
no forced static build - use --disable-shared when building.
Packit Service b38f0b
Packit Service b38f0b
2) "grep: capacity exceeded" or "sed: Command line is too long" during configure
Packit Service b38f0b
Packit Service b38f0b
The version of "grep" shipped with AIX versions up to (and including) 5.1
Packit Service b38f0b
has a known limitation of only supporting a maximum of 2048 characters per line.
Packit Service b38f0b
This may cause a significant number of "grep: capacity exceeded" errors during
Packit Service b38f0b
configure which breaks the build. See bug 1367794 for details. The fix is to 
Packit Service b38f0b
either install GNU grep (and have it in PATH before the AIX grep) or to upgrade
Packit Service b38f0b
to AIX 5.2 or later.
Packit Service b38f0b
Packit Service b38f0b
There's a similar issue with AIX /usr/bin/sed up to at least AIX 5.3 that 
Packit Service b38f0b
causes a significant number of "sed: Command line is too long." errors during
Packit Service b38f0b
configure. The fix is to install GNU sed.
Packit Service b38f0b
Packit Service b38f0b
3) nlist errors with 64-bit kernels
Packit Service b38f0b
Packit Service b38f0b
Accessing certain MIB objects on AIX 5.x machines running a 64-bit kernel will
Packit Service b38f0b
trigger nlist/klookup errors. Starting from net-snmp 5.4, you can avoid those 
Packit Service b38f0b
by using
Packit Service b38f0b
Packit Service b38f0b
   ./configure --without-kmem-usage ...
Packit Service b38f0b
  
Packit Service b38f0b
Packit Service b38f0b
4) IPv6
Packit Service b38f0b
Packit Service b38f0b
Starting with net-snmp 5.4 you can enable the UDPIPv6 and TCPIPv6 transports 
Packit Service b38f0b
on AIX 5.x:
Packit Service b38f0b
Packit Service b38f0b
   ./configure --enable-ipv6
Packit Service b38f0b
Packit Service b38f0b
There's no support for the IPv6 MIBs, though.
Packit Service b38f0b
Packit Service b38f0b
5) Compiler for Perl
Packit Service b38f0b
Packit Service b38f0b
In general, Perl modules need to be compiled with the same compiler and 
Packit Service b38f0b
compiler options as Perl itself. configure detects some mismatches (gcc vs. 
Packit Service b38f0b
vendor compiler), but treats different incarnations of the same compiler type
Packit Service b38f0b
as similar. If your version of Perl (e.g. the one supplied by IBM for AIX 5.x)
Packit Service b38f0b
has been compiled with cc_r on AIX, please make sure you also use CC=cc_r when
Packit Service b38f0b
building net-snmp. Building with xlc in this case is known to fail (see bug
Packit Service b38f0b
#1600099).
Packit Service b38f0b
Packit Service b38f0b
Packit Service b38f0b
2. Patches
Packit Service b38f0b
----------
Packit Service b38f0b
Packit Service b38f0b
You may want to have a look for existing AIX patches in our patches tracker
Packit Service b38f0b
(http://www.net-snmp.org/patches/). If you can offer patches yourself to 
Packit Service b38f0b
improve the AIX support, please submit them there.
Packit Service b38f0b
Packit Service b38f0b
Packit Service b38f0b
3. Feedback
Packit Service b38f0b
-----------
Packit Service b38f0b
Packit Service b38f0b
Please also see README and PORTING.
Packit Service b38f0b
Packit Service b38f0b
If you have questions, additional insights or (even better) patches regarding
Packit Service b38f0b
net-snmp on AIX, please refer to the net-snmp mailing lists (see
Packit Service b38f0b
http://www.net-snmp.org/lists).