[prev in list] [next in list] [prev in thread] [next in thread]
List: wireshark-dev
Subject: [Wireshark-dev] Compiling Problem with snmp
From: Jose Alonso <rasomonjose2 () yahoo ! es>
Date: 2006-06-29 14:01:11
Message-ID: 20060629140112.77687.qmail () web27009 ! mail ! ukl ! yahoo ! com
[Download RAW message or body]
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
[Attachment #3 (text/html)]
<DIV>Hi,</DIV> <DIV>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:</DIV> <DIV> </DIV> <DIV>mkdir .libs<BR>rm -f \
.libs/wireshark.nm .libs/wireshark.nmS .libs/wireshark.nmT<BR>creating \
.libs/wiresharkS.c<BR>(cd .libs && gcc -c -fno-builtin -fno-rtti \
-fno-exceptions "wiresharkS.c")<BR>rm -f .libs/wiresharkS.c .libs/wireshark.nm \
.libs/wireshark.nmS .libs/wireshark.nmT<BR>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<BR>epan/.libs/libwireshark.so: undefined reference to \
`ds_set_int'<BR>epan/.libs/libwireshark.so: undefined reference to \
`register_mib_handlers'<BR>epan/.libs/libwireshark.so: undefined reference to \
`read_premib_configs'<BR>epan/.libs/libwireshark.so: undefined reference to \
`sprint_realloc_objid'<BR>epan/.libs/libwireshark.so: undefined reference to \
`shutdown_mib'<BR>epan/.libs/libwireshark.so: undefined reference to \
`init_mib'<BR>epan/.libs/libwireshark.so: undefined reference to \
`sprint_realloc_value'<BR>epan/.libs/libwireshark.so: undefined reference to \
`read_configs'<BR>collect2: ld returned 1 exit status<BR>make[2]: *** [wireshark] \
Error 1<BR>make[2]: Leaving directory `/home/jose/wireshark-0.99.1pre1'<BR>make[1]: \
*** [all-recursive] Error 1<BR>make[1]: Leaving directory \
`/home/jose/wireshark-0.99.1pre1'<BR>make: *** [all] Error 2</DIV> <DIV> </DIV> \
<DIV>It seems concerned to snmp (first error and this one) \
but running configure:</DIV> <DIV>...</DIV> <DIV>checking whether to use \
Net-SNMP library... yes, if available<BR>checking for net-snmp-config... \
no<BR>checking whether to use UCD SNMP library... yes, if available<BR>checking \
ucd-snmp/ucd-snmp-config.h usability... yes<BR>checking ucd-snmp/ucd-snmp-config.h \
presence... yes<BR>checking for ucd-snmp/ucd-snmp-config.h... yes<BR>checking whether \
UCD SNMP includes sprint_realloc_objid... no<BR>checking whether UCD SNMP includes \
sprint_realloc_objid (linking with -L/usr/kerberos/lib -ldes425)... no<BR>checking \
whether UCD SNMP includes sprint_realloc_objid (linking with -lkstat)... no</DIV> \
<DIV>...</DIV> <DIV>Use UCD SNMP/Net-SNMP library : no</DIV> <DIV> </DIV> \
<DIV>Somebody knows what is the problem? and what can i do?</DIV> <DIV>should i \
disable net-snmp and ucd-snmp? </DIV> <DIV> </DIV> <DIV>thanks,</DIV> \
<DIV>-Alonso.</DIV><p>  <hr size=1><br><font face="Verdana" size="-2">LLama \
Gratis a cualquier PC del Mundo.<br>Llamadas a fijos y móviles desde 1 céntimo por \
minuto.<br><a href="http://us.rd.yahoo.com/mail/es/tagline/messenger/*http://es.voice.yahoo.com/">http://es.voice.yahoo.com</a></font>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic