LinuxSir.cn,穿越时空的Linuxsir!

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

apache问题。[已解决]

[复制链接]
发表于 2006-5-31 09:59:09 | 显示全部楼层 |阅读模式
升级php时增加了use变量ldap后系统自动 emerge了openldap,并且很多服务都增加了ldap认证。实际上在设置服务器时,根本没有用到ldap.现在:

emerge --unmerge openldap

在use变量中增加-ldap.

emerge --depclean

revdep-rebuild

到apache-2.0.55 时出错:

/usr/include/apr-0/apr_ldap.h:126:18: lber.h: No such file or directory
/usr/include/apr-0/apr_ldap.h:127:18: ldap.h: No such file or directory
In file included from exports.c:101:
/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:72: error: `LDAP_DEREF_NEVER' undeclared here (not in a function)
/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:72: error: enumerator value for `never' not integer constant
/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:73: error: `LDAP_DEREF_SEARCHING' undeclared here (not in a function)
/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:73: error: enumerator value for `searching' not integer constant
/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:74: error: `LDAP_DEREF_FINDING' undeclared here (not in a function)
/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:74: error: enumerator value for `finding' not integer constant
/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:76: error: `LDAP_DEREF_ALWAYS' undeclared here (not in a function)/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:76: error: enumerator value for `always' not integer constant
/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:80: error: syntax error before "LDAP"
/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:80: warning: no semicolon at end of struct or union
/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:99: error: syntax error before '}' token
/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:99: warning: data definition has no type or storage class
/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:147: error: syntax error before "util_ldap_connection_t"
/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:158: error: syntax error before '*' token
/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:198: error: syntax error before '*' token
/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:200: warning: data definition has no type or storage class
/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:221: error: syntax error before "util_ldap_connection_t"
/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:238: error: syntax error before "util_ldap_connection_t"
/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:260: error: syntax error before "util_ldap_connection_t"
/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include/util_ldap.h:281: error: syntax error before "util_ldap_connection_t"
make[2]: *** [exports.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/server'
make: *** [all-recursive] Error 1

!!! ERROR: net-www/apache-2.0.55-r1 failed.
!!! Function src_compile, Line 170, Exitcode 2
!!! problem compiling apache2
!!! If you need support, post the topmost build error, NOT this status message.


revdep-rebuild failed to emerge all packages
you have the following choices:

- if emerge failed during the build, fix the problems and re-run revdep-rebuild
    or
- use -X or --package-names as first argument (trys to rebuild package, not exact
  ebuild)
    or
- set ACCEPT_KEYWORDS="~<your platform>" and/or /etc/portage/package.unmask
  (and remove /root/.revdep-rebuild.5_order to be evaluated again)
    or
- modify the above emerge command and run it manually
    or
- compile or unmerge unsatisfied packages manually, remove temporary files and
  try again (you can edit package/ebuild list first)

请帮忙!
 楼主| 发表于 2006-6-1 01:39:34 | 显示全部楼层
emerge -uDN world
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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