|
|
升级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)
请帮忙! |
|