Re: Bug #14048 Updated: Configure issues
| From: | Melvyn Sopacua | Date: | Sat, 15 Dec 2001 12:26:39 +0000 |
| Subject: | Re: Bug #14048 Updated: Configure issues | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-73901@lists.php.net to get a copy of this message | ||
Markus Fischer said at 12:16 15-12-2001:
ok, working on it. 2 notes on this build: i get a lot of yacc warnings like these: /usr/src/web/php/php4/ext/standard/var_unserializer.re:273: warning: label `yy1' defined but not usedOk.that's ok .
and the xtoffsetof is redefined: in file included from /apbeta/include/httpd.h:72,These are the lines in ap_config.h: #ifdef offsetof #define XtOffsetOf(s_type,field) offsetof(s_type,field) #else #define XtOffsetOf(s_type,field) XtOffset(s_type*,field) #endif And this in sapi_apache.c: #ifndef XtOffsetOf #ifdef offsetof #define XtOffsetOf(s_type, field) offsetof(s_type, field) #else #define XtOffsetOf(s_type, field) XtOffset(s_type*, field) #endif #endif /* !XtOffsetOf */ From the looks of the warning, the include order is wrong: In file included from php_apache_http.h:6,from sapi_apache.c:32:/apbeta/include/ap_config.h:1367: warning: `xtoffsetof' redefinedthat shouldn't be...
from php_apache.c:45:/apbeta/include/ap_config.h:1367: warning: `XtOffsetOf' redefined /home/mdev/_src/php4-200112140600/main/php.h:345: warning: this is the location of the previous definition Note the __previous__ definition. I changed the order in sapi_apache.c, but that broke it: In file included from /home/mdev/_src/php4-200112140600/main/php_regex.h:13,
from /home/mdev/_src/php4-200112140600/main/php.h:60,
from sapi_apache.c:33:
/home/mdev/_src/php4-200112140600/regex/regex.h:17: redefinition of `regoff_t'
/apbeta/include/hsregex.h:27: `regoff_t' previously declared here
/home/mdev/_src/php4-200112140600/regex/regex.h:23: conflicting types for `regex_t'
/apbeta/include/hsregex.h:33: previous declaration of `regex_t'
/home/mdev/_src/php4-200112140600/regex/regex.h:27: conflicting types for `regmatch_t'
/apbeta/include/hsregex.h:37: previous declaration of `regmatch_t'
make[3]: *** [sapi_apache.lo] Error 1
make[3]: Leaving directory `/home/mdev/_src/php4-200112140600/sapi/apache'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mdev/_src/php4-200112140600/sapi/apache'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mdev/_src/php4-200112140600/sapi'
make: *** [all-recursive] Error 1
diff is:
*** sapi_apache.c.dist Tue Dec 11 16:45:27 2001
--- sapi_apache.c Sat Dec 15 13:21:36 2001*************** *** 27,36 **** #include <stddef.h> #endif - #include "php.h" - #include "httpd.h" #include "http_config.h" #if MODULE_MAGIC_NUMBER > 19980712 # include "ap_compat.h" #else --- 27,37 ---- #include <stddef.h> #endif #include "httpd.h" #include "http_config.h" + + #include "php.h" + #if MODULE_MAGIC_NUMBER > 19980712 # include "ap_compat.h" #else Met vriendelijke groeten / With kind regards, IDG.nl Melvyn Sopacua Webmaster