Blame README.osX

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