Hi I am running this on a 64-bit Windows 7, with gcc 4.8.1 using MinGW and 
net-snmp version 5.5.

Any help would be appreciated.



-----Original Message-----
From: Taylor, Ben [mailto:ben.tay...@sap.com]
Sent: Monday, July 13, 2015 5:16 PM
To: Chetcuti, Christian
Subject: RE: Building snmpdemoapp error


You might update the list by telling them what OS/revision/compiler toolchain 
you're using, as well as which netsnmp source you're using.  Your message makes 
an assumption that someone would understand the problem with the limited 
information.

Regards,

Ben

-----Original Message-----
From: Chetcuti, Christian [mailto:cchetc...@hobsoft.com.mt]
Sent: Monday, July 13, 2015 10:29 AM
To: 'Coders List'
Subject: RE: Building snmpdemoapp error

Dear all,

I've installed net-snmp successfully on my system.  I am now trying to 
understand snmp communication through the use of the simple demo application 
found on the website.  I've added the source file and the respective makefile.  
When I pass the make command the following is the returned response:

C:\usr\include>make snmpdemoapp
gcc -I. `net-snmp-config --cflags`   -c -o snmpdemoapp.o snmpdemoapp.c
/bin/sh: net-snmp-config: command not found In file included from 
snmpdemoapp.c:1:0:
./net-snmp/net-snmp-config.h:1555:26: error: expected '=', ',', ';', 'asm' or 
'_ _attribute__' before 'uint32_t'
 typedef unsigned __int32 uint32_t;
                          ^
./net-snmp/net-snmp-config.h:1557:26: error: expected '=', ',', ';', 'asm' or 
'_ _attribute__' before 'uint64_t'
 typedef unsigned __int64 uint64_t;
                          ^
./net-snmp/net-snmp-config.h:1558:1: error: unknown type name '__int64'
 typedef __int64 int64_t;
 ^
./net-snmp/net-snmp-config.h:1559:26: error: expected '=', ',', ';', 'asm' or 
'_ _attribute__' before 'uintmax_t'
 typedef unsigned __int64 uintmax_t;
                          ^
./net-snmp/net-snmp-config.h:1560:1: error: unknown type name '__int64'
 typedef __int64 intmax_t;
 ^
In file included from ./net-snmp/session_api.h:265:0,
                 from ./net-snmp/library/snmp_client.h:32,
                 from ./net-snmp/varbind_api.h:79,
                 from ./net-snmp/library/snmp_api.h:28,
                 from ./net-snmp/types.h:387,
                 from ./net-snmp/definitions.h:22,
                 from ./net-snmp/net-snmp-includes.h:71,
                 from snmpdemoapp.c:2:
./net-snmp/library/snmpUDPIPv6Domain.h:20:40: warning: 'struct sockaddr_in6' 
dec lared inside parameter list [enabled by default]
                                        int local);
                                        ^
./net-snmp/library/snmpUDPIPv6Domain.h:20:40: warning: its scope is only this 
de finition or declaration, which is probably not what you want [enabled by 
default ]
./net-snmp/library/snmpUDPIPv6Domain.h:31:38: warning: 'struct sockaddr_in6' 
dec lared inside parameter list [enabled by default]
                                      int remote_port);
                                      ^
In file included from ./net-snmp/session_api.h:268:0,
                 from ./net-snmp/library/snmp_client.h:32,
                 from ./net-snmp/varbind_api.h:79,
                 from ./net-snmp/library/snmp_api.h:28,
                 from ./net-snmp/types.h:387,
                 from ./net-snmp/definitions.h:22,
                 from ./net-snmp/net-snmp-includes.h:71,
                 from snmpdemoapp.c:2:
./net-snmp/library/snmpTCPIPv6Domain.h:20:8: warning: 'struct sockaddr_in6' 
decl ared inside parameter list [enabled by default]
        int local);
        ^
In file included from ./net-snmp/utilities.h:39:0,
                 from ./net-snmp/net-snmp-includes.h:74,
                 from snmpdemoapp.c:2:
./net-snmp/library/system.h:85:59: warning: 'struct timezone' declared inside 
pa rameter list [enabled by default]
     int             gettimeofday(struct timeval *, struct timezone *tz);
                                                           ^
make: *** [snmpdemoapp.o] Error 1

Does anyone know how I can solve this problem?

Thanks in anticipation.

Regards,
Chris

-----Original Message-----
From: Robert Story [mailto:rst...@freesnmp.com]
Sent: Friday, July 10, 2015 6:55 PM
To: SHAIK, Sofiya Parvin (Sofiya Parvin); Coders List
Subject: Re: Need some Help to understand get_first and get_next methos calls.

On Fri, 10 Jul 2015 05:27:56 +0000 Sofiya Parvin (Sofiya Parvin) wrote:
SSPP> Could you please help me. How snmptable command will internally
SSPP> calling get_first and get_next method. What is the exact code flow.

snmptable doesn't call get_first and get_next. Thos are part of the 
handler/helper you are using in the agent. snmptable uses snmp GETNEXT commands 
to walk a table.

SSPP> Because in one of our project we are using this snmptable command
SSPP> and we are writing our own sub agent to store the data snmptable.
SSPP> If I see the trace files whenever there is a snmptable command is
SSPP> triggered it is sequentially calling
SSPP>
SSPP> getFirst , getNext.............;
SSPP> getfirst,getNext.............................;
SSPP> getfirst,getNext.............................;
SSPP>
SSPP> we are not understanding what is the purpose of calling this

Is your table using the iterator helper? The iterator help is for unsorted 
data, which means the help has to search through all the data, starting at the 
beginning, to find the data needed to respond to a request.

SSPP> could u please help us why. Because this getFirst and getNext  are
SSPP> making performance issue when the table is Huge ...example some
SSPP> 10,000 entries.

Yes, the iterator helper is a poor choice for a large table. You should look at 
some of the other helpers which will sort the data, make it much faster to find 
a particular row for processing.

Robert


--
Robert

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that you need 
to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

HOB Software Ltd
www.hobsoft.com<http:/www.hobsoft.com>
[HOB][HSM25]

______________________________________________________________
Disclaimer:
This message may contain confidential and legally privileged information. If 
you are not the addressee notify the sender immediately and delete it (do not 
copy, forward, disclose or use any part of it). Internet communications cannot 
be garanteed to be timely, secure, error or virus-free. The company does not 
accept liability for any errors or omissions.
______________________________________________________________

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that you need 
to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

HOB Software Ltd
www.hobsoft.com<http:/www.hobsoft.com>
[HOB][HSM25]

______________________________________________________________
Disclaimer:
This message may contain confidential and legally privileged information. If 
you are not the addressee notify the sender immediately and delete it (do not 
copy, forward, disclose or use any part of it). Internet communications cannot 
be garanteed to be timely, secure, error or virus-free. The company does not 
accept liability for any errors or omissions.
______________________________________________________________

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to