Vincenzo Cicerone wrote:

>Hi
>I've installed the win32 binary.
>I've installed ActiveState Perl and the SNMP Perl module.
>I've successfully started the snmpd.exe, it correctly reply to my SNMP
>Manager.

Very well.

>
>Now I've problems with the windows project "win32.dsw". I've to extend
>the agent!

There is *no source* in the binary install package.
You should start with net-snmp-5.1.2.pre2 or later source.


>
>It doesn't know the token "tempFilePattern" present in  the snmp.conf
>file, and doesn't succeed in creating
>the "persistentDir".
>
>       snmp.conf file:
>    mibdirs c:/usr/share/snmp/mibs
>    persistentDir c:/usr/snmp/persist
>    tempFilePattern C:/usr/temp/snmpdXXXXXX

Is the snmpd.exe that came with the
binary package the "it" you are referring to ?

What did you see in the console window ?


>
>I've tried to skip this problem with a "#" to that lines. 
>
>The snmpd_d.exe generates access violation when
>calling 'free' function -> "free(nnp->filename);"

Sorry.  Your experience is not unique.


>
>I'd like to know if this is a common problem, or if i'm doing something
>wrong.

I think there is more information needed to answer your questions.

I hope that my suggestions provide you with useful insight and guidance.


>I've just added the definition of 'optind', and set it to 1, in the
>snmpd.c source code file, to avoid a crash.

Do you think that the original one needed this ?

>
>Best regards
>Vincenzo
>
>

There is no one in their right mind that would recommend
you start with the net-snmp/win32 subdirectory, for the purpose of
developing any software relating to the net-snmp project!

Suggest that you build and test your extension, even if using only
stubbed functions, on a Linux platform.  You will get your extension
built much faster.

Once you have that working, with debugging statements intact,
then you should consider building it in the Windows environment.

If you must develop changes to the net-snmp agent on the windows
platform, you will get better service from the net-snmp developers
if you first setup a MinGW build environment. The reasons are complex,
but obvious if you have been following the mail archive list.

Good Hunting!
-Mike Slifcak




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to