Blame README.osX

Packit Service b38f0b
README.osX
Packit Service b38f0b
$Id$
Packit Service b38f0b
Packit Service b38f0b
This is what I had to do to get it to work for me. Your mileage may vary.
Packit Service b38f0b
If this doesn't work for you, or you have fixes for any problems listed,
Packit Service b38f0b
please post to <net-snmp-coders@lists.sourceforge.net>. Thanks!
Packit Service b38f0b
Packit Service b38f0b
  - ALL
Packit Service b38f0b
Packit Service b38f0b
    - nlist doesn't support icmpstat
Packit Service b38f0b
Packit Service b38f0b
       - disable the icmp module during configure by specifying
Packit Service b38f0b
         "--with-out-mib-modules=mibII/icmp", or at startup by adding
Packit Service b38f0b
         "-I -icmp" to the snmpd command line.
Packit Service b38f0b
Packit Service b38f0b
Packit Service b38f0b
  - 10.4.7 (Universal) and Leopard with 5.4 sources:
Packit Service b38f0b
        [Supplied by Chris Jalbert]
Packit Service b38f0b
Packit Service b38f0b
       - build using gcc 4.0 (see below) and configure using:
Packit Service b38f0b
                        --with-persistent-directory=/var/db/net-snmp \
Packit Service b38f0b
                        --with-defaults \
Packit Service b38f0b
                        --without-rpm \
Packit Service b38f0b
                        --with-mib-modules="host ucd-snmp/diskio" \
Packit Service b38f0b
                        --with-out-mib-modules="mibII/icmp host/hr_swrun" \
Packit Service b38f0b
                        --without-kmem-usage
Packit Service b38f0b
Packit Service b38f0b
       The first line sets up persistent storage in the OS X standard location.
Packit Service b38f0b
Packit Service b38f0b
       The third line is necessary because RPM is not properly disabled.
Packit Service b38f0b
Packit Service b38f0b
       The fourth line includes those modules appear to build properly and
Packit Service b38f0b
       mostly work. The next line is necessary because those sub-modules
Packit Service b38f0b
       do not build.
Packit Service b38f0b
Packit Service b38f0b
       The final line is necessary because /dev/kmem was removed in
Packit Service b38f0b
       the Intel / Universal builds of the OS, and I believe the APIs will
Packit Service b38f0b
       be removed in Leopard.
Packit Service b38f0b
         This line is the most critical for proper building on OS X.
Packit Service b38f0b
Packit Service b38f0b
Packit Service b38f0b
  - 10.3.x and earlier
Packit Service b38f0b
Packit Service b38f0b
     - Some older versions of Apple's cpp doesn't like configure. 
Packit Service b38f0b
Packit Service b38f0b
        - run 'gcc_select' to see what version you are using, and
Packit Service b38f0b
          'gcc_select -l' to list available versions. I've had success with
Packit Service b38f0b
          3.3, selected by running (as root) 'gcc_select 3.3'. (Note: this was
Packit Service b38f0b
          on Panther, 10.3.2)
Packit Service b38f0b
Packit Service b38f0b
     - Some older versions of net-snmp as installed by Apple contains
Packit Service b38f0b
       bad flags in net-snmp-config.
Packit Service b38f0b
Packit Service b38f0b
       - build your own version, and install over Apple's version. The
Packit Service b38f0b
         configure flags you need for the same configuration:
Packit Service b38f0b
Packit Service b38f0b
         configure --prefix=/usr --mandir=/usr/share/man
Packit Service b38f0b
                   --infodir=/usr/share/info --with-libwrap --with-defaults
Packit Service b38f0b
                   --prefix=/usr --with-persistent-directory=/var/db/ucd-snmp
Packit Service b38f0b
                   --with-mib-modules=host
Packit Service b38f0b