Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21354 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86900 invoked by uid 1010); 29 Dec 2005 15:10:19 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 86885 invoked from network); 29 Dec 2005 15:10:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Dec 2005 15:10:19 -0000 X-Host-Fingerprint: 212.55.154.25 relay5.ptmail.sapo.pt Linux 2.4/2.6 Received: from ([212.55.154.25:52342] helo=sapo.pt) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id E2/82-28258-95CF3B34 for ; Thu, 29 Dec 2005 10:10:18 -0500 Received: (qmail 17503 invoked by uid 0); 29 Dec 2005 15:10:13 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.207) by relay5 with SMTP; 29 Dec 2005 15:10:13 -0000 Received: (qmail 16570 invoked from network); 29 Dec 2005 15:10:14 -0000 X-AntiVirus: PTMail-AV 0.3.87.1 X-Virus-Status: Clean (0.01409 seconds) Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[81.193.139.232]) (envelope-sender ) by mta12 (qmail-ldap-1.03) with SMTP for ; 29 Dec 2005 15:10:14 -0000 Message-ID: <002001c60c89$f66f4ce0$0100a8c0@pc07653> To: "Larry Adams" , References: <000f01c60c82$bd36ba00$6500a8c0@basement> Date: Thu, 29 Dec 2005 15:10:07 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Subject: Re: [PHP-DEV] Proposed Modifications to PHP_SNMP Extension for Consideration From: nlopess@php.net ("Nuno Lopes") The config.w32 didn't pass through. If you change the extension to .txt, we will be able to receive it. Nuno ----- Original Message ----- > Hello Internals List! For some time now, the PHP_SNMP extension for > Windows > has used the dated and no longer supported (in development) UCD-SNMP > libraries. This situation is problematic, as there have been a number of > changes and bug fixes to the extension that require the NET-SNMP > libraries. > I have been able to make the php_snmp.dll in Windows utilizing the > NET-SNMP > libraries, but had to make changes to the following two files: > > config.w32 > snmp.dsp > > I have attached the two files as reference. However, there remains a > development issue that requires a more skilled programmer to resolve. If > I > make the package unaltered, I receive the following two compiler errors: > > ..\php_build\include\net-snmp\library\system.h(77) : error C2371: 'DIR' : > redefinition; different basic types > c:\msvc\php-5.0.4\TSRM\readdir.h(34) : see declaration of 'DIR' > ..\php_build\include\net-snmp\library\system.h(80) : error C2371: > 'readdir' > : redefinition; different basic types > c:\msvc\php-5.0.4\TSRM\readdir.h(38) : see declaration of 'readdir' > > In order to build the dll file correctly, I edited > and commented out "#include > ", but that appears to be a hack. > > I have a bug open in the PHP Bug Database speaking to this issue as > follows: > > #35696 The function "snmp_set_oid_numeric_print" does not exist on the > Win32 platform > > This change will fix multiple annoyances such as the automatic creation of > the "c:/usr/snmp/persist" directory by the php_snmp.dll file, and, as > stated > previously, the lack of important php_snmp functions and bug fixes in > Windows. > > Regards, > > Larry Adams > The Cacti Group