免费注册 查看新帖 |

Chinaunix

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

编译PHP make test 失败 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-12 15:30 |只看该作者 |倒序浏览
系统 centos 5.2  x86_64

php版本 5.2.6

./configure   成功

make 成功

make test 出现10个失败

具体信息如下:
---------------------------------------------------------------------
Time taken      :  164 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt]
Test array_slice() function : usage variations - Pass different data types as $offset arg [ext/standard/tests/array/array_slice_variation2.phpt]
Test array_slice() function : usage variations - Pass different data types as $length arg [ext/standard/tests/array/array_slice_variation3.phpt]
Test array_slice() function : usage variations - pass different int values as $length arg [ext/standard/tests/array/array_slice_variation6.phpt]
Test closedir() function : usage variations - close a file pointer [ext/standard/tests/dir/closedir_variation3.phpt]
Test readdir() function : usage variations - empty directories [ext/standard/tests/dir/readdir_variation2.phpt]
Test readdir() function : usage variations - use file pointers [ext/standard/tests/dir/readdir_variation7.phpt]
Test rewinddir() function : basic functionality [ext/standard/tests/dir/rewinddir_basic.phpt]
Test rewinddir() function : usage variations - operate on a closed directory [ext/standard/tests/dir/rewinddir_variation2.phpt]
Test rewinddir() function : usage variations - file pointers [ext/standard/tests/dir/rewinddir_variation3.phpt]
=====================================================================



请问这是什么问题 我GOOGLE了很久没找到答案

