Wireshark-dev: [Wireshark-dev] how to use/build with net-snmp library in wireshark-0.99.7
From: Tetsuya MORIMOTO <tmorimoto@xxxxxxxxxxxxxxxx>
Date: Wed, 20 Feb 2008 15:43:33 +0900
Hi all,

I tried to build wireshark-0.99.7 with net-snmp library.
But, the "configure" script doesn't work "--with-net-snmp" option.
(see also attached file which is "diff" of each log file)
--- config_with_net_snmp_0.99.6.log     2008-01-25 15:53:03.000000000 +0900
+++ config_with_net_snmp_0.99.7.log     2008-01-25 15:53:03.000000000 +0900
@@ -532,8 +611,9 @@
                    Use pcre library : yes
                Use kerberos library : yes (MIT)
                Use GNU ADNS library : no
+                Use SMI MIB library : no
              Use GNU crypto library : yes
              Use SSL crypto library : yes
            Use IPv6 name resolution : yes
-               Use Net-SNMP library : yes
                  Use gnutls library : yes
+                 Use libcap library : yes


I read wireshark-0.99.7 Release Notes, but I cannot find about net-snmp library.
Wireshark 0.99.7 Release Notes
http://www.wireshark.org/docs/relnotes/wireshark-0.99.7.html

I found "net-snmp support has been removed in favor of libsmi" in wireshark-0.99.7 as follows.
http://www.wireshark.org/lists/wireshark-dev/200711/msg00388.html
http://www.wireshark.org/lists/wireshark-dev/200711/msg00389.html

However, I cannot build/use libsmi for incompatibility,
I don't know how to build/use with net-snmp library and I must build/use wireshark-0.99.7 for security.
It's face a dilemma.

Does anyone have the solution which is workaround or another thinking?
I'll welcome any comments from you.

Tetsuya
--- config_with_net_snmp_0.99.6.log	2008-01-25 15:53:03.000000000 +0900
+++ config_with_net_snmp_0.99.7.log	2008-01-25 15:53:03.000000000 +0900
@@ -114,6 +114,7 @@
 checking for perl... /usr/bin/perl
 checking for pod2man... /usr/bin/pod2man
 checking for pod2html... /usr/bin/pod2html
+checking for xdg-open... no
 checking for htmlview... /usr/bin/htmlview
 checking for flex... /usr/bin/flex
 checking for python... /usr/bin/python
@@ -125,6 +126,7 @@
 checking for libgcrypt-config... /usr/bin/libgcrypt-config
 checking for LIBGCRYPT - version >= 1.1.42... yes
 libgcrypt found, enabling ipsec decryption
+checking for libsmi >= 2... not found
 checking for xsltproc... /usr/bin/xsltproc
 checking for xsltproc... yes
 checking for xmllint... /usr/bin/xmllint
@@ -175,6 +177,7 @@
 checking for pcap_set_datalink... yes
 checking for pcap_lib_version... yes
 checking for pcap_get_selectable_fd... yes
+checking whether to build dumpcap... yes
 checking whether to use zlib for reading compressed capture files... yes
 checking zlib.h usability... yes
 checking zlib.h presence... yes
@@ -194,7 +197,9 @@
 libportaudio not found - disabling support for the rtp_player
 checking whether to enable ipv6 name resolution if available... yes
 checking ipv6 stack type... "linux-glibc, inet6"
-checking whether to install wireshark setuid... no
+checking whether to install tshark and dumpcap setuid... no
+checking whether to use the libcap capabilities library... yes
+checking for cap_set_flag in -lcap... yes
 checking for ANSI C header files... (cached) yes
 checking direct.h usability... no
 checking direct.h presence... no
@@ -205,9 +210,15 @@
 checking fcntl.h usability... yes
 checking fcntl.h presence... yes
 checking for fcntl.h... yes
