Chinaunix首页 | 论坛 | 博客
  • 博客访问: 123372
  • 博文数量: 34
  • 博客积分: 1201
  • 博客等级: 少尉
  • 技术积分: 365
  • 用 户 组: 普通用户
  • 注册时间: 2010-10-21 08:56
文章分类

全部博文(34)

文章存档

2012年(1)

2011年(15)

2010年(18)

我的朋友

分类: LINUX

2011-10-28 14:24:07

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.
阅读(1892) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~