[ 本帖最后由 lzj019 于 2008-7-12 15:35 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-07-12 17:43 |只看该作者
./configure  内容发上来看看

论坛徽章:
0
3 [报告]
发表于 2008-07-12 18:04 |只看该作者
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:2153: checking for Cygwin environment
configure:2169: cc -c   conftest.c 1>&5
configure: In function 'main':
configure:2165: error: '__CYGWIN32__' undeclared (first use in this function)
configure:2165: error: (Each undeclared identifier is reported only once
configure:2165: error: for each function it appears in.)
configure: failed program was:
#line 2158 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:2186: checking for mingw32 environment
configure:2198: cc -c   conftest.c 1>&5
configure: In function 'main':
configure:2194: error: '__MINGW32__' undeclared (first use in this function)
configure:2194: error: (Each undeclared identifier is reported only once
configure:2194: error: for each function it appears in.)
configure: failed program was:
#line 2191 "configure"
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:2153: checking for Cygwin environment
configure:2169: cc -c   conftest.c 1>&5
configure: In function 'main':
configure:2165: error: '__CYGWIN32__' undeclared (first use in this function)
configure:2165: error: (Each undeclared identifier is reported only once
configure:2165: error: for each function it appears in.)
configure: failed program was:
#line 2158 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:2186: checking for mingw32 environment
configure:2198: cc -c   conftest.c 1>&5
configure: In function 'main':
configure:2194: error: '__MINGW32__' undeclared (first use in this function)
configure:2194: error: (Each undeclared identifier is reported only once
configure:2194: error: for each function it appears in.)
configure: failed program was:
#line 2191 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:2217: checking for egrep
configure:2232: checking for a sed that does not truncate output
configure:2382: checking host system type
configure:2403: checking target system type
configure:2515: checking for gcc
configure:2628: checking whether the C compiler (gcc  ) works
configure:2644: gcc -o conftest    conftest.c  1>&5
configure:2670: checking whether the C compiler (gcc  ) is a cross-compiler
configure:2675: checking whether we are using GNU C
configure:2684: gcc -E conftest.c
configure:2703: checking whether gcc accepts -g
configure:2735: checking how to run the C preprocessor
configure:2756: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:2817: checking for icc
configure:2839: checking whether gcc and cc understand -c and -o together
configure:2854: gcc -c conftest.c -o conftest.o 1>&5
configure:2855: gcc -c conftest.c -o conftest.o 1>&5
configure:2860: cc -c conftest.c 1>&5
configure:2862: cc -c conftest.c -o conftest.o 1>&5
configure:2863: cc -c conftest.c -o conftest.o 1>&5
configure:2890: checking how to run the C preprocessor
configure:2970: checking for AIX
configure:2994: checking whether ln -s works
configure:3019: checking for system library directory
configure:3045: checking whether to enable runpaths
configure:3069: checking if compiler supports -R
configure:3084: gcc -o conftest -g -O2   conftest.c -R /usr/lib  1>&5
gcc: unrecognized option '-R'
/usr/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 3077 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:3102: checking if compiler supports -Wl,-rpath,
configure:3117: gcc -o conftest -g -O2   conftest.c -Wl,-rpath,/usr/lib  1>&5
configure:3146: checking for re2c
configure:3206: checking for gawk
configure:3266: checking for bison
configure:3306: checking for bison version
configure:3346: checking for flex
configure:3380: checking for yywrap in -lfl
configure:3399: gcc -o conftest -g -O2   conftest.c -lfl   1>&5
configure:3423: checking lex output file root
configure:3444: checking whether yytext is a pointer
configure:3463: gcc -o conftest -g -O2   conftest.c  -lfl 1>&5
configure:3487: checking for working const
configure:3541: gcc -c -g -O2  conftest.c 1>&5
configure:3567: checking for flex version
configure:3831: checking whether to force non-PIC code in shared modules
configure:3859: checking whether /dev/urandom exists
configure:3938: gcc -o conftest -g -O2   conftest.c  1>&5
/tmp/ccux0Jvk.o: In function `main':
/service/www/php-5.2.6/configure:3933: undefined reference to `pthread_mutexattr_init'
/service/www/php-5.2.6/configure:3934: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3920 "configure"
#include "confdefs.h"

#include <pthread.h>
#include <stddef.h>

void *thread_routine(void *data) {
    return data;
}

int main() {
    pthread_t thd;
    pthread_mutexattr_t mattr;
    int data = 1;
    pthread_mutexattr_init(&mattr);
    return pthread_create(&thd, NULL, thread_routine, &data);
}
configure:3958: checking for pthreads_cflags
configure:3998: gcc -o conftest -g -O2 -kthread   conftest.c  1>&5
gcc: unrecognized option '-kthread'
/tmp/ccylBBer.o: In function `main':
/service/www/php-5.2.6/configure:3993: undefined reference to `pthread_mutexattr_init'
/service/www/php-5.2.6/configure:3994: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3980 "configure"
#include "confdefs.h"

#include <pthread.h>
#include <stddef.h>

void *thread_routine(void *data) {
    return data;
}

int main() {
    pthread_t thd;
    pthread_mutexattr_t mattr;
    int data = 1;
    pthread_mutexattr_init(&mattr);
    return pthread_create(&thd, NULL, thread_routine, &data);
}
configure:3998: gcc -o conftest -g -O2 -pthread   conftest.c  1>&5
configure:4028: checking for pthreads_lib
configure:4202: checking for AOLserver support
configure:4459: checking for Apache 1.x module support via DSO through APXS
configure:4782: checking for Apache 1.x module support
configure:5615: checking whether to enable Apache charset compatibility option
configure:5788: checking for Apache 2.0 filter-module support via DSO through APXS
configure:6636: checking for Apache 2.0 handler-module support via DSO through APXS
configure:7485: checking for Apache 1.x (hooks) module support via DSO through APXS
configure:7808: checking for Apache 1.x (hooks) module support
configure:8641: checking whether to enable Apache charset compatibility option
configure:8815: checking for Caudium support
configure:9166: checking for CLI build
configure:9212: checking for Continuity support
configure:9489: checking for embedded SAPI library support
configure:9706: checking for Zeus ISAPI support
configure:9955: checking for Milter support
configure:10239: checking for NSAPI support
configure:10591: checking for PHTTPD support
configure:10837: checking for Pi3Web support
configure:11204: checking whether Roxen module is build using ZTS
configure:11228: checking for Roxen/Pike support
configure:11506: checking for thttpd
configure:11767: checking for TUX
configure:12013: checking for webjames
configure:12365: checking whether to build CGI binary
configure:12388: checking whether to enable fastcgi support
configure:12403: checking whether to force Apache CGI redirect
configure:12416: checking whether to discard path_info + path_translated
configure:12429: checking whether to enable path info checking
configure:12641: checking for chosen SAPI module
configure:12699: checking for sendmail
configure:12738: checking whether system uses EBCDIC
configure:12757: gcc -o conftest -g -O2   conftest.c  1>&5
configure: failed program was:
#line 12749 "configure"
#include "confdefs.h"

int main(void) {
  return (unsigned char)'A' != (unsigned char)0xC1;
}

configure:12785: checking whether byte ordering is bigendian
configure:12811: gcc -o conftest -g -O2   conftest.c  1>&5
configure: failed program was:
#line 12795 "configure"
#include "confdefs.h"

int main(void)
{
  short one = 1;
  char *cp = (char *)&one;

  if (*cp == 0) {
    return(0);
  } else {
    return(1);
  }
}

configure:12837: checking whether writing to stdout works
configure:12866: gcc -o conftest -g -O2   conftest.c  1>&5
configure:12941: checking for socket
configure:12969: gcc -o conftest -g -O2   conftest.c  1>&5
configure:13198: checking for socketpair
configure:13226: gcc -o conftest -g -O2   conftest.c  1>&5
configure:13455: checking for htonl
configure:13483: gcc -o conftest -g -O2   conftest.c  1>&5
configure:13712: checking for gethostname
configure:13740: gcc -o conftest -g -O2   conftest.c  1>&5
configure:13969: checking for gethostbyaddr
configure:13997: gcc -o conftest -g -O2   conftest.c  1>&5
configure:14226: checking for yp_get_default_domain
configure:14254: gcc -o conftest -g -O2   conftest.c  1>&5
/tmp/ccUiKaxQ.o: In function `main':
/service/www/php-5.2.6/configure:14248: undefined reference to `yp_get_default_domain'
collect2: ld returned 1 exit status
configure: failed program was:
#line 14231 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char yp_get_default_domain(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char yp_get_default_domain();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_yp_get_default_domain) || defined (__stub___yp_get_default_domain)
choke me
#else
yp_get_default_domain();
#endif

; return 0; }
configure:14272: checking for __yp_get_default_domain
configure:14300: gcc -o conftest -g -O2   conftest.c  1>&5
/tmp/ccgnzYM0.o: In function `main':
/service/www/php-5.2.6/configure:14294: undefined reference to `__yp_get_default_domain'
collect2: ld returned 1 exit status
configure: failed program was:
#line 14277 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char __yp_get_default_domain(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char __yp_get_default_domain();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub___yp_get_default_domain) || defined (__stub_____yp_get_default_domain)
choke me
#else
__yp_get_default_domain();
#endif

论坛徽章:
0
4 [报告]
发表于 2008-07-12 18:05 |只看该作者
这是 configure.log里面的内容 麻烦你帮你分析下 非常感谢 这个问题困扰了我好久了呵呵

论坛徽章:
0
5 [报告]
发表于 2008-08-13 14:18 |只看该作者
顶一下,我也碰到同样 问题。

论坛徽章:
0
6 [报告]
发表于 2008-08-13 14:20 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP