Ethereal-dev: [Ethereal-dev] Re: proto_tree_add_double() broken on Sparc/Solaris

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

From: "packet steve" <packetsteve@xxxxxxxxxxx>
Date: Wed, 02 Mar 2005 22:28:23 -0500
A while back I reported.

Somewhere between 0.10.6 and 0.10.9 proto_tree_add_double() broke on
Sparc/Solaris.  E.g.,  BPDU details, which uses  proto_tree_add_double(),
are displayed in 0.10.9 (including recent SVNs) as
   Message Age:
   Max Age:
   Hello Time:
   Forward Delay:
while in 0.10.6 the missing values are displayed
   Message Age: 1
   Max Age: 6
   Hello Time: 2
   Forward Delay: 2

The problem was in snprintf versions, nothing to do with ethereal itself.

Depending on nuances in link editing, either libc's snprintf or ucd-snmp's snprintf was being called. The latter has a broken %g format that was used by proto_tree_add_double(). Setting LD_PRELOAD to point to libc.so was one fix.

Is there anything we should do in the Makefiles to force library order?