Ethereal-users: Re: [ethereal-users] Build error with 0.8.11 ??

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Barnaby DiAnni <bdianni@xxxxxxxxx>
Date: Sat, 5 Aug 2000 10:49:47 -0700
Hello again.  

No luck with all the same rpm's..

packet-snmp.o: In function `proto_register_snmp':
/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 ~]# rpm -qa | grep ucd
ucd-snmp-4.1.1-4mdk
ucd-snmp-utils-4.1.1-4mdk
ucd-snmp-devel-4.1.1-4mdk


[root@lt3 ~]# egrep snmp_set_suffix_only /usr/include/ucd-snmp/*.h
/usr/include/ucd-snmp/snmp_api.h:#define snmp_set_suffix_only(x) ds_set_int(DS_LIBRARY_ID, DS_LIB_PRINT_SUFFIX_ONLY, x);

[root@lt3 ~]# nm -po /usr/lib/libsnmp.* | egrep 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


Anything else I can do to help?

Barnaby

On 08.04 21:24, Guy Harris wrote:
> On Fri, Aug 04, 2000 at 09:12:58PM -0700, Barnaby DiAnni wrote:
> > [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
> 
> Hmm.
> 
> "ucd-snmp-devel-4.0.1-3mdk", but "ucd-snmp-4.1.1-4mdk"?
> 
> That's probably not very good - it probably means that the header files
> and non-shared libraries, which come from the "ucd-snmp-devel" package,
> are out of sync with the shared libraries, which come from the
> "ucd-snmp-4.1.1" package.  This would mean that the header files declare
> "snmp_set_suffix_only" as a function, so that when you build Ethereal
> the generated code will try to call it as a function, but the shared
> library - with which the linker will try to link Ethereal - doesn't have
> such a function, as, in UCD SNMP 4.1.1, it's a macro, not a function.
> 
> This would cause the link to fail with the error you describe.
> 
> It appears from
> 
> 	ftp://ftp.math.utah.edu/pub/linux/Mandrake/7.1/Mandrake/RPMS2/
> 
> that Mandrake 7.1 includes a "ucd-snmp-devel-4.1.1-4mdk" RPM; try
> un-installing "ucd-snmp-devel-4.0.1-3mdk" and installing
> "ucd-snmp-devel-4.1.1-4mdk", and then try doing
> 
> 	rm config.cache
> 	./configure
> 
> and then try recompiling.

-- 

Barnaby DiAnni   
408.527.9155
http://www.cisco.com/tac