Does smidump support 64 bit addressing.?

Hi All,
Can smidump be used on 64 bit platforms..? Do we need to specify any option at the time of configuration for this. Please clarify this. Your help will be greatly appreciated.
Thanks, Suresh.

Pamidipati Suresh-G20238 wrote:
Hi All,
Can smidump be used on 64 bit platforms..? Do we need to specify any option at the time of configuration for this. Please clarify this. Your help will be greatly appreciated.
It compiles and runs on Linux x86_64 without any special intervention and the test suite succeeds (except for currently outdated test cases). However, I don't regularly use it on any 64bit system.

Hi,
At Fri, 3 Mar 2006 15:31:10 +0800 Pamidipati Suresh-G20238 wrote:
Suresh> Can smidump be used on 64 bit platforms..? Do we need to specify any Suresh> option at the time of configuration for this. Suresh> Please clarify this. Your help will be greatly appreciated.
well, i just tried libsmi-0.4.3.tar.gz this on a sles9 64bit installation:
$ cat /etc/SuSE-release SUSE LINUX Enterprise Server 9 (x86_64) VERSION = 9 PATCHLEVEL = 3
the configure line was:
./configure --prefix=/tmp/libsmi
the make check lists only this error:
[...] comparing `smidump -f cm SNMPv2-MIB' output with dumps/cm/*. comparing `smidump -f cm IF-MIB' output with dumps/cm/*. comparing `smidump -f cm MAU-MIB' output with dumps/cm/*. comparing `smidump -f cm RMON2-MIB' output with dumps/cm/*. *** smidump output differs, see smidump-cm.out/*.diff FAIL: smidump-cm.test [...] ==================== 1 of 20 tests failed ====================
$ ll test/smidump-cm.out/*.diff -rw-r--r-- 1 gds users 354 2006-03-06 19:15 test/smidump-cm.out/MAU-MIB.diff -rw-r--r-- 1 gds users 168 2006-03-06 19:15 test/smidump-cm.out/RMON2-MIB.diff
$ cat test/smidump-cm.out/MAU-MIB.diff 1297c1297
< <rectangle val="28.67,32.93;30.37,34.62"/>
<rectangle val="28.67,32.93;30.37,34.63"/>
1681c1681
< <rectangle val="28.67,32.93;30.37,34.62"/>
<rectangle val="28.67,32.93;30.37,34.63"/>
1740c1740
< <rectangle val="28.67,32.93;30.37,34.62"/>
<rectangle val="28.67,32.93;30.37,34.63"/>
$ cat test/smidump-cm.out/RMON2-MIB.diff 2844,2845c2844,2845 < <point val="18.80,68.62"/>
< <point val="22.80,68.62"/>
<point val="18.80,68.63"/> <point val="22.80,68.63"/>
maybe this is related to the todo listed in dump-cm.c ``Berechnungen der UML Diagramme debuggen'' (debug calculations of UML diagrams).
running the tests with a german locale gives another error, but i guess this is not a 64 bit related issue.
so i'd say: yes, smidump compiles without special parameters and can be used at least on this 64 bit platform.
i hope this helps, Erik
----
ob-fix:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -g -O2 -c dump-sppi.c dump-sppi.c: In function `fprintInstallErrors': dump-sppi.c:811: warning: cast from pointer to integer of different size dump-sppi.c: In function `fprintModuleIdentity': dump-sppi.c:900: warning: cast from pointer to integer of different size
--- tools/dump-sppi.c-043 2006-03-06 19:49:16.740130617 +0100 +++ tools/dump-sppi.c 2006-03-06 19:47:47.205004996 +0100 @@ -807,8 +807,8 @@ smiElement = smiGetNextElement(smiElement)) { smiNode = smiGetElementNode(smiElement); id = xmalloc(strlen(smiNode->name) + 10); - sprintf(id, "%s (%d)%s", smiNode->name, - smiNode->oidlen ? (int)smiNode->oid : 0, + sprintf(id, "%s (%ld)%s", smiNode->name, + smiNode->oidlen ? (long)smiNode->oid : 0, smiGetNextElement(smiElement) ? ", " : ""); fprintWrapped(f, 2+INDENTVALUE, id, 0); xfree(id); @@ -897,7 +897,7 @@ smiNode2 = smiGetElementNode(smiElement); id = xmalloc(strlen(smiNode2->name) + 10); if (smiNode2->oidlen) - sprintf(id, "%s (%d)%s", smiNode2->name, (int)smiNode2->oid, + sprintf(id, "%s (%ld)%s", smiNode2->name, (long)smiNode2->oid, smiGetNextElement(smiElement) ? ", " : ""); else sprintf(id, "%s%s", smiNode2->name,
----
participants (3)
-
Erik Schoenfelder
-
Frank Strauß
-
Pamidipati Suresh-G20238