[sr-dev] Fw: 32bit vs 64bit build problems
Paul Pankhurst
paul at crocodile-rcs.com
Tue Mar 29 12:04:06 CEST 2011
I have noticed that 'kamctl monitor' displays corrupt statistics when kamailio is built for a 64 bit platform.
Further investigation has revealed that the reason is the underlying datatype is a long, whilst some of the wrapper functions (e.g. get_stat_val) return unsigned int. On a 32bit machine where a long and int are both the same size it is not a problem, but on a 64 bit machine they are different and hence the problem.
Some code uses the wrapper function, other does not, in the case of mi_get_stats it uses both, so depending on paramaters passed to the MI fifo it may work or produce garbage results.
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20110329/8b6f71d3/attachment.htm>
More information about the sr-dev
mailing list