Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#11794 closed defect (invalid)

install apache2 openldap fails with compilation errors in mod_authnz_ldap.c

Reported by: dpatterson@… Owned by: macports-tickets@…
Priority: High Milestone:
Component: ports Version:
Keywords: Cc: markd@…
Port:

Description

Attempting to install apache2 +openldap results in the following:

--->  Fetching cyrus-sasl2
--->  Attempting to fetch cyrus-sasl-2.1.21.tar.gz from http://ftp.andrew.cmu.edu/pub/cyrus-mail/
--->  Verifying checksum(s) for cyrus-sasl2
[[ snip ]]
--->  Building apache2 with target all
Error: Target com.apple.build returned: shell command " cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_www_apache2/work/httpd-2.2.4" && make all " returned error 2
Command output: mod_authnz_ldap.c: In function 'mod_auth_ldap_add_group_attribute':
mod_authnz_ldap.c:1007: error: 'sec' undeclared (first use in this function)
mod_authnz_ldap.c: At top level:
mod_authnz_ldap.c:1051: error: parse error before ')' token
mod_authnz_ldap.c:1055: error: parse error before ')' token
mod_authnz_ldap.c:1059: error: parse error before ')' token
mod_authnz_ldap.c:1065: error: parse error before ')' token
mod_authnz_ldap.c:1072: error: parse error before ')' token
mod_authnz_ldap.c:1077: error: parse error before ')' token
mod_authnz_ldap.c:1088: error: parse error before ')' token
mod_authnz_ldap.c: In function 'ImportULDAPOptFn':
mod_authnz_ldap.c:1202: error: 'apr_OFN_uldap_connection_close_t' undeclared (first use in this function)
mod_authnz_ldap.c:1202: error: parse error before ')' token
mod_authnz_ldap.c:1203: error: 'apr_OFN_uldap_connection_find_t' undeclared (first use in this function)
mod_authnz_ldap.c:1203: error: parse error before ')' token
mod_authnz_ldap.c:1204: error: 'apr_OFN_uldap_cache_comparedn_t' undeclared (first use in this function)
mod_authnz_ldap.c:1204: error: parse error before ')' token
mod_authnz_ldap.c:1205: error: 'apr_OFN_uldap_cache_compare_t' undeclared (first use in this function)
mod_authnz_ldap.c:1205: error: parse error before ')' token
mod_authnz_ldap.c:1206: error: 'apr_OFN_uldap_cache_checkuserid_t' undeclared (first use in this function)
mod_authnz_ldap.c:1206: error: parse error before ')' token
mod_authnz_ldap.c:1207: error: 'apr_OFN_uldap_cache_getuserdn_t' undeclared (first use in this function)
mod_authnz_ldap.c:1207: error: parse error before ')' token
mod_authnz_ldap.c:1208: error: 'apr_OFN_uldap_ssl_supported_t' undeclared (first use in this function)
mod_authnz_ldap.c:1208: error: parse error before ')' token
make[4]: *** [mod_authnz_ldap.slo] Error 1
make[3]: *** [shared-build-recursive] Error 1
make[2]: *** [shared-build-recursive] Error 1
make[1]: *** [shared-build-recursive] Error 1
make: *** [all-recursive] Error 1

Error: Status 1 encountered during processing.

Change History (6)

comment:1 Changed 17 years ago by pipping@…

Milestone: Port Bugs

comment:2 Changed 17 years ago by markd@…

Cc: markd@… added

Did you install apr-util using the +openldap variant? That is necessary to build apache2 with openldap. It works fine for me.

comment:3 Changed 17 years ago by dpatterson@…

Thanks. That did the trick.

Seems like maybe apache2 +openldap should depend on apr-util +openldap?

Thanks again.

Now, if I can just get the Apache config set up to work with OS X's LDAP groups...

comment:4 Changed 17 years ago by markd@…

Resolution: invalid
Status: newclosed

MacPorts just doesn't have a way to depend on a port and specify a variant. However, if apr-util had not already been installed it would have been installed with openldap support because when a port is installed it installs dependents using the same variants *if present*. But if the dependent is already installed it cannot uninstall and reinstall with a given variant. I'll close this and mark it invalid, for lack of a better category. We need a MacPortsisms category. :)

comment:5 Changed 17 years ago by jmpp@…

Component: baseports

comment:6 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.