I encountered an issue when I compiling php4.3.9 on apache2.2.21 on ct42_32. see below
/usr/include/apr-1/apr.h:358: error: syntax error before "apr_off_t"
I found there has not define apr_off_t with long type in /usr/include/apr-1/apr.h but off64_t type for php4.3.9, so you just only add a new line "typedef long off64_t;" before the line "typedef off64_t apr_off_t;" as below:
#vi /usr/include/apr-1/apr.h
change
typedef off64_t apr_off_t;
to
typedef long off64_t;
typedef off64_t apr_off_t;
then run "make clean" and "make" again.
阅读(1958) | 评论(0) | 转发(0) |