LinuxSir.cn,穿越时空的Linuxsir!

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

apache 无法编译mod_authnz_ldap模块

[复制链接]
发表于 2011-9-19 15:01:02 | 显示全部楼层 |阅读模式
系统是gentoo,已经安装了openldap,但是在编译apache时无法通过,主要是mod_authnz_ldap模块的位置无法编译了

  1. make[3]: Entering directory `/root/httpd-2.2.21/modules/aaa'
  2. 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
  3. make[4]: Entering directory `/root/httpd-2.2.21/modules/aaa'
  4. /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
  5. 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.
  6. mod_authnz_ldap.c:63: error: expected specifier-qualifier-list before 'deref_options'
  7. mod_authnz_ldap.c:95: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
  8. mod_authnz_ldap.c:96: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
  9. mod_authnz_ldap.c:97: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
  10. mod_authnz_ldap.c:98: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
  11. mod_authnz_ldap.c:99: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
  12. mod_authnz_ldap.c:100: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
  13. mod_authnz_ldap.c:101: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
  14. mod_authnz_ldap.c: In function 'create_authnz_ldap_dir_config':
  15. mod_authnz_ldap.c:313: error: 'authn_ldap_config_t' has no member named 'groupattr'
  16. mod_authnz_ldap.c:316: error: 'authn_ldap_config_t' has no member named 'have_ldap_url'
  17. mod_authnz_ldap.c:319: error: 'authn_ldap_config_t' has no member named 'binddn'
  18. mod_authnz_ldap.c:320: error: 'authn_ldap_config_t' has no member named 'bindpw'
  19. mod_authnz_ldap.c:321: error: 'authn_ldap_config_t' has no member named 'bind_authoritative'
  20. mod_authnz_ldap.c:322: error: 'authn_ldap_config_t' has no member named 'deref'
  21. mod_authnz_ldap.c:322: error: 'always' undeclared (first use in this function)
  22. mod_authnz_ldap.c:322: error: (Each undeclared identifier is reported only once
  23. mod_authnz_ldap.c:322: error: for each function it appears in.)
  24. mod_authnz_ldap.c:323: error: 'authn_ldap_config_t' has no member named 'group_attrib_is_dn'
  25. mod_authnz_ldap.c:330: error: 'authn_ldap_config_t' has no member named 'secure'
  26. mod_authnz_ldap.c:332: error: 'authn_ldap_config_t' has no member named 'user_is_dn'
  27. mod_authnz_ldap.c:333: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  28. mod_authnz_ldap.c:334: error: 'authn_ldap_config_t' has no member named 'compare_dn_on_server'
  29. mod_authnz_ldap.c: In function 'authnz_ldap_cleanup_connection_close':
  30. mod_authnz_ldap.c:341: error: 'util_ldap_connection_t' undeclared (first use in this function)
  31. mod_authnz_ldap.c:341: error: 'ldc' undeclared (first use in this function)
  32. mod_authnz_ldap.c: In function 'authn_ldap_check_password':
  33. mod_authnz_ldap.c:366: error: 'util_ldap_connection_t' undeclared (first use in this function)
  34. mod_authnz_ldap.c:366: error: 'ldc' undeclared (first use in this function)
  35. mod_authnz_ldap.c:385: error: 'authn_ldap_config_t' has no member named 'have_ldap_url'
  36. mod_authnz_ldap.c:394: error: 'authn_ldap_config_t' has no member named 'binddn'
  37. mod_authnz_ldap.c:394: error: 'authn_ldap_config_t' has no member named 'bindpw'
  38. mod_authnz_ldap.c:394: error: 'authn_ldap_config_t' has no member named 'deref'
  39. mod_authnz_ldap.c:395: error: 'authn_ldap_config_t' has no member named 'secure'
  40. mod_authnz_ldap.c:434: error: 'LDAP_SERVER_DOWN' undeclared (first use in this function)
  41. mod_authnz_ldap.c:441: error: 'LDAP_SUCCESS' undeclared (first use in this function)
  42. mod_authnz_ldap.c:442: error: 'authn_ldap_config_t' has no member named 'bind_authoritative'
  43. mod_authnz_ldap.c:455: error: 'LDAP_NO_SUCH_OBJECT' undeclared (first use in this function)
  44. mod_authnz_ldap.c:459: error: 'LDAP_INAPPROPRIATE_AUTH' undeclared (first use in this function)
  45. mod_authnz_ldap.c:460: error: 'LDAP_INVALID_CREDENTIALS' undeclared (first use in this function)
  46. mod_authnz_ldap.c:480: error: 'authn_ldap_config_t' has no member named 'user_is_dn'
  47. mod_authnz_ldap.c:498: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  48. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  49. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  50. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  51. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  52. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  53. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  54. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  55. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  56. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  57. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  58. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  59. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  60. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  61. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  62. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  63. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  64. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  65. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  66. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  67. mod_authnz_ldap.c:499: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  68. mod_authnz_ldap.c:508: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  69. mod_authnz_ldap.c:515: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  70. mod_authnz_ldap.c: In function 'authz_ldap_check_user_access':
  71. mod_authnz_ldap.c:548: error: 'util_ldap_connection_t' undeclared (first use in this function)
  72. mod_authnz_ldap.c:548: error: 'ldc' undeclared (first use in this function)
  73. mod_authnz_ldap.c:570: error: 'authn_ldap_config_t' has no member named 'have_ldap_url'
  74. mod_authnz_ldap.c:599: error: 'authn_ldap_config_t' has no member named 'binddn'
  75. mod_authnz_ldap.c:599: error: 'authn_ldap_config_t' has no member named 'bindpw'
  76. mod_authnz_ldap.c:599: error: 'authn_ldap_config_t' has no member named 'deref'
  77. mod_authnz_ldap.c:600: error: 'authn_ldap_config_t' has no member named 'secure'
  78. mod_authnz_ldap.c:615: error: 'authn_ldap_config_t' has no member named 'groupattr'
  79. mod_authnz_ldap.c:620: error: 'authn_ldap_config_t' has no member named 'groupattr'
  80. mod_authnz_ldap.c:622: error: 'authn_ldap_config_t' has no member named 'groupattr'
  81. mod_authnz_ldap.c:654: error: 'LDAP_SUCCESS' undeclared (first use in this function)
  82. mod_authnz_ldap.c:692: error: 'LDAP_COMPARE_TRUE' undeclared (first use in this function)
  83. mod_authnz_ldap.c:736: error: 'authn_ldap_config_t' has no member named 'compare_dn_on_server'
  84. mod_authnz_ldap.c:753: error: 'authn_ldap_config_t' has no member named 'groupattr'
  85. mod_authnz_ldap.c:756: error: 'authn_ldap_config_t' has no member named 'group_attrib_is_dn'
  86. mod_authnz_ldap.c:778: error: 'authn_ldap_config_t' has no member named 'groupattr'
  87. mod_authnz_ldap.c:782: error: 'authn_ldap_config_t' has no member named 'group_attrib_is_dn'
  88. mod_authnz_ldap.c:785: error: 'authn_ldap_config_t' has no member named 'group_attrib_is_dn'
  89. mod_authnz_ldap.c:864: error: 'authn_ldap_config_t' has no member named 'compare_dn_on_server'
  90. mod_authnz_ldap.c:875: error: 'LDAP_FILTER_ERROR' undeclared (first use in this function)
  91. mod_authnz_ldap.c: In function 'mod_auth_ldap_parse_url':
  92. mod_authnz_ldap.c:926: error: 'apr_ldap_url_desc_t' undeclared (first use in this function)
  93. mod_authnz_ldap.c:926: error: 'urld' undeclared (first use in this function)
  94. mod_authnz_ldap.c:927: error: 'apr_ldap_err_t' undeclared (first use in this function)
  95. mod_authnz_ldap.c:927: error: 'result' undeclared (first use in this function)
  96. mod_authnz_ldap.c:966: error: 'LDAP_SCOPE_ONELEVEL' undeclared (first use in this function)
  97. mod_authnz_ldap.c:967: error: 'LDAP_SCOPE_SUBTREE' undeclared (first use in this function)
  98. mod_authnz_ldap.c:988: error: 'authn_ldap_config_t' has no member named 'secure'
  99. mod_authnz_ldap.c:988: error: 'APR_LDAP_NONE' undeclared (first use in this function)
  100. mod_authnz_ldap.c:991: error: 'authn_ldap_config_t' has no member named 'secure'
  101. mod_authnz_ldap.c:991: error: 'APR_LDAP_SSL' undeclared (first use in this function)
  102. mod_authnz_ldap.c:994: error: 'authn_ldap_config_t' has no member named 'secure'
  103. mod_authnz_ldap.c:994: error: 'APR_LDAP_STARTTLS' undeclared (first use in this function)
  104. mod_authnz_ldap.c:1006: error: 'authn_ldap_config_t' has no member named 'secure'
  105. mod_authnz_ldap.c:1007: error: 'LDAPS_PORT' undeclared (first use in this function)
  106. mod_authnz_ldap.c:1011: error: 'LDAP_PORT' undeclared (first use in this function)
  107. mod_authnz_ldap.c:1014: error: 'authn_ldap_config_t' has no member named 'have_ldap_url'
  108. mod_authnz_ldap.c:1025: error: 'LDAP_SCOPE_BASE' undeclared (first use in this function)
  109. mod_authnz_ldap.c:1028: error: 'authn_ldap_config_t' has no member named 'secure'
  110. mod_authnz_ldap.c: In function 'mod_auth_ldap_set_deref':
  111. mod_authnz_ldap.c:1039: error: 'authn_ldap_config_t' has no member named 'deref'
  112. mod_authnz_ldap.c:1039: error: 'never' undeclared (first use in this function)
  113. mod_authnz_ldap.c:1042: error: 'authn_ldap_config_t' has no member named 'deref'
  114. mod_authnz_ldap.c:1042: error: 'searching' undeclared (first use in this function)
  115. mod_authnz_ldap.c:1045: error: 'authn_ldap_config_t' has no member named 'deref'
  116. mod_authnz_ldap.c:1045: error: 'finding' undeclared (first use in this function)
  117. mod_authnz_ldap.c:1048: error: 'authn_ldap_config_t' has no member named 'deref'
  118. mod_authnz_ldap.c:1048: error: 'always' undeclared (first use in this function)
  119. mod_authnz_ldap.c: In function 'mod_auth_ldap_add_group_attribute':
  120. mod_authnz_ldap.c:1062: error: 'authn_ldap_config_t' has no member named 'groupattr'
  121. mod_authnz_ldap.c:1065: error: 'authn_ldap_config_t' has no member named 'groupattr'
  122. mod_authnz_ldap.c: At top level:
  123. mod_authnz_ldap.c:1104: error: 'authn_ldap_config_t' has no member named 'binddn'
  124. mod_authnz_ldap.c:1108: error: 'authn_ldap_config_t' has no member named 'bindpw'
  125. mod_authnz_ldap.c:1112: error: 'authn_ldap_config_t' has no member named 'bind_authoritative'
  126. mod_authnz_ldap.c:1116: error: 'authn_ldap_config_t' has no member named 'user_is_dn'
  127. mod_authnz_ldap.c:1122: error: 'authn_ldap_config_t' has no member named 'remote_user_attribute'
  128. mod_authnz_ldap.c:1134: error: 'authn_ldap_config_t' has no member named 'compare_dn_on_server'
  129. mod_authnz_ldap.c:1145: error: 'authn_ldap_config_t' has no member named 'group_attrib_is_dn'
  130. mod_authnz_ldap.c: In function 'ImportULDAPOptFn':
  131. mod_authnz_ldap.c:1259: error: 'util_ldap_connection_close' undeclared (first use in this function)
  132. mod_authnz_ldap.c:1259: error: 'apr_OFN_uldap_connection_close_t' undeclared (first use in this function)
  133. mod_authnz_ldap.c:1259: error: expected expression before ')' token
  134. mod_authnz_ldap.c:1259: error: invalid operands to binary * (have 'const struct command_rec *' and 'const struct command_rec *')
  135. mod_authnz_ldap.c:1260: error: 'util_ldap_connection_find' undeclared (first use in this function)
  136. mod_authnz_ldap.c:1260: error: 'apr_OFN_uldap_connection_find_t' undeclared (first use in this function)
  137. mod_authnz_ldap.c:1260: error: expected expression before ')' token
  138. mod_authnz_ldap.c:1260: error: invalid operands to binary * (have 'const struct command_rec *' and 'const struct command_rec *')
  139. mod_authnz_ldap.c:1261: error: 'util_ldap_cache_comparedn' undeclared (first use in this function)
  140. mod_authnz_ldap.c:1261: error: 'apr_OFN_uldap_cache_comparedn_t' undeclared (first use in this function)
  141. mod_authnz_ldap.c:1261: error: expected expression before ')' token
  142. mod_authnz_ldap.c:1261: error: invalid operands to binary * (have 'const struct command_rec *' and 'const struct command_rec *')
  143. mod_authnz_ldap.c:1262: error: 'util_ldap_cache_compare' undeclared (first use in this function)
  144. mod_authnz_ldap.c:1262: error: 'apr_OFN_uldap_cache_compare_t' undeclared (first use in this function)
  145. mod_authnz_ldap.c:1262: error: expected expression before ')' token
  146. mod_authnz_ldap.c:1262: error: invalid operands to binary * (have 'const struct command_rec *' and 'const struct command_rec *')
  147. mod_authnz_ldap.c:1263: error: 'util_ldap_cache_checkuserid' undeclared (first use in this function)
  148. mod_authnz_ldap.c:1263: error: 'apr_OFN_uldap_cache_checkuserid_t' undeclared (first use in this function)
  149. mod_authnz_ldap.c:1263: error: expected expression before ')' token
  150. mod_authnz_ldap.c:1263: error: invalid operands to binary * (have 'const struct command_rec *' and 'const struct command_rec *')
  151. mod_authnz_ldap.c:1264: error: 'util_ldap_cache_getuserdn' undeclared (first use in this function)
  152. mod_authnz_ldap.c:1264: error: 'apr_OFN_uldap_cache_getuserdn_t' undeclared (first use in this function)
  153. mod_authnz_ldap.c:1264: error: expected expression before ')' token
  154. mod_authnz_ldap.c:1264: error: invalid operands to binary * (have 'const struct command_rec *' and 'const struct command_rec *')
  155. mod_authnz_ldap.c:1265: error: 'util_ldap_ssl_supported' undeclared (first use in this function)
  156. mod_authnz_ldap.c:1265: error: 'apr_OFN_uldap_ssl_supported_t' undeclared (first use in this function)
  157. mod_authnz_ldap.c:1265: error: expected expression before ')' token
  158. mod_authnz_ldap.c:1265: error: invalid operands to binary * (have 'const struct command_rec *' and 'const struct command_rec *')
  159. make[4]: *** [mod_authnz_ldap.slo] Error 1
  160. make[4]: Leaving directory `/root/httpd-2.2.21/modules/aaa'
  161. make[3]: *** [shared-build-recursive] Error 1
  162. make[3]: Leaving directory `/root/httpd-2.2.21/modules/aaa'
  163. make[2]: *** [shared-build-recursive] Error 1
  164. make[2]: Leaving directory `/root/httpd-2.2.21/modules'
  165. make[1]: *** [shared-build-recursive] Error 1
  166. make[1]: Leaving directory `/root/httpd-2.2.21'
  167. make: *** [all-recursive] Error 1
复制代码
 楼主| 发表于 2011-9-19 15:02:37 | 显示全部楼层
说是要使用ldap来运行?请问怎么个运行法?
回复 支持 反对

使用道具 举报

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

本版积分规则

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