Windows Context - No config.nmake file

I have downloaded libsmi-0.4.8.tar.gz and this has no config.nmake (trying to build on windows)
A thread exists in april 2008 but does not reference how to get a copy of the file.
Does anyone have a working vc6 DSP / DSW file set ?
Now I might not need to create a fresh binary if I can get around this issue ...
Smidump.exe will not find the referenced MIB files, e.g.
Smidump -f smiv1 ./test-MIB
Comes up with errors that it cannot find the referenced files, e.g. SNMPv2-SMI . I have copied all files into the same Directory as the .exe. I even created a shortcut forcing the current directory to where smidump.exe. I even added this directory into the system PATH value.
The problem seems to be that "test-mib" is not found, but "./test-mib" is. So when it goes to find the other files the same problem occurs.
How does one get around this issue ?
Further background was I was trying to see if I could convert some v2 MIBs to v1..
Many thanks !!
Greg Roberts
______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

Greg Roberts wrote:
I have downloaded libsmi-0.4.8.tar.gz and this has no config.nmake (trying to build on windows)
A thread exists in april 2008 but does not reference how to get a copy of the file.
I'd recommend you get the source from the SVN repository. It looks like libsmi-0.4.8.tar.gz is missing a couple of things, including config.nmake.
Does anyone have a working vc6 DSP / DSW file set ?
No-one I know of builds with the IDE. Customize config.nmake and config.h for your environment, then run nmake.
Now I might not need to create a fresh binary if I can get around this issue ...
Smidump.exe will not find the referenced MIB files, e.g.
The default file location on windows is under c:\smi and config.h has unix style dir seps. e.g.
#define DEFAULT_GLOBALCONFIG "c:/smi/smi.conf" #define DEFAULT_SMIPATH "c:/smi/mibs/ietf;c:/smi/mibs/iana;c:/smi/mibs/irtf;c:/smi/mibs/site;c:/smi/mibs/tubs"
That works with mingw but I have no luck with MSVC:
#define DEFAULT_GLOBALCONFIG "c:\smi\smi.conf" #define DEFAULT_SMIPATH "c:\smi\mibs\ietf;c:\smi\mibs\iana;c:\smi\mibs\irtf;c:\smi\mibs\site;c:\smi\mibs\tubs"
Running:
nmake nmake install
should put everything in the right place
I even added this directory into the system PATH value.
Assuming the above file locations you could add "c:\smi\bin" to the PATH
If you want to build the DLL in config.nmake:
ENABLE_LIBSMI_DLL=USE
and run:
nmake clean nmake smi.dll nmake
participants (2)
-
Andrew Hood
-
Greg Roberts