ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] Compiling Problem with snmp

From: Jose Alonso <rasomonjose2@xxxxxxxx>
Date: Thu, 29 Jun 2006 16:01:11 +0200 (CEST)
Hi,
i'm trying to compile wireshark last release. i've found problems with an undefined macro in packet-snmp.c dissector, and i've commeted out 2-3 lines to continue compiling (related to no important feature). Finally i find this error message:
 
mkdir .libs
rm -f .libs/wireshark.nm .libs/wireshark.nmS .libs/wireshark.nmT
creating .libs/wiresharkS.c
(cd .libs && gcc -c -fno-builtin -fno-rtti -fno-exceptions "wiresharkS.c")
rm -f .libs/wiresharkS.c .libs/wireshark.nm .libs/wireshark.nmS .libs/wireshark.nmT
gcc -DINET6 "-D_U_=__attribute__((unused))" -Wall -Wpointer-arith -W -g -O2 -I/usr/local/include -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/pcap -o .libs/wireshark capture-pcap-util-unix.o capture_errs.o capture-pcap-util.o capture_stop_conditions.o capture_ui_utils.o cfile.o clopts_common.o conditions.o disabled_protos.o packet-range.o print.o ps.o pcapio.o ringbuffer.o timestats.o util.o version_info.o alert_box.o capture.o capture_info.o capture_opts.o capture_sync.o color_filters.o file.o fileset.o filters.o g711.o merge.o proto_hier_stats.o sync_pipe_write.o summary.o tempfile.o .libs/wiresharkS.o -rdynamic -Wl,--export-dynamic  -L/usr/local/lib gtk/libui.a wiretap/.libs/libwiretap.so epan/.libs/libwireshark.so -lpcap -L/usr/lib -L/usr/X11R6/lib /usr/lib/libgtk.so /usr/lib/libgdk.so /usr/lib/libgmodule.so /usr/lib/libglib.so -ldl -lXi -lXext -lX11 -lm -lz -Wl,--rpath -Wl,/usr/local/lib
epan/.libs/libwireshark.so: undefined reference to `ds_set_int'
epan/.libs/libwireshark.so: undefined reference to `register_mib_handlers'
epan/.libs/libwireshark.so: undefined reference to `read_premib_configs'
epan/.libs/libwireshark.so: undefined reference to `sprint_realloc_objid'
epan/.libs/libwireshark.so: undefined reference to `shutdown_mib'
epan/.libs/libwireshark.so: undefined reference to `init_mib'
epan/.libs/libwireshark.so: undefined reference to `sprint_realloc_value'
epan/.libs/libwireshark.so: undefined reference to `read_configs'
collect2: ld returned 1 exit status
make[2]: *** [wireshark] Error 1
make[2]: Leaving directory `/home/jose/wireshark-0.99.1pre1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jose/wireshark-0.99.1pre1'
make: *** [all] Error 2
 
It seems concerned to snmp (first error and this one) but running configure:
...
checking whether to use Net-SNMP library... yes, if available
checking for net-snmp-config... no
checking whether to use UCD SNMP library... yes, if available
checking ucd-snmp/ucd-snmp-config.h usability... yes
checking ucd-snmp/ucd-snmp-config.h presence... yes
checking for ucd-snmp/ucd-snmp-config.h... yes
checking whether UCD SNMP includes sprint_realloc_objid... no
checking whether UCD SNMP includes sprint_realloc_objid (linking with -L/usr/kerberos/lib -ldes425)... no
checking whether UCD SNMP includes sprint_realloc_objid (linking with -lkstat)... no
...
Use UCD SNMP/Net-SNMP library : no
 
Somebody knows what is the problem? and what can i do?
should i disable net-snmp and ucd-snmp?
 
thanks,
-Alonso.



LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y m�viles desde 1 c�ntimo por minuto.
http://es.voice.yahoo.com