Chinaunix首页 | 论坛 | 博客
  • 博客访问: 96290
  • 博文数量: 17
  • 博客积分: 37
  • 博客等级: 民兵
  • 技术积分: 217
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-09 18:24
文章分类
文章存档

2016年(4)

2015年(3)

2014年(9)

2011年(1)

我的朋友

分类: 嵌入式

2014-08-13 16:09:57

因工作需要在交叉编译php,但下载完成后,在configure时,老是报错,flock_struct unknow,因此需要更改configure文件,可以参考如下进行更改

点击(此处)折叠或打开


点击(此处)折叠或打开

  1. --- configure
  2. +++ configure_entware副本
  3. @@ -64995,7 +64995,7 @@
  4. flock_type=unknown
  5. { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"whether flock struct is linux ordered\"" >&5
  6. $as_echo_n "checking \"whether flock struct is linux ordered\"... " >&6; }
  7. -if test "$cross_compiling" = yes; then :
  8. +if test "$cross_compiling" = no; then :
  9.    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11. as_fn_error $? "cannot run test program while cross compiling
  12. @@ -65014,9 +65014,8 @@
  13.    }

  14. _ACEOF
  15. -if ac_fn_c_try_run "$LINENO"; then :
  16. -
  17. - flock_type=linux
  18. +flock_type=linux
  19. +if test "$flock_type" == "linux"; then

  20. $as_echo "#define HAVE_FLOCK_LINUX /**/" >>confdefs.h

  21. @@ -65034,7 +65033,7 @@

  22. { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"whether flock struct is BSD ordered\"" >&5
  23. $as_echo_n "checking \"whether flock struct is BSD ordered\"... " >&6; }
  24. -if test "$cross_compiling" = yes; then :
  25. +if test "$cross_compiling" = no; then :
  26.    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  27. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28. as_fn_error $? "cannot run test program while cross compiling
  29. @@ -65070,7 +65069,7 @@
  30.    conftest.$ac_objext conftest.beam conftest.$ac_ext
  31. fi

  32. -
  33. +flock_type=linux
  34. if test "$flock_type" == "unknown"; then
  35.          as_fn_error $? "Don't know how to define struct flock on this system, set --enable-opcache=no" "$LINENO" 5
  36. fi


更改完成后,可以生成makefile

阅读(4691) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~