Blame README.aix

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