Hi,

I have made a patch some time ago to have the old ucd-snmp and the new
net-snmp reside besides each other. I would like to drop the
ucd-snmp completely, but that is up to the group.

I have made a patch for this which is available at
http://www.lisanza.net/php-snmp/php-snmp.patch.txt

Use --with-net-snmp for configuration with NET-SNMP..



Hope this helps,
Harrie

--On Friday, October 11, 2002 10:10 AM +0100 Peter Hicks <[EMAIL PROTECTED]> 
wrote:

> Hi everyone
>
> I'm having terrible trouble compiling PHP with net-snmp:
>
>   /bin/sh /usr/local/src/php-4.2.3/libtool --silent --mode=compile gcc
> -I.   -I/usr/local/src/php-4.2.3/ext/snmp -I/usr/local/src/php-4.2.3/main
>   -I/usr/local/src/php-4.2.3 -I/usr/local/apache/include
>   -I/usr/local/src/php-4.2.3/Zend -I/usr/local/include
>   -I/usr/local/mysql/include/mysql -I/usr/local/pdflib/include
>   -I/usr/local/snmp/include -I/usr/local/src/php-4.2.3/ext/xml/expat
>   -DLINUX=22 -DMOD_SSL=208111 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT
>   -I/usr/local/src/php-4.2.3/TSRM -g -O2 -prefer-pic  -c snmp.c
>   snmp.c:62: asn1.h: No such file or directory
>   snmp.c:63: snmp_api.h: No such file or directory
>   snmp.c:64: snmp_client.h: No such file or directory
>   snmp.c:65: snmp_impl.h: No such file or directory
>   snmp.c:66: snmp.h: No such file or directory
>   snmp.c:67: parse.h: No such file or directory
>   snmp.c:68: mib.h: No such file or directory
>   snmp.c:69: version.h: No such file or directory
>
> These missing .h files are in a subdirectory called
> 'include/net-snmp/library' on net-snmp 5.0.6, but on ucd-snmp 4.2.6,
> 'include/ucd-snmp/library'.
>
> I'm no great coder, so when I tried hacking the .c file to point to the
> location of the new headers, I came up against unresolved symbols whilst
> compiling.
>
> Has anybody successfuly compiled php with net-snmp? Can anybody help me
> track down the problem and hopefully come up with a patch?
>
> Best wishes,
>
>
> Peter.
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>



Harrie

Internet Management Consulting
mailto: [EMAIL PROTECTED]                   http://www.lisanza.net/
--------------------------------------------------------------------
Author of MOD-SNMP, enabling SNMP management the Apache HTTP server

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to