免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1093 | 回复: 5
打印 上一主题 下一主题

编译apache 和 php5 时make出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-12-26 14:51 |只看该作者 |倒序浏览
我是这样做的
下载以下软件
gcc-3.3.2-sol10-intel-local.gz
bison-1.875d-sol10-intel-local.gz
flex-2.5.4a-sol10-intel-local.gz
php-5.0.3.tar.gz

#gunzip -d gcc*
#pkgadd -d gcc*

#gunzip -d bison*
#pkgadd -d bison*

#gunzip -d flex*
#pkgadd -d flex*

#vi /etc/profile
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ccs/bin:/etc;
export PATH

#gunzip -d php*
#tar -xvf php*
#cd php-5.0.3
#./configure --prefix=/usr/php5
...
...
...
#make
...
...
In file included from /usr/include/sys/wait.h:24,
                        from /php-5.0.3/ext/standard/exec.c:33:
/usr/include/sys/siginfo.h:259 error:parse error before "ctid_t"
/usr/include/sys/siginfo.h:292 error:parse error before '}' token
/usr/include/sys/siginfo.h:294 error:parse error before '}' token
/usr/include/sys/siginfo.h:390 error:parse error before "ctid_t"
/usr/include/sys/siginfo.h:392 error:conflicting types for '__proc'
...
In file included from /usr/include/sys/procset.h:24,
                        from /usr/include/sys/wait.h:25,
                        from /php-5.0.3/ext/standard/exec.c:33:
...parse error...
...parse error...

* * * Error code 1
make: Fatal error :Command failed for target 'exec/standard/exec.lo'
#

请问这是我的 make 问题 还是 gcc 问题
如何解决呢?
或者告诉我从哪里下手啊

论坛徽章:
0
2 [报告]
发表于 2004-12-26 21:53 |只看该作者

编译apache 和 php5 时make出错

到底了
顶起来

论坛徽章:
0
3 [报告]
发表于 2004-12-27 08:32 |只看该作者

编译apache 和 php5 时make出错

我还遇到相同的错误,也没人回答我。

论坛徽章:
0
4 [报告]
发表于 2004-12-27 18:34 |只看该作者

编译apache 和 php5 时make出错

论坛徽章:
0
5 [报告]
发表于 2004-12-27 19:21 |只看该作者

编译apache 和 php5 时make出错

换个gcc版本或者找一个支持的wait.h文件覆盖一下,也可以自己修改

论坛徽章:
0
6 [报告]
发表于 2004-12-27 23:47 |只看该作者

编译apache 和 php5 时make出错

wait.h头文件有问题,应该是缺少ctid_t的定义
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP