Re: [PHP4BETA] UCD_SNMP compile error in PHP-4.0B3-RC3
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: [PHP4BETA] UCD_SNMP compile error in PHP-4.0B3-RC3 | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-6031@lists.php.net to get a copy of this message | ||
On Tue, 9 Nov 1999, Jeff Johnson wrote:
> On Tue, Nov 09, 1999 at 10:37:51AM -0500, Rasmus Lerdorf wrote:
> > > The INCLUDES has -I/usr/local/snmp/include. However, I get the following:
> > >
> > > snmp.c:57: asn1.h: No such file or directory
> > > snmp.c:58: snmp_api.h: No such file or directory
> > > snmp.c:59: snmp_client.h: No such file or directory
> > > snmp.c:60: snmp_impl.h: No such file or directory
> > > snmp.c:61: snmp.h: No such file or directory
> > > snmp.c:62: parse.h: No such file or directory
> > > snmp.c:63: mib.h: No such file or directory
> > > gmake[3]: *** [snmp.lo] Error 1
> > >
> > > These files are in -I/usr/local/snmp/include/ucd-snmp/.
> > >
> > > $ /usr/local/snmp/bin/snmpget -V
> > > UCD-snmp version: 4.0.1
> > >
> > > Add {SNMPDIR}/include/ucd-snmp/ to this section.
> >
> > A bit of an odd place for them, but ok. Where is your libsnmp.a library
> > file?
> >
> > -Rasmus
>
> It's /usr/local/snmp/lib/libsnmp.a. I don't know exactly why they are there.
> I believe it's a default install of UCD SNMP 4.0.1 with current patches.
I just installed 4.0.1 and it stuck my header files in
/usr/local/include/ucd-snmp when I did a ./configure; make install
Did you feed it a different install path?
Regardless, I have tweaked the ext/snmp/config.m4 file and your setup
should now be detected correctly.
-Rasmus