#33934 [Opn->Csd]: snmp functions not working under apache
ID: 33934 User updated by: phdokc at yahoo dot com Reported By: phdokc at yahoo dot com -Status: Open +Status: Closed Bug Type: SNMP related Operating System: HPUX 11.23 PHP Version: 4.4.0 New Comment: I applied HP patch PHSS_33275 which includes many linker and lib patches, then recompiled gcc, net-snmp, apache and php and now the snmp functions are working under apache. Sorry for the false alarm. I hope no time was spent by the PHP team looking in to this. The PHP team is the best in the open source community and I thank you for all your efforts. Previous Comments: [2005-07-31 05:45:38] phdokc at yahoo dot com Description: Compiled NET-SNMP 5.2.1.2, APACHE 2.0.54 and PHP 4.40 from snap shot and any snmpwalk, snmpget or snmpset under apache returns Invalid object identifier whether using ASN dotted notation or mib text value. Run same script using php cli and it works perfect? All other PHP functions including MYSQL are working as expected. This is also code that has been in production for over a year. Just moving to HPUX 11.23 IA64 platform from HPUX 11.11 PA-RISC platform. I have also tried Apache 2.0.50 (self compiled and from HP Depot), NET-SNMP 5.2, PHP 4.3.8, 4.3.11 and 4.4.1-dev. I have search www high and low looking for anyone with simalar issue but only found people who had mis-configured net-snmp. I am 100% confident in my net-snmp configuration / community strings and the fact that the php cli works seems to support my evaluation. I also compiled all versions trying HPUX bundled aCC, GCC 3.4.3 self-compiled and GCC 3.4.3 binary from HPUX porting archive center. Do you feel this to be a bug? Any help would be appriciated. Reproduce code: --- $test2"; ?> Expected result: To return the sysDescr twice. Actual result: -- Under PHP CLI, you get the sysDescr twice as expected. Under APACHE you get; Warning: snmpget(): Invalid object identifier: sysDescr.0 in /apache/httpd/php/nocmon4/pstable/test.php on line 4 Warning: snmpget(): Invalid object identifier: 1.3.6.1.2.1.1.1.0 in /apache/httpd/php/nocmon4/pstable/test.php on line 5 -- Edit this bug report at http://bugs.php.net/?id=33934&edit=1
#33934 [NEW]: snmp functions not working under apache
From: phdokc at yahoo dot com Operating system: HPUX 11.23 PHP version: 4.4.0 PHP Bug Type: SNMP related Bug description: snmp functions not working under apache Description: Compiled NET-SNMP 5.2.1.2, APACHE 2.0.54 and PHP 4.40 from snap shot and any snmpwalk, snmpget or snmpset under apache returns Invalid object identifier whether using ASN dotted notation or mib text value. Run same script using php cli and it works perfect? All other PHP functions including MYSQL are working as expected. This is also code that has been in production for over a year. Just moving to HPUX 11.23 IA64 platform from HPUX 11.11 PA-RISC platform. I have also tried Apache 2.0.50 (self compiled and from HP Depot), NET-SNMP 5.2, PHP 4.3.8, 4.3.11 and 4.4.1-dev. I have search www high and low looking for anyone with simalar issue but only found people who had mis-configured net-snmp. I am 100% confident in my net-snmp configuration / community strings and the fact that the php cli works seems to support my evaluation. I also compiled all versions trying HPUX bundled aCC, GCC 3.4.3 self-compiled and GCC 3.4.3 binary from HPUX porting archive center. Do you feel this to be a bug? Any help would be appriciated. Reproduce code: --- $test2"; ?> Expected result: To return the sysDescr twice. Actual result: -- Under PHP CLI, you get the sysDescr twice as expected. Under APACHE you get; Warning: snmpget(): Invalid object identifier: sysDescr.0 in /apache/httpd/php/nocmon4/pstable/test.php on line 4 Warning: snmpget(): Invalid object identifier: 1.3.6.1.2.1.1.1.0 in /apache/httpd/php/nocmon4/pstable/test.php on line 5 -- Edit bug report at http://bugs.php.net/?id=33934&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33934&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33934&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33934&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=33934&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=33934&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33934&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33934&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33934&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33934&r=support Expected behavior: http://bugs.php.net/fix.php?id=33934&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33934&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33934&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=33934&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33934&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=33934&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33934&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33934&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33934&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33934&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33934&r=mysqlcfg
#30025 [NoF->Opn]: Failure to compile 4.3.8
ID: 30025 User updated by: phdokc at yahoo dot com Reported By: phdokc at yahoo dot com -Status: No Feedback +Status: Open Bug Type: Compile Failure Operating System: HPUX 11.11 PHP Version: 4.3.8 New Comment: # grep _TIME_R main/php_config.h /* #undef PHP_HPUX_TIME_R */ /* #undef PHP_IRIX_TIME_R */ Previous Comments: [2004-09-24 01:00:08] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2004-09-16 16:44:17] [EMAIL PROTECTED] Search for lines with _TIME_R in them in main/php_config.h and paste them here. ( # grep _TIME_R main/php_config.h ) [2004-09-16 14:20:12] phdokc at yahoo dot com There are several reference to "ctime_r" in the config.log. I have included 2 lines before and 15 after for each. 1st occurance configure:14403: checking for chroot configure:14431: gcc -o conftest -g -O2 -pthread -D_REENTRANT conftest.c -lm -lnsl 1>&5 configure:14403: checking for ctime_r configure:14431: gcc -o conftest -g -O2 -pthread -D_REENTRANT conftest.c -lm -lnsl 1>&5 configure:14403: checking for cuserid configure:14431: gcc -o conftest -g -O2 -pthread -D_REENTRANT conftest.c -lm -lnsl 1>&5 configure:14403: checking for crypt configure:14431: gcc -o conftest -g -O2 -pthread -D_REENTRANT conftest.c -lm -lnsl 1>&5 configure:14403: checking for flock configure:14431: gcc -o conftest -g -O2 -pthread -D_REENTRANT conftest.c -lm -lnsl 1>&5 /usr/ccs/bin/ld: Unsatisfied symbols: flock (code) collect2: ld returned 1 exit status configure: failed program was: #line 14408 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char flock(); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char flock(); 2nd occurance configure: In function `main': configure:15060: warning: assignment makes integer from pointer without a cast configure:15061: error: too many arguments to function `asctime_r' configure: failed program was: #line 15050 "configure" #include "confdefs.h" #include main() { char buf[27]; struct tm t; time_t old = 0; int r, s; s = gmtime_r(&old, &t); r = (int) asctime_r(&t, buf, 26); if (r == s && s == 0) return (0); return (1); } 3rd occurance configure:15098: gcc -o conftest -g -O2 -pthread -D_REENTRANT conftest.c -lm -lnsl 1>&5 configure: In function `main': configure:15091: error: too many arguments to function `asctime_r' configure: failed program was: #line 15082 "configure" #include "confdefs.h" #include main() { struct tm t, *s; time_t old = 0; [2004-09-15 16:12:41] [EMAIL PROTECTED] Check the config.log for any occurrances of string ctime_r and cut'n'paste 2 lines before and 15 lines after that line here. [2004-09-08 12:49:28] phdokc at yahoo dot com Description: Failure of PHP 4.3.8 to compile on HPUX. Using HPUX 11.11, GCC 3.3.3, Apache 2.0.50 (from pre-compiled HPUX Web Server Suite 2.08). Compile flags are as follows; configure --prefix=/opt/hpws/apache/php --enable-snmp --enable-sockets --enable-pcntl --enable-sigchild --with-snmp --with-snmp-dir=/usr/local/include/ucd-snmp --with-gd --with-gd-dir=/usr/local/include --with-mysql --with-my sql-dir=/usr/local/mysql/include --with-jpeg --with-jpeg-dir=/usr/local/include --with-zlib --with-zlib-dir=/usr/local/include --wit h-apxs2=/opt/hpws/apache/bin/apxs --with-png --with-png-dir=/usr/local/include Reproduce code: --- /bin/sh /backup/php/php-4.3.8/libtool --silent --preserve-dup-deps --mode=compile /backup/php/php-4.3.8/meta_ccld -Imain/ -I/backup/php/php-4.3.8/main/ -DPHP_ATOM_INC -I/backup/php/php-4.3.8/include -I/backup/php/php-4.3.8/main -I/backup/php/php-4.3.8 -I/backup/php/php-4.3.8/Zend -I/usr/local/include -I/backup/php/php-4.3.8/ext/xml/expat -D_REENTRANT -I/backup/php/php-4.3.8/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c /backup/php/php-4.3.8/main/reentrancy.c -o main/reentrancy.lo Expected result: Completion of make Actual result: -- /backup/php/php-4.3.8/main/reentrancy.c:
#30025 [Fbk->Opn]: Failure to compile 4.3.8
ID: 30025 User updated by: phdokc at yahoo dot com Reported By: phdokc at yahoo dot com -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: HPUX 11.11 PHP Version: 4.3.8 New Comment: There are several reference to "ctime_r" in the config.log. I have included 2 lines before and 15 after for each. 1st occurance configure:14403: checking for chroot configure:14431: gcc -o conftest -g -O2 -pthread -D_REENTRANT conftest.c -lm -lnsl 1>&5 configure:14403: checking for ctime_r configure:14431: gcc -o conftest -g -O2 -pthread -D_REENTRANT conftest.c -lm -lnsl 1>&5 configure:14403: checking for cuserid configure:14431: gcc -o conftest -g -O2 -pthread -D_REENTRANT conftest.c -lm -lnsl 1>&5 configure:14403: checking for crypt configure:14431: gcc -o conftest -g -O2 -pthread -D_REENTRANT conftest.c -lm -lnsl 1>&5 configure:14403: checking for flock configure:14431: gcc -o conftest -g -O2 -pthread -D_REENTRANT conftest.c -lm -lnsl 1>&5 /usr/ccs/bin/ld: Unsatisfied symbols: flock (code) collect2: ld returned 1 exit status configure: failed program was: #line 14408 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char flock(); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char flock(); 2nd occurance configure: In function `main': configure:15060: warning: assignment makes integer from pointer without a cast configure:15061: error: too many arguments to function `asctime_r' configure: failed program was: #line 15050 "configure" #include "confdefs.h" #include main() { char buf[27]; struct tm t; time_t old = 0; int r, s; s = gmtime_r(&old, &t); r = (int) asctime_r(&t, buf, 26); if (r == s && s == 0) return (0); return (1); } 3rd occurance configure:15098: gcc -o conftest -g -O2 -pthread -D_REENTRANT conftest.c -lm -lnsl 1>&5 configure: In function `main': configure:15091: error: too many arguments to function `asctime_r' configure: failed program was: #line 15082 "configure" #include "confdefs.h" #include main() { struct tm t, *s; time_t old = 0; Previous Comments: [2004-09-15 16:12:41] [EMAIL PROTECTED] Check the config.log for any occurrances of string ctime_r and cut'n'paste 2 lines before and 15 lines after that line here. [2004-09-08 12:49:28] phdokc at yahoo dot com Description: Failure of PHP 4.3.8 to compile on HPUX. Using HPUX 11.11, GCC 3.3.3, Apache 2.0.50 (from pre-compiled HPUX Web Server Suite 2.08). Compile flags are as follows; configure --prefix=/opt/hpws/apache/php --enable-snmp --enable-sockets --enable-pcntl --enable-sigchild --with-snmp --with-snmp-dir=/usr/local/include/ucd-snmp --with-gd --with-gd-dir=/usr/local/include --with-mysql --with-my sql-dir=/usr/local/mysql/include --with-jpeg --with-jpeg-dir=/usr/local/include --with-zlib --with-zlib-dir=/usr/local/include --wit h-apxs2=/opt/hpws/apache/bin/apxs --with-png --with-png-dir=/usr/local/include Reproduce code: --- /bin/sh /backup/php/php-4.3.8/libtool --silent --preserve-dup-deps --mode=compile /backup/php/php-4.3.8/meta_ccld -Imain/ -I/backup/php/php-4.3.8/main/ -DPHP_ATOM_INC -I/backup/php/php-4.3.8/include -I/backup/php/php-4.3.8/main -I/backup/php/php-4.3.8 -I/backup/php/php-4.3.8/Zend -I/usr/local/include -I/backup/php/php-4.3.8/ext/xml/expat -D_REENTRANT -I/backup/php/php-4.3.8/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c /backup/php/php-4.3.8/main/reentrancy.c -o main/reentrancy.lo Expected result: Completion of make Actual result: -- /backup/php/php-4.3.8/main/reentrancy.c: In function `php_ctime_r': /backup/php/php-4.3.8/main/reentrancy.c:71: error: too many arguments to function `ctime_r' /backup/php/php-4.3.8/main/reentrancy.c: In function `php_asctime_r': /backup/php/php-4.3.8/main/reentrancy.c:78: error: too many arguments to function `asctime_r' gmake: *** [main/reentrancy.lo] Error 1 -- Edit this bug report at http://bugs.php.net/?id=30025&edit=1
#30025 [NEW]: Failure to compile 4.3.8
From: phdokc at yahoo dot com Operating system: HPUX 11.11 PHP version: 4.3.8 PHP Bug Type: Compile Failure Bug description: Failure to compile 4.3.8 Description: Failure of PHP 4.3.8 to compile on HPUX. Using HPUX 11.11, GCC 3.3.3, Apache 2.0.50 (from pre-compiled HPUX Web Server Suite 2.08). Compile flags are as follows; configure --prefix=/opt/hpws/apache/php --enable-snmp --enable-sockets --enable-pcntl --enable-sigchild --with-snmp --with-snmp-dir=/usr/local/include/ucd-snmp --with-gd --with-gd-dir=/usr/local/include --with-mysql --with-my sql-dir=/usr/local/mysql/include --with-jpeg --with-jpeg-dir=/usr/local/include --with-zlib --with-zlib-dir=/usr/local/include --wit h-apxs2=/opt/hpws/apache/bin/apxs --with-png --with-png-dir=/usr/local/include Reproduce code: --- /bin/sh /backup/php/php-4.3.8/libtool --silent --preserve-dup-deps --mode=compile /backup/php/php-4.3.8/meta_ccld -Imain/ -I/backup/php/php-4.3.8/main/ -DPHP_ATOM_INC -I/backup/php/php-4.3.8/include -I/backup/php/php-4.3.8/main -I/backup/php/php-4.3.8 -I/backup/php/php-4.3.8/Zend -I/usr/local/include -I/backup/php/php-4.3.8/ext/xml/expat -D_REENTRANT -I/backup/php/php-4.3.8/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c /backup/php/php-4.3.8/main/reentrancy.c -o main/reentrancy.lo Expected result: Completion of make Actual result: -- /backup/php/php-4.3.8/main/reentrancy.c: In function `php_ctime_r': /backup/php/php-4.3.8/main/reentrancy.c:71: error: too many arguments to function `ctime_r' /backup/php/php-4.3.8/main/reentrancy.c: In function `php_asctime_r': /backup/php/php-4.3.8/main/reentrancy.c:78: error: too many arguments to function `asctime_r' gmake: *** [main/reentrancy.lo] Error 1 -- Edit bug report at http://bugs.php.net/?id=30025&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30025&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30025&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30025&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=30025&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=30025&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30025&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30025&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30025&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30025&r=support Expected behavior: http://bugs.php.net/fix.php?id=30025&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30025&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30025&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=30025&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30025&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=30025&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30025&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30025&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30025&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30025&r=mysqlcfg