Hi all, Wonder if someone has had similar problem compiling apache 2.2.15 source on Solaris 10.
/usr/local/apache2/build/libtool --silent --mode=link gcc -g -O2 -L/usr/local/lib -R/usr/local/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -o mod_authz_owner.la -rpath /usr/local/apache2/modules -module -avoid-version mod_authz_owner.lo /usr/local/apache2/build/libtool --silent --mode=compile gcc -g -O2 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I/install/software/httpd-2.2.15/srclib/pcre -I. -I/install/software/httpd-2.2.15/os/unix -I/install/software/httpd-2.2.15/server/mpm/worker -I/install/software/httpd-2.2.15/modules/http -I/install/software/httpd-2.2.15/modules/filters -I/install/software/httpd-2.2.15/modules/proxy -I/install/software/httpd-2.2.15/include -I/install/software/httpd-2.2.15/modules/generators -I/install/software/httpd-2.2.15/modules/mappers -I/install/software/httpd-2.2.15/modules/database -I/usr/local/apache2/include -I/usr/local/include -I/install/software/httpd-2.2.15/server -I/install/software/httpd-2.2.15/modules/proxy/../generators -I/usr/local/ssl/include -I/install/software/httpd-2.2.15/modules/ssl -I/install/software/httpd-2.2.15/modules/dav/main -prefer-pic -c mod_authnz_ldap.c && touch mod_authnz_ldap.slo mod_authnz_ldap.c:41:2: #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: syntax error before "deref_options" mod_authnz_ldap.c:63: warning: no semicolon at end of struct or union mod_authnz_ldap.c:79: error: syntax error before '}' token mod_authnz_ldap.c:79: warning: data definition has no type or storage class mod_authnz_ldap.c:95: error: syntax error before '*' token mod_authnz_ldap.c:95: warning: data definition has no type or storage class mod_authnz_ldap.c:96: error: syntax error before '*' token mod_authnz_ldap.c:96: warning: data definition has no type or storage class mod_authnz_ldap.c:97: error: syntax error before '*' token mod_authnz_ldap.c:97: warning: data definition has no type or storage class mod_authnz_ldap.c:98: error: syntax error before '*' token mod_authnz_ldap.c:98: warning: data definition has no type or storage class mod_authnz_ldap.c:99: error: syntax error before '*' token mod_authnz_ldap.c:99: warning: data definition has no type or storage class mod_authnz_ldap.c:100: error: syntax error before '*' token mod_authnz_ldap.c:100: warning: data definition has no type or storage class mod_authnz_ldap.c:101: error: syntax error before '*' token mod_authnz_ldap.c:101: warning: data definition has no type or storage class mod_authnz_ldap.c:180: error: syntax error before "authn_ldap_config_t" mod_authnz_ldap.c: In function `authn_ldap_build_filter': mod_authnz_ldap.c:189: error: `sent_user' undeclared (first use in this function) mod_authnz_ldap.c:189: error: (Each undeclared identifier is reported only once mod_authnz_ldap.c:189: error: for each function it appears in.) mod_authnz_ldap.c:190: error: `r' undeclared (first use in this function) mod_authnz_ldap.c:195: error: `sent_filter' undeclared (first use in this function) mod_authnz_ldap.c:199: error: `sec' undeclared (first use in this function) mod_authnz_ldap.c:220: error: `filtbuf' undeclared (first use in this function) mod_authnz_ldap.c: In function `create_authnz_ldap_dir_config': mod_authnz_ldap.c:280: error: `sec' undeclared (first use in this function) mod_authnz_ldap.c:281: error: syntax error before ')' token mod_authnz_ldap.c:299: error: `always' undeclared (first use in this function) mod_authnz_ldap.c: In function `authnz_ldap_cleanup_connection_close': mod_authnz_ldap.c:318: error: `util_ldap_connection_t' undeclared (first use in this function) mod_authnz_ldap.c:318: error: `ldc' undeclared (first use in this function) mod_authnz_ldap.c:319: error: called object is not a function mod_authnz_ldap.c: In function `authn_ldap_check_password': mod_authnz_ldap.c:340: error: `sec' undeclared (first use in this function) mod_authnz_ldap.c:341: error: syntax error before ')' token mod_authnz_ldap.c:343: error: `util_ldap_connection_t' undeclared (first use in this function) mod_authnz_ldap.c:343: error: `ldc' undeclared (first use in this function) mod_authnz_ldap.c:371: error: called object is not a function mod_authnz_ldap.c:386: error: called object is not a function mod_authnz_ldap.c:393: error: called object is not a function mod_authnz_ldap.c:402: error: called object is not a function mod_authnz_ldap.c:403: error: called object is not a function mod_authnz_ldap.c:406: error: `LDAP_SERVER_DOWN' undeclared (first use in this function) mod_authnz_ldap.c:413: error: `LDAP_SUCCESS' undeclared (first use in this function) mod_authnz_ldap.c:427: error: `LDAP_NO_SUCH_OBJECT' undeclared (first use in this function) mod_authnz_ldap.c:431: error: `LDAP_INAPPROPRIATE_AUTH' undeclared (first use in this function) mod_authnz_ldap.c:432: error: `LDAP_INVALID_CREDENTIALS' undeclared (first use in this function) mod_authnz_ldap.c: In function `authz_ldap_check_user_access': mod_authnz_ldap.c:511: error: `sec' undeclared (first use in this function) mod_authnz_ldap.c:512: error: syntax error before ')' token mod_authnz_ldap.c:514: error: `util_ldap_connection_t' undeclared (first use in this function) mod_authnz_ldap.c:514: error: `ldc' undeclared (first use in this function) mod_authnz_ldap.c:566: error: called object is not a function mod_authnz_ldap.c:617: error: called object is not a function mod_authnz_ldap.c:620: error: `LDAP_SUCCESS' undeclared (first use in this function) mod_authnz_ldap.c:656: error: called object is not a function mod_authnz_ldap.c:658: error: `LDAP_COMPARE_TRUE' undeclared (first use in this function) mod_authnz_ldap.c:676: error: called object is not a function mod_authnz_ldap.c:702: error: called object is not a function mod_authnz_ldap.c:751: error: called object is not a function mod_authnz_ldap.c:785: error: called object is not a function mod_authnz_ldap.c:822: error: called object is not a function mod_authnz_ldap.c:830: error: called object is not a function mod_authnz_ldap.c:841: 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:892: error: `apr_ldap_url_desc_t' undeclared (first use in this function) mod_authnz_ldap.c:892: error: `urld' undeclared (first use in this function) mod_authnz_ldap.c:893: error: `apr_ldap_err_t' undeclared (first use in this function) mod_authnz_ldap.c:893: error: `result' undeclared (first use in this function) mod_authnz_ldap.c:895: error: `sec' undeclared (first use in this function) mod_authnz_ldap.c:932: error: `LDAP_SCOPE_ONELEVEL' undeclared (first use in this function) mod_authnz_ldap.c:933: error: `LDAP_SCOPE_SUBTREE' undeclared (first use in this function) mod_authnz_ldap.c:954: error: `APR_LDAP_NONE' undeclared (first use in this function) mod_authnz_ldap.c:957: error: `APR_LDAP_SSL' undeclared (first use in this function) mod_authnz_ldap.c:960: error: `APR_LDAP_STARTTLS' undeclared (first use in this function) mod_authnz_ldap.c:973: error: `LDAPS_PORT' undeclared (first use in this function) mod_authnz_ldap.c:977: error: `LDAP_PORT' undeclared (first use in this function) mod_authnz_ldap.c:991: error: `LDAP_SCOPE_BASE' undeclared (first use in this function) mod_authnz_ldap.c: In function `mod_auth_ldap_set_deref': mod_authnz_ldap.c:1002: error: `sec' undeclared (first use in this function) mod_authnz_ldap.c:1005: error: `never' undeclared (first use in this function) mod_authnz_ldap.c:1008: error: `searching' undeclared (first use in this function) mod_authnz_ldap.c:1011: error: `finding' undeclared (first use in this function) mod_authnz_ldap.c:1014: error: `always' undeclared (first use in this function) mod_authnz_ldap.c: In function `mod_auth_ldap_add_group_attribute': mod_authnz_ldap.c:1026: error: `sec' undeclared (first use in this function) mod_authnz_ldap.c: At top level: mod_authnz_ldap.c:1070: error: syntax error before ')' token mod_authnz_ldap.c:1070: error: initializer element is not constant mod_authnz_ldap.c:1070: error: (near initialization for `authnz_ldap_cmds[1].cmd_data') mod_authnz_ldap.c:1070: error: initializer element is not constant mod_authnz_ldap.c:1070: error: (near initialization for `authnz_ldap_cmds[1]') mod_authnz_ldap.c:1074: error: initializer element is not constant mod_authnz_ldap.c:1074: error: (near initialization for `authnz_ldap_cmds[2].func') mod_authnz_ldap.c:1074: error: syntax error before ')' token mod_authnz_ldap.c:1074: error: initializer element is not constant mod_authnz_ldap.c:1074: error: (near initialization for `authnz_ldap_cmds[2].cmd_data') mod_authnz_ldap.c:1074: error: initializer element is not constant mod_authnz_ldap.c:1074: error: (near initialization for `authnz_ldap_cmds[2]') mod_authnz_ldap.c:1078: error: initializer element is not constant mod_authnz_ldap.c:1078: error: (near initialization for `authnz_ldap_cmds[3].func') mod_authnz_ldap.c:1078: error: syntax error before ')' token mod_authnz_ldap.c:1078: error: initializer element is not constant mod_authnz_ldap.c:1078: error: (near initialization for `authnz_ldap_cmds[3].cmd_data') mod_authnz_ldap.c:1078: error: initializer element is not constant mod_authnz_ldap.c:1078: error: (near initialization for `authnz_ldap_cmds[3]') mod_authnz_ldap.c:1082: error: initializer element is not constant mod_authnz_ldap.c:1082: error: (near initialization for `authnz_ldap_cmds[4].func') mod_authnz_ldap.c:1082: error: syntax error before ')' token mod_authnz_ldap.c:1082: error: initializer element is not constant mod_authnz_ldap.c:1082: error: (near initialization for `authnz_ldap_cmds[4].cmd_data') mod_authnz_ldap.c:1082: error: initializer element is not constant mod_authnz_ldap.c:1082: error: (near initialization for `authnz_ldap_cmds[4]') mod_authnz_ldap.c:1088: error: initializer element is not constant mod_authnz_ldap.c:1088: error: (near initialization for `authnz_ldap_cmds[5].func') mod_authnz_ldap.c:1088: error: syntax error before ')' token mod_authnz_ldap.c:1088: error: initializer element is not constant mod_authnz_ldap.c:1088: error: (near initialization for `authnz_ldap_cmds[5].cmd_data') mod_authnz_ldap.c:1088: error: initializer element is not constant mod_authnz_ldap.c:1088: error: (near initialization for `authnz_ldap_cmds[5]') mod_authnz_ldap.c:1095: error: initializer element is not constant mod_authnz_ldap.c:1095: error: (near initialization for `authnz_ldap_cmds[6].func') mod_authnz_ldap.c:1095: error: syntax error before ')' token mod_authnz_ldap.c:1095: error: initializer element is not constant mod_authnz_ldap.c:1095: error: (near initialization for `authnz_ldap_cmds[6].cmd_data') mod_authnz_ldap.c:1095: error: initializer element is not constant mod_authnz_ldap.c:1095: error: (near initialization for `authnz_ldap_cmds[6]') mod_authnz_ldap.c:1100: error: initializer element is not constant mod_authnz_ldap.c:1100: error: (near initialization for `authnz_ldap_cmds[7].func') mod_authnz_ldap.c:1100: error: syntax error before ')' token mod_authnz_ldap.c:1100: error: initializer element is not constant mod_authnz_ldap.c:1100: error: (near initialization for `authnz_ldap_cmds[7].cmd_data') mod_authnz_ldap.c:1100: error: initializer element is not constant mod_authnz_ldap.c:1100: error: (near initialization for `authnz_ldap_cmds[7]') mod_authnz_ldap.c:1107: error: initializer element is not constant mod_authnz_ldap.c:1107: error: (near initialization for `authnz_ldap_cmds[8].func') mod_authnz_ldap.c:1107: error: initializer element is not constant mod_authnz_ldap.c:1107: error: (near initialization for `authnz_ldap_cmds[8]') mod_authnz_ldap.c:1111: error: initializer element is not constant mod_authnz_ldap.c:1111: error: (near initialization for `authnz_ldap_cmds[9].func') mod_authnz_ldap.c:1111: error: syntax error before ')' token mod_authnz_ldap.c:1111: error: initializer element is not constant mod_authnz_ldap.c:1111: error: (near initialization for `authnz_ldap_cmds[9].cmd_data') mod_authnz_ldap.c:1111: error: initializer element is not constant mod_authnz_ldap.c:1111: error: (near initialization for `authnz_ldap_cmds[9]') mod_authnz_ldap.c:1117: error: initializer element is not constant mod_authnz_ldap.c:1117: error: (near initialization for `authnz_ldap_cmds[10].func') mod_authnz_ldap.c:1117: error: initializer element is not constant mod_authnz_ldap.c:1117: error: (near initialization for `authnz_ldap_cmds[10]') mod_authnz_ldap.c:1128: error: initializer element is not constant mod_authnz_ldap.c:1128: error: (near initialization for `authnz_ldap_cmds[11].func') mod_authnz_ldap.c:1128: error: initializer element is not constant mod_authnz_ldap.c:1128: error: (near initialization for `authnz_ldap_cmds[11]') mod_authnz_ldap.c:1132: error: initializer element is not constant mod_authnz_ldap.c:1132: error: (near initialization for `authnz_ldap_cmds[12]') mod_authnz_ldap.c: In function `ImportULDAPOptFn': mod_authnz_ldap.c:1225: error: `apr_OFN_uldap_connection_close_t' undeclared (first use in this function) mod_authnz_ldap.c:1225: error: syntax error before ')' token mod_authnz_ldap.c:1226: error: `apr_OFN_uldap_connection_find_t' undeclared (first use in this function) mod_authnz_ldap.c:1226: error: syntax error before ')' token mod_authnz_ldap.c:1227: error: `apr_OFN_uldap_cache_comparedn_t' undeclared (first use in this function) mod_authnz_ldap.c:1227: error: syntax error before ')' token mod_authnz_ldap.c:1228: error: `apr_OFN_uldap_cache_compare_t' undeclared (first use in this function) mod_authnz_ldap.c:1228: error: syntax error before ')' token mod_authnz_ldap.c:1229: error: `apr_OFN_uldap_cache_checkuserid_t' undeclared (first use in this function) mod_authnz_ldap.c:1229: error: syntax error before ')' token mod_authnz_ldap.c:1230: error: `apr_OFN_uldap_cache_getuserdn_t' undeclared (first use in this function) mod_authnz_ldap.c:1230: error: syntax error before ')' token mod_authnz_ldap.c:1231: error: `apr_OFN_uldap_ssl_supported_t' undeclared (first use in this function) mod_authnz_ldap.c:1231: error: syntax error before ')' token gmake[4]: *** [mod_authnz_ldap.slo] Error 1 gmake[4]: Leaving directory `/install/software/httpd-2.2.15/modules/aaa' gmake[3]: *** [shared-build-recursive] Error 1 gmake[3]: Leaving directory `/install/software/httpd-2.2.15/modules/aaa' gmake[2]: *** [shared-build-recursive] Error 1 gmake[2]: Leaving directory `/install/software/httpd-2.2.15/modules' gmake[1]: *** [shared-build-recursive] Error 1 gmake[1]: Leaving directory `/install/software/httpd-2.2.15' gmake: *** [all-recursive] Error 1 and yes I have --with-ldap included in my configure command: # ./configure --prefix=/usr/local/apache2 --with-mpm=worker --disable-cgid --enable-info --enable-proxy --enable-proxy-connect --enable-proxy-ftp --enable-proxy-http --enable-proxy-balancer --enable-rewrite --enable-headers --enable-cache --enable-mem-cache --enable-disk-cache --enable-expires --enable-mods-shared=all --enable-ssl=shared --with-ssl=/usr/local/ssl --with-ldap --enable-ldap --enable-authnz-ldap Thanks, Igor