|
系统是gentoo,已经安装了openldap,但是在编译apache时无法通过,主要是mod_authnz_ldap模块的位置无法编译了
- make[3]: Entering directory `/root/httpd-2.2.21/modules/aaa'
- Building shared: mod_authn_file.la mod_authn_dbm.la mod_authn_anon.la mod_authn_dbd.la mod_authn_default.la mod_authn_alias.la mod_authz_host.la mod_authz_groupfile.la mod_authz_user.la mod_authz_dbm.la mod_authz_owner.la mod_authnz_ldap.la mod_authz_default.la mod_auth_basic.la mod_auth_digest.la
- make[4]: Entering directory `/root/httpd-2.2.21/modules/aaa'
- /root/httpd-2.2.21/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -pthread -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/root/httpd-2.2.21/srclib/pcre -I. -I/root/httpd-2.2.21/os/unix -I/root/httpd-2.2.21/server/mpm/prefork -I/root/httpd-2.2.21/modules/http -I/root/httpd-2.2.21/modules/filters -I/root/httpd-2.2.21/modules/proxy -I/root/httpd-2.2.21/include -I/root/httpd-2.2.21/modules/generators -I/root/httpd-2.2.21/modules/mappers -I/root/httpd-2.2.21/modules/database -I/root/httpd-2.2.21/srclib/apr/include -I/root/httpd-2.2.21/srclib/apr-util/include -I/root/httpd-2.2.21/server -I/root/httpd-2.2.21/modules/proxy/../generators -I/root/httpd-2.2.21/modules/ssl -I/root/httpd-2.2.21/modules/dav/main -prefer-pic -c mod_authnz_ldap.c && touch mod_authnz_ldap.slo
- mod_authnz_ldap.c:41:2: error: #error mod_authnz_ldap requires APR-util to have LDAP support built in. To fix add --with-ldap to ./configure.
- mod_authnz_ldap.c:63: error: expected specifier-qualifier-list before 'deref_options'
- mod_authnz_ldap.c:95: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
- mod_authnz_ldap.c:96: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
- mod_authnz_ldap.c:97: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
- mod_authnz_ldap.c:98: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
- mod_authnz_ldap.c:99: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
- mod_authnz_ldap.c:100: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
- mod_authnz_ldap.c:101: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
- mod_authnz_ldap.c: In function 'create_authnz_ldap_dir_config':
- mod_authnz_ldap.c:313: error: 'authn_ldap_config_t' has no member named 'groupattr'
- mod_authnz_ldap.c:316: error: 'authn_ldap_config_t' has no member named 'have_ldap_url'
- mod_authnz_ldap.c:319: error: 'authn_ldap_config_t' has no member named 'binddn'
- mod_authnz_ldap.c:320: error: 'authn_ldap_config_t' has no member named 'bindpw'
- mod_authnz_ldap.c:321: error: 'authn_ldap_config_t' has no member named 'bind_authoritative'
- mod_authnz_ldap.c:322: error: 'authn_ldap_config_t' has no member named 'deref'
- mod_authnz_ldap.c:322: error: 'always' undeclared (first use in this function)
- mod_authnz_ldap.c:322: error: (Each undeclared identifier is reported only once
- mod_authnz_ldap.c:322: error: for each function it appears in.)
- mod_authnz_ldap.c:323: error: 'authn_ldap_config_t' has no member named 'group_attrib_is_dn'
- mod_authnz_ldap.c:330: error: 'authn_ldap_config_t' has no member named 'secure'
- mod_authnz_ldap.c:332: error: 'authn_ldap_config_t' has no member named 'user_is_dn'
- mod_authnz_ldap.c:333: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:334: error: 'authn_ldap_config_t' has no member named 'compare_dn_on_server'
- mod_authnz_ldap.c: In function 'authnz_ldap_cleanup_connection_close':
- mod_authnz_ldap.c:341: error: 'util_ldap_connection_t' undeclared (first use in this function)
- mod_authnz_ldap.c:341: error: 'ldc' undeclared (first use in this function)
- mod_authnz_ldap.c: In function 'authn_ldap_check_password':
- mod_authnz_ldap.c:366: error: 'util_ldap_connection_t' undeclared (first use in this function)
- mod_authnz_ldap.c:366: error: 'ldc' undeclared (first use in this function)
- mod_authnz_ldap.c:385: error: 'authn_ldap_config_t' has no member named 'have_ldap_url'
- mod_authnz_ldap.c:394: error: 'authn_ldap_config_t' has no member named 'binddn'
- mod_authnz_ldap.c:394: error: 'authn_ldap_config_t' has no member named 'bindpw'
- mod_authnz_ldap.c:394: error: 'authn_ldap_config_t' has no member named 'deref'
- mod_authnz_ldap.c:395: error: 'authn_ldap_config_t' has no member named 'secure'
- mod_authnz_ldap.c:434: error: 'LDAP_SERVER_DOWN' undeclared (first use in this function)
- mod_authnz_ldap.c:441: error: 'LDAP_SUCCESS' undeclared (first use in this function)
- mod_authnz_ldap.c:442: error: 'authn_ldap_config_t' has no member named 'bind_authoritative'
- mod_authnz_ldap.c:455: error: 'LDAP_NO_SUCH_OBJECT' undeclared (first use in this function)
- mod_authnz_ldap.c:459: error: 'LDAP_INAPPROPRIATE_AUTH' undeclared (first use in this function)
- mod_authnz_ldap.c:460: error: 'LDAP_INVALID_CREDENTIALS' undeclared (first use in this function)
- mod_authnz_ldap.c:480: error: 'authn_ldap_config_t' has no member named 'user_is_dn'
- mod_authnz_ldap.c:498: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:508: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:515: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c: In function 'authz_ldap_check_user_access':
- mod_authnz_ldap.c:548: error: 'util_ldap_connection_t' undeclared (first use in this function)
- mod_authnz_ldap.c:548: error: 'ldc' undeclared (first use in this function)
- mod_authnz_ldap.c:570: error: 'authn_ldap_config_t' has no member named 'have_ldap_url'
- mod_authnz_ldap.c:599: error: 'authn_ldap_config_t' has no member named 'binddn'
- mod_authnz_ldap.c:599: error: 'authn_ldap_config_t' has no member named 'bindpw'
- mod_authnz_ldap.c:599: error: 'authn_ldap_config_t' has no member named 'deref'
- mod_authnz_ldap.c:600: error: 'authn_ldap_config_t' has no member named 'secure'
- mod_authnz_ldap.c:615: error: 'authn_ldap_config_t' has no member named 'groupattr'
- mod_authnz_ldap.c:620: error: 'authn_ldap_config_t' has no member named 'groupattr'
- mod_authnz_ldap.c:622: error: 'authn_ldap_config_t' has no member named 'groupattr'
- mod_authnz_ldap.c:654: error: 'LDAP_SUCCESS' undeclared (first use in this function)
- mod_authnz_ldap.c:692: error: 'LDAP_COMPARE_TRUE' undeclared (first use in this function)
- mod_authnz_ldap.c:736: error: 'authn_ldap_config_t' has no member named 'compare_dn_on_server'
- mod_authnz_ldap.c:753: error: 'authn_ldap_config_t' has no member named 'groupattr'
- mod_authnz_ldap.c:756: error: 'authn_ldap_config_t' has no member named 'group_attrib_is_dn'
- mod_authnz_ldap.c:778: error: 'authn_ldap_config_t' has no member named 'groupattr'
- mod_authnz_ldap.c:782: error: 'authn_ldap_config_t' has no member named 'group_attrib_is_dn'
- mod_authnz_ldap.c:785: error: 'authn_ldap_config_t' has no member named 'group_attrib_is_dn'
- mod_authnz_ldap.c:864: error: 'authn_ldap_config_t' has no member named 'compare_dn_on_server'
- mod_authnz_ldap.c:875: error: 'LDAP_FILTER_ERROR' undeclared (first use in this function)
- mod_authnz_ldap.c: In function 'mod_auth_ldap_parse_url':
- mod_authnz_ldap.c:926: error: 'apr_ldap_url_desc_t' undeclared (first use in this function)
- mod_authnz_ldap.c:926: error: 'urld' undeclared (first use in this function)
- mod_authnz_ldap.c:927: error: 'apr_ldap_err_t' undeclared (first use in this function)
- mod_authnz_ldap.c:927: error: 'result' undeclared (first use in this function)
- mod_authnz_ldap.c:966: error: 'LDAP_SCOPE_ONELEVEL' undeclared (first use in this function)
- mod_authnz_ldap.c:967: error: 'LDAP_SCOPE_SUBTREE' undeclared (first use in this function)
- mod_authnz_ldap.c:988: error: 'authn_ldap_config_t' has no member named 'secure'
- mod_authnz_ldap.c:988: error: 'APR_LDAP_NONE' undeclared (first use in this function)
- mod_authnz_ldap.c:991: error: 'authn_ldap_config_t' has no member named 'secure'
- mod_authnz_ldap.c:991: error: 'APR_LDAP_SSL' undeclared (first use in this function)
- mod_authnz_ldap.c:994: error: 'authn_ldap_config_t' has no member named 'secure'
- mod_authnz_ldap.c:994: error: 'APR_LDAP_STARTTLS' undeclared (first use in this function)
- mod_authnz_ldap.c:1006: error: 'authn_ldap_config_t' has no member named 'secure'
- mod_authnz_ldap.c:1007: error: 'LDAPS_PORT' undeclared (first use in this function)
- mod_authnz_ldap.c:1011: error: 'LDAP_PORT' undeclared (first use in this function)
- mod_authnz_ldap.c:1014: error: 'authn_ldap_config_t' has no member named 'have_ldap_url'
- mod_authnz_ldap.c:1025: error: 'LDAP_SCOPE_BASE' undeclared (first use in this function)
- mod_authnz_ldap.c:1028: error: 'authn_ldap_config_t' has no member named 'secure'
- mod_authnz_ldap.c: In function 'mod_auth_ldap_set_deref':
- mod_authnz_ldap.c:1039: error: 'authn_ldap_config_t' has no member named 'deref'
- mod_authnz_ldap.c:1039: error: 'never' undeclared (first use in this function)
- mod_authnz_ldap.c:1042: error: 'authn_ldap_config_t' has no member named 'deref'
- mod_authnz_ldap.c:1042: error: 'searching' undeclared (first use in this function)
- mod_authnz_ldap.c:1045: error: 'authn_ldap_config_t' has no member named 'deref'
- mod_authnz_ldap.c:1045: error: 'finding' undeclared (first use in this function)
- mod_authnz_ldap.c:1048: error: 'authn_ldap_config_t' has no member named 'deref'
- mod_authnz_ldap.c:1048: error: 'always' undeclared (first use in this function)
- mod_authnz_ldap.c: In function 'mod_auth_ldap_add_group_attribute':
- mod_authnz_ldap.c:1062: error: 'authn_ldap_config_t' has no member named 'groupattr'
- mod_authnz_ldap.c:1065: error: 'authn_ldap_config_t' has no member named 'groupattr'
- mod_authnz_ldap.c: At top level:
- mod_authnz_ldap.c:1104: error: 'authn_ldap_config_t' has no member named 'binddn'
- mod_authnz_ldap.c:1108: error: 'authn_ldap_config_t' has no member named 'bindpw'
- mod_authnz_ldap.c:1112: error: 'authn_ldap_config_t' has no member named 'bind_authoritative'
- mod_authnz_ldap.c:1116: error: 'authn_ldap_config_t' has no member named 'user_is_dn'
- mod_authnz_ldap.c:1122: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
- mod_authnz_ldap.c:1134: error: 'authn_ldap_config_t' has no member named 'compare_dn_on_server'
- mod_authnz_ldap.c:1145: error: 'authn_ldap_config_t' has no member named 'group_attrib_is_dn'
- mod_authnz_ldap.c: In function 'ImportULDAPOptFn':
- mod_authnz_ldap.c:1259: error: 'util_ldap_connection_close' undeclared (first use in this function)
- mod_authnz_ldap.c:1259: error: 'apr_OFN_uldap_connection_close_t' undeclared (first use in this function)
- mod_authnz_ldap.c:1259: error: expected expression before ')' token
- mod_authnz_ldap.c:1259: error: invalid operands to binary * (have 'const struct command_rec *' and 'const struct command_rec *')
- mod_authnz_ldap.c:1260: error: 'util_ldap_connection_find' undeclared (first use in this function)
- mod_authnz_ldap.c:1260: error: 'apr_OFN_uldap_connection_find_t' undeclared (first use in this function)
- mod_authnz_ldap.c:1260: error: expected expression before ')' token
- mod_authnz_ldap.c:1260: error: invalid operands to binary * (have 'const struct command_rec *' and 'const struct command_rec *')
- mod_authnz_ldap.c:1261: error: 'util_ldap_cache_comparedn' undeclared (first use in this function)
- mod_authnz_ldap.c:1261: error: 'apr_OFN_uldap_cache_comparedn_t' undeclared (first use in this function)
- mod_authnz_ldap.c:1261: error: expected expression before ')' token
- mod_authnz_ldap.c:1261: error: invalid operands to binary * (have 'const struct command_rec *' and 'const struct command_rec *')
- mod_authnz_ldap.c:1262: error: 'util_ldap_cache_compare' undeclared (first use in this function)
- mod_authnz_ldap.c:1262: error: 'apr_OFN_uldap_cache_compare_t' undeclared (first use in this function)
- mod_authnz_ldap.c:1262: error: expected expression before ')' token
- mod_authnz_ldap.c:1262: error: invalid operands to binary * (have 'const struct command_rec *' and 'const struct command_rec *')
- mod_authnz_ldap.c:1263: error: 'util_ldap_cache_checkuserid' undeclared (first use in this function)
- mod_authnz_ldap.c:1263: error: 'apr_OFN_uldap_cache_checkuserid_t' undeclared (first use in this function)
- mod_authnz_ldap.c:1263: error: expected expression before ')' token
- mod_authnz_ldap.c:1263: error: invalid operands to binary * (have 'const struct command_rec *' and 'const struct command_rec *')
- mod_authnz_ldap.c:1264: error: 'util_ldap_cache_getuserdn' undeclared (first use in this function)
- mod_authnz_ldap.c:1264: error: 'apr_OFN_uldap_cache_getuserdn_t' undeclared (first use in this function)
- mod_authnz_ldap.c:1264: error: expected expression before ')' token
- mod_authnz_ldap.c:1264: error: invalid operands to binary * (have 'const struct command_rec *' and 'const struct command_rec *')
- mod_authnz_ldap.c:1265: error: 'util_ldap_ssl_supported' undeclared (first use in this function)
- mod_authnz_ldap.c:1265: error: 'apr_OFN_uldap_ssl_supported_t' undeclared (first use in this function)
- mod_authnz_ldap.c:1265: error: expected expression before ')' token
- mod_authnz_ldap.c:1265: error: invalid operands to binary * (have 'const struct command_rec *' and 'const struct command_rec *')
- make[4]: *** [mod_authnz_ldap.slo] Error 1
- make[4]: Leaving directory `/root/httpd-2.2.21/modules/aaa'
- make[3]: *** [shared-build-recursive] Error 1
- make[3]: Leaving directory `/root/httpd-2.2.21/modules/aaa'
- make[2]: *** [shared-build-recursive] Error 1
- make[2]: Leaving directory `/root/httpd-2.2.21/modules'
- make[1]: *** [shared-build-recursive] Error 1
- make[1]: Leaving directory `/root/httpd-2.2.21'
- make: *** [all-recursive] Error 1
复制代码 |
|