+checking grp.h usability... yes
+checking grp.h presence... yes
+checking for grp.h... yes
 checking netdb.h usability... yes
 checking netdb.h presence... yes
 checking for netdb.h... yes
+checking pwd.h usability... yes
+checking pwd.h presence... yes
+checking for pwd.h... yes
 checking stdarg.h usability... yes
 checking stdarg.h presence... yes
 checking for stdarg.h... yes
@@ -252,14 +263,6 @@
          extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 checking whether to use SSL library... yes
 checking for EVP_md5 in -lcrypto... yes
-checking whether to use Net-SNMP library... yes
-checking for net-snmp-config... /usr/bin/net-snmp-config
-checking net-snmp/net-snmp-config.h usability... yes
-checking net-snmp/net-snmp-config.h presence... yes
-checking for net-snmp/net-snmp-config.h... yes
-checking net-snmp/library/default_store.h usability... yes
-checking net-snmp/library/default_store.h presence... yes
-checking for net-snmp/library/default_store.h... yes
 checking whether to use kerberos... yes
 checking for krb5-config... /usr/kerberos/bin/krb5-config
 checking krb5.h usability... yes
@@ -279,6 +282,7 @@
 checking for strcasecmp... yes
 checking for strncasecmp... yes
 checking for mkstemp... yes
+checking for g_ascii_strcasecmp... yes
 checking for g_ascii_strtoull... yes
 checking for inet_aton... yes
 checking for library containing inet_pton... none required
@@ -296,6 +300,80 @@
 config.status: creating Makefile
 config.status: creating doxygen.cfg
 config.status: creating asn1/Makefile
+config.status: creating asn1/acp133/Makefile
+config.status: creating asn1/acse/Makefile
+config.status: creating asn1/ansi_map/Makefile
+config.status: creating asn1/ansi-tcap/Makefile
+config.status: creating asn1/camel/Makefile
+config.status: creating asn1/cdt/Makefile
+config.status: creating asn1/cmip/Makefile
+config.status: creating asn1/cms/Makefile
+config.status: creating asn1/dap/Makefile
+config.status: creating asn1/disp/Makefile
+config.status: creating asn1/dop/Makefile
+config.status: creating asn1/dsp/Makefile
+config.status: creating asn1/ess/Makefile
+config.status: creating asn1/ftam/Makefile
+config.status: creating asn1/gnm/Makefile
+config.status: creating asn1/gsmmap/Makefile
+config.status: creating asn1/h225/Makefile
+config.status: creating asn1/h235/Makefile
+config.status: creating asn1/h245/Makefile
+config.status: creating asn1/h248/Makefile
+config.status: creating asn1/h282/Makefile
+config.status: creating asn1/h283/Makefile
+config.status: creating asn1/h323/Makefile
+config.status: creating asn1/h450/Makefile
+config.status: creating asn1/h450-ros/Makefile
+config.status: creating asn1/h460/Makefile
+config.status: creating asn1/h501/Makefile
+config.status: creating asn1/inap/Makefile
+config.status: creating asn1/ldap/Makefile
+config.status: creating asn1/logotype-cert-extn/Makefile
+config.status: creating asn1/mms/Makefile
+config.status: creating asn1/mpeg-audio/Makefile
+config.status: creating asn1/mpeg-pes/Makefile
+config.status: creating asn1/nbap/Makefile
+config.status: creating asn1/ns-cert-exts/Makefile
+config.status: creating asn1/ocsp/Makefile
+config.status: creating asn1/p7/Makefile
+config.status: creating asn1/pkcs1/Makefile
+config.status: creating asn1/pkcs12/Makefile
+config.status: creating asn1/pkinit/Makefile
+config.status: creating asn1/pkix1explicit/Makefile
+config.status: creating asn1/pkix1implicit/Makefile
+config.status: creating asn1/pkixcmp/Makefile
+config.status: creating asn1/pkixcrmf/Makefile
+config.status: creating asn1/pkixproxy/Makefile
+config.status: creating asn1/pkixqualified/Makefile
+config.status: creating asn1/pkixtsp/Makefile
+config.status: creating asn1/pres/Makefile
+config.status: creating asn1/q932/Makefile
+config.status: creating asn1/q932-ros/Makefile
+config.status: creating asn1/qsig/Makefile
+config.status: creating asn1/ranap/Makefile
+config.status: creating asn1/rnsap/Makefile
+config.status: creating asn1/ros/Makefile
+config.status: creating asn1/rrc/Makefile
+config.status: creating asn1/rrlp/Makefile
+config.status: creating asn1/rtse/Makefile
+config.status: creating asn1/s4406/Makefile
+config.status: creating asn1/sabp/Makefile
+config.status: creating asn1/smrse/Makefile
+config.status: creating asn1/snmp/Makefile
+config.status: creating asn1/spnego/Makefile
+config.status: creating asn1/t125/Makefile
+config.status: creating asn1/t38/Makefile
+config.status: creating asn1/tcap/Makefile
+config.status: creating asn1/ulp/Makefile
+config.status: creating asn1/wlancertextn/Makefile
+config.status: creating asn1/x411/Makefile
+config.status: creating asn1/x420/Makefile
+config.status: creating asn1/x509af/Makefile
+config.status: creating asn1/x509ce/Makefile
+config.status: creating asn1/x509if/Makefile
+config.status: creating asn1/x509sat/Makefile
+config.status: creating asn1/x721/Makefile
 config.status: creating doc/Makefile
 config.status: creating epan/Makefile
 config.status: creating epan/crypt/Makefile
