PHP 4.0 Bug #6167: SNMP compile failure using UCD-SNMP 3.6.2-5cl RPM
| From: | webmaster at jazzmonkey dot com | Date: | Tue, 15 Aug 2000 14:58:32 +0000 |
| Subject: | PHP 4.0 Bug #6167: SNMP compile failure using UCD-SNMP 3.6.2-5cl RPM | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-28972@lists.php.net to get a copy of this message | ||
From: webmaster@jazzmonkey.com
Operating system: Linux Redhat 6.2
PHP version: 4.0.1pl2
PHP Bug Type: Compile Failure
Bug description: SNMP compile failure using UCD-SNMP 3.6.2-5cl RPM
The default installation of the UCD-SNMP 3.6.2-5cl development libraries is in /usr/include/ucd-snmp
However the current php compiler will never allow includement of this directory
./configure --with-snmp=/usr/include/ucd-snmp
Causes the makefile to instead have -> /usr/include/ucd-snmp/include
(that in itself is the way configure should work...so that isn't an issue)
A simple hack to the snmp makefile to have the /usr/include/ucd-snmp directory made the compilation
successful
Fix:
Have SNMP makefile contain includes for both ~PREIX/ and ~PREFIX/include
(Perhaps this would be a potential fix to have added to all makefiles to allow flexibility if the
header files are not contained within an include directory)