OSDN Git Service

Fix no pic
[uclinux-h8/uClinux-dist.git] / user / net-snmp / README.aix
1 Some notes for the AIX port
2 ===========================
3
4 1. Known problems
5 -----------------
6
7 There are the following known problems on AIX:
8
9 1) Shared libraries / embedded perl
10
11 Up to (and including) net-snmp 5.4, configure forced a static build
12 on AIX which caused embedded Perl to be disabled as well.
13
14 Starting with net-snmp 5.4.1, we build shared libraries by default on AIX
15 (like on any other platform) using run-time linking. configure forces the
16 use of the required "-brtl" linker flag.
17
18 With net-snmp 5.5 the shared library build is broken again but the there is
19 no forced static build - use --disable-shared when building.
20
21 2) "grep: capacity exceeded" or "sed: Command line is too long" during configure
22
23 The version of "grep" shipped with AIX versions up to (and including) 5.1
24 has a known limitation of only supporting a maximum of 2048 characters per line.
25 This may cause a significant number of "grep: capacity exceeded" errors during
26 configure which breaks the build. See bug 1367794 for details. The fix is to 
27 either install GNU grep (and have it in PATH before the AIX grep) or to upgrade
28 to AIX 5.2 or later.
29
30 There's a similar issue with AIX /usr/bin/sed up to at least AIX 5.3 that 
31 causes a significant number of "sed: Command line is too long." errors during
32 configure. The fix is to install GNU sed.
33
34 3) nlist errors with 64-bit kernels
35
36 Accessing certain MIB objects on AIX 5.x machines running a 64-bit kernel will
37 trigger nlist/klookup errors. Starting from net-snmp 5.4, you can avoid those 
38 by using
39
40    ./configure --without-kmem-usage ...
41   
42
43 4) IPv6
44
45 Starting with net-snmp 5.4 you can enable the UDPIPv6 and TCPIPv6 transports 
46 on AIX 5.x:
47
48    ./configure --enable-ipv6
49
50 There's no support for the IPv6 MIBs, though.
51
52 5) Compiler for Perl
53
54 In general, Perl modules need to be compiled with the same compiler and 
55 compiler options as Perl itself. configure detects some mismatches (gcc vs. 
56 vendor compiler), but treats different incarnations of the same compiler type
57 as similar. If your version of Perl (e.g. the one supplied by IBM for AIX 5.x)
58 has been compiled with cc_r on AIX, please make sure you also use CC=cc_r when
59 building net-snmp. Building with xlc in this case is known to fail (see bug
60 #1600099).
61
62
63 2. Patches
64 ----------
65
66 You may want to have a look for existing AIX patches in our patches tracker
67 (http://www.net-snmp.org/patches/). If you can offer patches yourself to 
68 improve the AIX support, please submit them there.
69
70
71 3. Feedback
72 -----------
73
74 Please also see README and PORTING.
75
76 If you have questions, additional insights or (even better) patches regarding
77 net-snmp on AIX, please refer to the net-snmp mailing lists (see
78 http://www.net-snmp.org/lists).