Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-19 Thread Ali . Bruce
Bart, Thanks. The patch seems to have fixed this problem. Ali --- This email and any attached files contains company confidential information which may be legally privileged. it is intended only for the person(s) or entity to which it is addressed

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-18 Thread Bart Van Assche
On Thu, Aug 18, 2011 at 1:05 PM, wrote: > I'm trying to understand the release strategy of Net-SNMP. Once 5.7 has > been released, I understand there will be a 5.7.1 release that includes > patches. Looking at the diff file that you have sent these seem to be 5.6 > patches to be merged into 5-7

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-18 Thread Ali . Bruce
Bart, I'm trying to understand the release strategy of Net-SNMP. Once 5.7 has been released, I understand there will be a 5.7.1 release that includes patches. Looking at the diff file that you have sent these seem to be 5.6 patches to be merged into 5-7 patches. Was 5.7 created and released wh

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-18 Thread Bart Van Assche
On Thu, Aug 18, 2011 at 11:09 AM, wrote: > I am getting a strange error when running my perl script. > > I am attempting to initialise a Perl CORBA: Orb in order to access the > data to be managed by SNMP (which I can do succesfully using a standalone > perl script) > > Adding the Corba Orb ini

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-18 Thread Ali . Bruce
Hi, I am getting a strange error when running my perl script. I am attempting to initialise a Perl CORBA: Orb in order to access the data to be managed by SNMP (which I can do succesfully using a standalone perl script) Adding the Corba Orb initialisation request my $orb = CORBA::ORB_init

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-18 Thread Ali . Bruce
Dave, Thanks for that. Your suggestion results in the snmpget request correctly indicating "No such instance currently exists at this OID". The perl script (which is effectively the CPAN perl script slightly modified) did output "unknown var value type: 0" as a result of the $varbind->setValu

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-18 Thread Dave Shield
On 18 August 2011 08:29, wrote: > How can I indicate "No Such Instance"? There are error codes > defined for the NetSNMP::Agent but I cannot see an error code for No Such > Instance. Remember that noSuchInstance is not strictly an error. It's actually an "exception" - a pseudo-value

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-18 Thread Ali . Bruce
Bart, Thanks. I have now managed to get a Perl subagent built with 5.7.1 pre1 running on windows. One issue I have is that I am doing an SNMP-Get request on a table row that does not exist. How can I indicate "No Such Instance"? There are error codes defined for the NetSNMP::Agent but I canno

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-11 Thread Bart Van Assche
On Thu, Aug 11, 2011 at 3:36 PM, wrote: > Thanks for that. That patch stops the script locking up and completes the > installation. > Thanks for the feedback. A more general patch (that does not assume that the value of a constant is equal to or above -1) has been committed on the v5.7 branch: h

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-11 Thread Ali . Bruce
Bart, Thanks for that. That patch stops the script locking up and completes the installation. I'm still trying to work out whether I can use Perl on windows. As you stated earlier embedded Perl has not been ported to Windows. Reading the Net-snmp Perl support documentation it states: For the t

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-11 Thread Bart Van Assche
On Tue, Aug 9, 2011 at 4:07 PM, wrote: > I downloaded and built with the latest 5.7.1 pre release. > > During the Perl tests it no longer crashed the snmpd.exe, however it still > locks up at the same point: The patch below fixes that lockup on my setup: diff --git a/perl/SNMP/SNMP.pm b/perl/SN

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-10 Thread Ali . Bruce
Bart, As an alternative method of using perl I am trying to do this using the pass_persist mechanism to invoke an external Perl script rather than using embedded perl. However I am having difficulty with Creating a new row using this method. This is captured in another thread I have started "

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-09 Thread Bart Van Assche
On Tue, Aug 9, 2011 at 3:02 PM, wrote: > Looks like my understanding was wrong. > > Is it possible to use Perl to implement my agent on windows (using the CPAN > Perl modules), without porting "embedding Perl in Net-SNMP" ? > I'm not sure that's possible. I'm not an expert with regard to the Per

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-09 Thread Ali . Bruce
Bart, I downloaded and built with the latest 5.7.1 pre release. During the Perl tests it no longer crashed the snmpd.exe, however it still locks up at the same point: cd .. cd .. C:\PROGRA~1\MICROS~1.0\VC\BIN\nmake.exe test -nologo C:\Perl\bin\perl.EXE "-MExtUtil

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-09 Thread Ali . Bruce
Bart, Looks like my understanding was wrong. Is it possible to use Perl to implement my agent on windows (using the CPAN Perl modules), without porting "embedding Perl in Net-SNMP" ? Regards, Ali --- This email and any attached files contains compa

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-09 Thread Bart Van Assche
On Tue, Aug 9, 2011 at 12:51 PM, wrote: > What exactly is "embedding Perl in Net-SNMP" if it's not the Perl Extension > files from CPAN? > Adding Perl statements in snmpd.conf such that the Perl code is run from inside the snmpd agent process. For more information, see also http://www.net-snmp.o

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-09 Thread Ali . Bruce
Bart, What exactly is "embedding Perl in Net-SNMP" if it's not the Perl Extension files from CPAN? Regards, Ali --- This email and any attached files contains company confidential information which may be legally privileged. it is intended only fo

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-09 Thread Bart Van Assche
On Tue, Aug 9, 2011 at 9:55 AM, wrote: > # Failed test 1 in t/async.t at line 19 > # t/async.t line 19 is: for (my $i=1;$i <= 20; $i++) { > # Failed test 2 in t/async.t at line 19 fail #2 > # Failed test 3 in t/async.t at line 19 fail #3 > # Failed test 4 in t/async.t at line 19 fail #4 > t/as

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-09 Thread Bart Van Assche
On Tue, Aug 9, 2011 at 11:23 AM, wrote: > My understanding is that "embedding Perl in Net-SNMP" are the Perk SNMP > Extension modules from the CPAN website. Ideally I would have liked to have > used these, I hadn't realised they had not been ported to Windows. > The Perl SNMP Extension modules f

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-09 Thread Ali . Bruce
Bart, My understanding is that "embedding Perl in Net-SNMP" are the Perk SNMP Extension modules from the CPAN website. Ideally I would have liked to have used these, I hadn't realised they had not been ported to Windows. However - even without the "embedding Perl in Net-SNMP" modules I should

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-09 Thread Ali . Bruce
Sorry Bart, Replied to your private address. Ali - Forwarded by Ali Bruce/UKMAIN/MM1 on 09/08/2011 08:54 - Ali Bruce/UKMAIN/MM1 09/08/2011 08:53 To Bart Van Assche cc Subject Re: Fw: Unable to build Net-Snmp with embedded perl Bart, Thanks for that patch.That overcame the

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-08 Thread Bart Van Assche
On Mon, Aug 8, 2011 at 5:02 PM, wrote: > I then try to run snmpd.exe -V with the disablePerl true option set in the > snmpd.conf file. This gives a warning suggesting that embedded perl is not > enabled. How do I know if embedded perl has been enabled and what embedded > perl modules should be in

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-08 Thread Bart Van Assche
Bart Van Assche. On Mon, Aug 8, 2011 at 5:30 PM, wrote: > Applying the patch causes the following compilation failure: > > [ ... ] > ..\..\agent\agent_handler.c(120) : error C3872: '0xa0': this character is > not allowed in an identifier > Apparently my e-mail client has changed regular spaces i

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-08 Thread Ali . Bruce
Bart, Applying the patch causes the following compilation failure: cd libagent nmake /nologo all cl.exe /nologo /MD /W3 /EHsc /O2 /I "." /I ".." /I "..\..\snmplib" /I "..\.." /I "..\..\include" /I "..\..\agent" /I "..\..\agent\mibgroup" /D "WIN32" /D "NDEBUG" /D "_CONSOL

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-08 Thread Bart Van Assche
On Mon, Aug 1, 2011 at 6:05 PM, wrote: > Free to wrong pool 2377e8 not fdfdfdfd at ..\blib\lib/NetSNMP/OID.pm line > 31. > The patch below should fix the above issue: diff --git a/include/net-snmp/library/tools.h b/include/net-snmp/library/tools.h index 39e661c..24a18b0 100644 --- a/include/net

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-08 Thread Ali . Bruce
Bart, I have upgraded Active Perl to version 5.12.4 Build 1205. However this still gave the same Ipv6 error as before. As I do not need IPv6 I have decided not to persue the option of correcting the IPv6 problem any further. I have tried to compile as follows: 1. OpenSSL support:

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-04 Thread Bart Van Assche
On Thu, Aug 4, 2011 at 3:50 PM, wrote: > I've applied the patch manually but it doesn't seem to make any difference. > I've still got the same errors. > The Perl modules on the 5.7 branch build fine here with IPv6 support enabled. And I know only one cause for the "error C2079: 'sin6' uses undef

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-04 Thread Ali . Bruce
Bart, I've applied the patch manually but it doesn't seem to make any difference. I've still got the same errors. Regards, Ali --- This email and any attached files contains company confidential information which may be legally privileged. it is i

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-04 Thread Bart Van Assche
On Thu, Aug 4, 2011 at 10:44 AM, wrote: > R:\cots\net-snmp\net-snmp-5.7\include\net-snmp/library/snmp_transport.h(74) > : error C2079: 'sin6' uses undefined struct 'sockaddr_in6' > That' because the Perl headers are included first in the Net-SNMP Perl modules and because in these headers _WIN32

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-04 Thread Ali . Bruce
Bart, I tried to build with the same Net-Snmp options as yourself. My set up details are a bit different as follows: WIndows XP Professional SP3, Visual Studio 2008, Active Perl version 5.10.0 Build 1005. The output from the build is shown below (for build 5.7). As you can see there is a buil

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-03 Thread Bart Van Assche
On Wed, Aug 3, 2011 at 2:48 PM, wrote: > I also tried building an earlier version (5.5.1) but again when I try to > build with embedded perl the perl tests cause the build process to crash > resulting in no installation occurring. I could however build OK without > embedded Perl, and execute with

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-03 Thread Ali . Bruce
Bart, There is company firewalls so they are probably blocking the git connections. Even though the perl tests fail to execute during the build process, files are still created in my install path. The snmpd can execute without any embedded perl in the snmpd.conf file (although does still give

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-02 Thread Bart Van Assche
On Tue, Aug 2, 2011 at 3:32 PM, wrote: > Thanks again.I've installed git and Tortoise git on my pc and attempted to > clone the repository. Howeve I always get this error: > > git.exe clone --progress -v "git:// > net-snmp.git.sourceforge.net/gitroot/net-snmp/net-snmp" > "C:\cloned_net_snmp" >

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-02 Thread Ali . Bruce
Bart, Thanks again.I've installed git and Tortoise git on my pc and attempted to clone the repository. Howeve I always get this error: git.exe clone --progress -v "git://net-snmp.git.sourceforge.net/gitroot/net-snmp/net-snmp" "C:\cloned_net_snmp" Cloning into C:\cloned_net_snmp... net-snmp.g

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-02 Thread Bart Van Assche
On Tue, Aug 2, 2011 at 10:05 AM, wrote: > Can you repost the link to * > net-snmp.git.sourceforge.net/gitroot/net-snmp/V5-7-patches*as > it seems to be broken. > What I meant is that you have to clone the repo *git:// net-snmp.g

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-02 Thread Ali . Bruce
Bart, Can you repost the link to net-snmp.git.sourceforge.net/gitroot/net-snmp/V5-7-patches as it seems to be broken. Thanks, Ali --- This email and any attached files contains company confidential information which may be legally privileged. it

Re: Fw: Unable to build Net-Snmp with embedded perl

2011-08-01 Thread Bart Van Assche
On Mon, Aug 1, 2011 at 4:15 PM, wrote: > Thanks for the quick response. It looks like it has built now. What was the > perl/NetSNMP.xs file doing that caused it not to build? > I'm not sure what that file should be doing. But you won't miss it, as you can see in that file: $ cat perl/NetSNMP.xs