ID: 37163 Updated by: [EMAIL PROTECTED] Reported By: jdolecek at NetBSD dot org -Status: Assigned +Status: Open Bug Type: WDDX related Operating System: NetBSD PHP Version: 5.1.2 Assigned To: derick
Previous Comments: ------------------------------------------------------------------------ [2006-04-22 10:56:36] [EMAIL PROTECTED] The posted fix is therefore not correct... ------------------------------------------------------------------------ [2006-04-22 10:54:14] [EMAIL PROTECTED] This is correct, and should be fixed in the wddx config.m4 file. ------------------------------------------------------------------------ [2006-04-22 10:52:40] jdolecek at NetBSD dot org Fix: --- ext/date/lib/timelib_structs.h.orig 2006-04-22 12:51:57.000000000 +0200 +++ ext/date/lib/timelib_structs.h 2006-04-22 12:52:01.000000000 +0200 @@ -21,7 +21,7 @@ #ifndef __TIMELIB_STRUCTS_H__ #define __TIMELIB_STRUCTS_H__ -#include <timelib_config.h> +#include "timelib_config.h" #ifdef HAVE_SYS_TYPES_H #include <sys/types.h> ------------------------------------------------------------------------ [2006-04-22 10:51:06] jdolecek at NetBSD dot org Description: ------------ When php_date.h is used in a module, the build requires the include path of C compiler to be set to include ext/date/lib explicitely. This is due to php_date.h pulling "lib/timelib.h" (this is fine), then timelib.h including "timelib_structs.h" (this is fine too), but timelib_structs.h including <timelib_config.h> (this fails). If this is used in a separately built module (encountered with WDDX when build as an extension), this means the include path for the extension build must be setup to include php/include/ext/date/lib. Reproduce code: --------------- Build WDDX as separate extension (i.e. not part of PHP build itself). Expected result: ---------------- Compiles fine Actual result: -------------- Compile fails with error couldn't find timelib_config.h. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37163&edit=1