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.


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

Reply via email to