Hi,
On 08.04 19:40, Guy Harris wrote:
> On Fri, Aug 04, 2000 at 06:32:38PM -0700, Barnaby DiAnni wrote:
> > > If so, have you installed *ANY* other versions of UCD SNMP, and did that
> > > version get installed *on top of* the original version, or did it get
> >
> > I have only
> > [root@lt3 /usr/include/ucd-snmp]#
> >
> > > installed elsewhere? (For example, do you have both
> > > "/usr/include/ucd-snmp" and "/usr/local/include/ucd-snmp" directories,
> > > and UCD SNMP libraries in both "/usr/lib" and "/usr/local/lib"?)
> >
> > Only /usr/lib
I had to put it the rpm's back but I got the error again..
/usr/src/ethereal-0.8.11/packet-snmp.c:1996: undefined reference to `snmp_set_suffix_only'
collect2: ld returned 1 exit status
rm -f .libs/etherealS.o
make[2]: *** [ethereal] Error 1
make[2]: Leaving directory `/usr/src/ethereal-0.8.11'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/ethereal-0.8.11'
make: *** [all-recursive-am] Error 2
[root@lt3 /usr/src/ethereal-0.8.11]#
Here's which snmp rpm's I have..
[root@lt3 ~]# rpm -qa | g snmp
ucd-snmp-4.1.1-4mdk
ucd-snmp-utils-4.1.1-4mdk
ucd-snmp-devel-4.0.1-3mdk
>
> So:
>
> 1) what does
>
> egrep snmp_set_suffix_only /usr/include/ucd-snmp/*.h
>
> report?
[root@lt3 ~]# egrep snmp_set_suffix_only /usr/include/ucd-snmp/*.h
/usr/include/ucd-snmp/snmp_api.h:void snmp_set_suffix_only (int);
>
> 2) what does
>
> nm -po /usr/lib/libsnmp.* | egrep snmp_set_suffix_only
>
> report?
[root@lt3 ~]# nm -po /usr/lib/libsnmp.* | egrep snmp_set_suffix_only
/usr/lib/libsnmp.a:mib.o:000032c4 T snmp_set_suffix_only
/usr/lib/libsnmp.so: no symbols
/usr/lib/libsnmp.so.0: no symbols
/usr/lib/libsnmp.so.0.4.1.1: no symbols
>
> > Thanks for the instant response, could i simply get rid of ucd-snmp to
> > build ethereal successfully?
>
> If you got rid of it in its entirety, it'd probably help, but it's
> overkill - just do
>
> ./configure --disable-snmp
>
> to build without the SNMP library.
>
> However, my goal here isn't just to make it possible for you to build
> Ethereal on your machine, it's to keep this from happening to anybody
> else, so I still want to see the output of the commands I supplied above
> - I suspect that somehow snmp_set_suffix_only isn't getting #defined
> when "packet-snmp.c" is being compiled and, as there's no
> "snmp_set_suffix_only()" library routine in UCD SNMP 4.1.1, just a
> macro, the link is failing because the code that refers to
> "snmp_set_suffix_only()" is compiling into a call to a routine named
> "snmp_set_suffix_only()" rather than being expanded into a call to
> "ds_set_int()" with the appropriate arguments.
Thanks for the explanation, I wish I understood half of it. I hope this output helps and thanks for an amazing sniffer program. I'm quickly spreading the word about this amazing tool to my coworkers and customers in the TAC.
--
Barnaby DiAnni
408.527.9155
http://www.cisco.com/tac