@@ -323,14 +401,13 @@
 config.status: creating plugins/ciscosm/Makefile
 config.status: creating plugins/docsis/Makefile
 config.status: creating plugins/enttec/Makefile
+config.status: creating plugins/ethercat/Makefile
 config.status: creating plugins/giop/Makefile
 config.status: creating plugins/gryphon/Makefile
-config.status: creating plugins/h223/Makefile
 config.status: creating plugins/irda/Makefile
 config.status: creating plugins/lwres/Makefile
 config.status: creating plugins/m2m/Makefile
 config.status: creating plugins/mate/Makefile
-config.status: creating plugins/mgcp/Makefile
 config.status: creating plugins/opcua/Makefile
 config.status: creating plugins/opsi/Makefile
 config.status: creating plugins/pcli/Makefile
@@ -340,8 +417,10 @@
 config.status: creating plugins/rudp/Makefile
 config.status: creating plugins/sbus/Makefile
 config.status: creating plugins/stats_tree/Makefile
+config.status: creating plugins/unistim/Makefile
 config.status: creating plugins/v5ua/Makefile
 config.status: creating plugins/wimax/Makefile
+config.status: creating plugins/wimaxasncp/Makefile
 config.status: creating tools/Makefile
 config.status: creating tools/idl2wrs.sh
 config.status: creating tools/lemon/Makefile
@@ -470,7 +549,7 @@
 checking whether we can add -Wmissing-declarations to CFLAGS... yes
 checking whether we can add -Wno-pointer-sign to CFLAGS... yes
 checking whether we can add -Wcast-align to CFLAGS... yes
-checking whether we should treat compiler warnings as errors... yes
+checking whether we should treat compiler warnings as errors... no
 checking for platform-specific compiler flags... none needed
 checking for platform-specific linker flags... none needed
 checking if profile builds must be generated... no
@@ -532,8 +611,9 @@
                    Use pcre library : yes
                Use kerberos library : yes (MIT)
                Use GNU ADNS library : no
+                Use SMI MIB library : no
              Use GNU crypto library : yes
              Use SSL crypto library : yes
            Use IPv6 name resolution : yes
-               Use Net-SNMP library : yes
                  Use gnutls library : yes
+                 Use libcap library : yes