2008/5/19 Zhigang Cao <[EMAIL PROTECTED]>:
>  I want to port the snmp 5.3.1 to another platform.
>
>  There is a issue : On platform A , the length of long type is 4 bytes, but
> on platform B , the length of long type is 8 bytes.

In general, that shouldn't matter.
As long as "long" is *at least* 32 bits, then the code should work.

However, there are sometimes places where the code assumes
(wrongly) that "long" is exactly 32 bits.    We've fixed a number of
these, but there could be others waiting to bite you.


> Can you have a good idea to port the code to another platform ?

The first this I'd suggest would be to work with the 5.4.1 (or 5.4.2.pre1)
code base.   That's probably got a lot more of the 32/64-bit fixes than
the 5.3.1 code.   Or if you need to stick with the 5.3.x line, then
try using with 5.3.2 instead.


Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to