From: [EMAIL PROTECTED] Operating system: OS400 PHP version: 4.0.4pl1 PHP Bug Type: Compile Failure Bug description: no support for syslog.h causes errors If a platform does not have syslog support, get compile errors: "ext/standard/basic_functions.c", line 494.9: 1506-045 (S) Undeclared identifier php_if_openlog. "ext/standard/basic_functions.c", line 495.9: 1506-045 (S) Undeclared identifier php_if_syslog. "ext/standard/basic_functions.c", line 496.9: 1506-045 (S) Undeclared identifier php_if_closelog. "ext/standard/basic_functions.c", line 497.9: 1506-045 (S) Undeclared identifier php_if_define_syslog_variables. "ext/standard/syslog.c", line 42.9: 1506-045 (S) Undeclared identifier LOG_EMERG. "ext/standard/syslog.c", line 43.9: 1506-045 (S) Undeclared identifier LOG_ALERT. "ext/standard/syslog.c", line 44.9: 1506-045 (S) Undeclared identifier LOG_CRIT. "ext/standard/syslog.c", line 45.9: 1506-045 (S) Undeclared identifier LOG_ERR. "ext/standard/syslog.c", line 46.9: 1506-045 (S) Undeclared identifier LOG_WARNING. "ext/standard/syslog.c", line 47.9: 1506-045 (S) Undeclared identifier LOG_NOTICE. "ext/standard/syslog.c", line 48.9: 1506-045 (S) Undeclared identifier LOG_INFO. "ext/standard/syslog.c", line 49.9: 1506-045 (S) Undeclared identifier LOG_DEBUG. "ext/standard/syslog.c", line 51.9: 1506-045 (S) Undeclared identifier LOG_KERN. "ext/standard/syslog.c", line 52.9: 1506-045 (S) Undeclared identifier LOG_USER. "ext/standard/syslog.c", line 53.9: 1506-045 (S) Undeclared identifier LOG_MAIL. "ext/standard/syslog.c", line 54.9: 1506-045 (S) Undeclared identifier LOG_DAEMON. "ext/standard/syslog.c", line 55.9: 1506-045 (S) Undeclared identifier LOG_AUTH. "ext/standard/syslog.c", line 56.9: 1506-045 (S) Undeclared identifier LOG_SYSLOG. "ext/standard/syslog.c", line 57.9: 1506-045 (S) Undeclared identifier LOG_LPR. "ext/standard/syslog.c", line 75.9: 1506-045 (S) Undeclared identifier LOG_LOCAL0. "ext/standard/syslog.c", line 76.9: 1506-045 (S) Undeclared identifier LOG_LOCAL1. "ext/standard/syslog.c", line 77.9: 1506-045 (S) Undeclared identifier LOG_LOCAL2. "ext/standard/syslog.c", line 78.9: 1506-045 (S) Undeclared identifier LOG_LOCAL3. "ext/standard/syslog.c", line 79.9: 1506-045 (S) Undeclared identifier LOG_LOCAL4. "ext/standard/syslog.c", line 80.9: 1506-045 (S) Undeclared identifier LOG_LOCAL5. "ext/standard/syslog.c", line 81.9: 1506-045 (S) Undeclared identifier LOG_LOCAL6. "ext/standard/syslog.c", line 82.9: 1506-045 (S) Undeclared identifier LOG_LOCAL7. "ext/standard/syslog.c", line 85.9: 1506-045 (S) Undeclared identifier LOG_PID. "ext/standard/syslog.c", line 86.9: 1506-045 (S) Undeclared identifier LOG_CONS. "ext/standard/syslog.c", line 87.9: 1506-045 (S) Undeclared identifier LOG_ODELAY. "ext/standard/syslog.c", line 88.9: 1506-045 (S) Undeclared identifier LOG_NDELAY. "ext/standard/syslog.c", line 89.9: 1506-045 (S) Undeclared identifier LOG_NOWAIT. "ext/standard/syslog.c", line 129.9: 1506-045 (S) Undeclared identifier LOG_EMERG. "ext/standard/syslog.c", line 130.9: 1506-045 (S) Undeclared identifier LOG_ALERT. "ext/standard/syslog.c", line 131.9: 1506-045 (S) Undeclared identifier LOG_CRIT. "ext/standard/syslog.c", line 132.9: 1506-045 (S) Undeclared identifier LOG_ERR. "ext/standard/syslog.c", line 133.9: 1506-045 (S) Undeclared identifier LOG_WARNING. "ext/standard/syslog.c", line 134.9: 1506-045 (S) Undeclared identifier LOG_NOTICE. "syslog.c", line 135.9: 1506-045 (S) Undeclared identifier LOG_INFO. "ext/standard/syslog.c", line 136.9: 1506-045 (S) Undeclared identifier LOG_DEBUG. "ext/standard/syslog.c", line 138.9: 1506-045 (S) Undeclared identifier LOG_KERN. "ext/standard/syslog.c", line 139.9: 1506-045 (S) Undeclared identifier LOG_USER. "ext/standard/syslog.c", line 140.9: 1506-045 (S) Undeclared identifier LOG_MAIL. "ext/standard/syslog.c", line 141.9: 1506-045 (S) Undeclared identifier LOG_DAEMON. "ext/standard/syslog.c", line 142.9: 1506-045 (S) Undeclared identifier LOG_AUTH. "ext/standard/syslog.c", line 143.9: 1506-045 (S) Undeclared identifier LOG_SYSLOG. "ext/standard/syslog.c", line 144.9: 1506-045 (S) Undeclared identifier LOG_LPR. "ext/standard/syslog.c", line 162.9: 1506-045 (S) Undeclared identifier LOG_LOCAL0. "ext/standard/syslog.c", line 163.9: 1506-045 (S) Undeclared identifier LOG_LOCAL1. "ext/standard/syslog.c", line 164.9: 1506-045 (S) Undeclared identifier LOG_LOCAL2. "ext/standard/syslog.c", line 165.9: 1506-045 (S) Undeclared identifier LOG_LOCAL3. "ext/standard/syslog.c", line 166.9: 1506-045 (S) Undeclared identifier LOG_LOCAL4. "ext/standard/syslog.c", line 167.9: 1506-045 (S) Undeclared identifier LOG_LOCAL5. "ext/standard/syslog.c", line 168.9: 1506-045 (S) Undeclared identifier LOG_LOCAL6. "ext/standard/syslog.c", line 169.9: 1506-045 (S) Undeclared identifier LOG_LOCAL7. "ext/standard/syslog.c", line 172.9: 1506-045 (S) Undeclared identifier LOG_PID. "ext/standard/syslog.c", line 173.9: 1506-045 (S) Undeclared identifier LOG_CONS. "ext/standard/syslog.c", line 174.9: 1506-045 (S) Undeclared identifier LOG_ODELAY. "ext/standard/syslog.c", line 175.9: 1506-045 (S) Undeclared identifier LOG_NDELAY. "ext/standard/syslog.c", line 176.9: 1506-045 (S) Undeclared identifier LOG_NOWAIT. In addition, there are various places where syslog.h is included without any check to see of HAVE_SYSLOG_H is true (note that in some cases, if not all, including syslog.h is not even necessary): main/php_syslog.h sapi/cgi/cgi_main.c sapi/servlet/servlet.c -- Edit Bug report at: http://bugs.php.net/?id=9412&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]