LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 620|回复: 2

编译php时的问题

[复制链接]
发表于 2003-6-25 12:16:22 | 显示全部楼层 |阅读模式
安装PHP,在make时,出现一下报错,怎么回事?

ext/mysql/libmysql/my_lib.lo(.text+0x3d1): In function `my_dir':
/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_lib.c:169: undefined reference to `errno'
ext/mysql/libmysql/my_lib.lo(.text+0x5ef): In function `my_stat':
/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_lib.c:588: undefined reference to `errno'
ext/mysql/libmysql/my_malloc.lo(.text+0xde): In function `my_malloc':
/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_malloc.c:24: undefined reference to `errno'
ext/mysql/libmysql/my_realloc.lo(.text+0xd5): In function `my_realloc':
/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_realloc.c:44: undefined reference to `errno'
ext/mysql/libmysql/my_delete.lo(.text+0x86): In function `my_delete':
/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_delete.c:16: undefined reference to `errno'
ext/mysql/libmysql/my_tempnam.lo(.text+0x89):/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_tempnam.c:108: more undefined references to `errno' follow
collect2: ld returned 1 exit statu
发表于 2003-6-25 14:33:27 | 显示全部楼层
将你configure的配置参数写出来看看?

删除这些东西,重新解压再来一次
 楼主| 发表于 2003-6-25 16:17:54 | 显示全部楼层
./configure --with-mysql --with-apxs2=/usr/local/apache2/bin --with-xml -prefix=/usr/local/php

configure时,一切正常,全部通过。就是make时出错
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表