Bug 135505 - www/apache22 fails to install from package when compiled with ldap support
Summary: www/apache22 fails to install from package when compiled with ldap support
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-apache (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-12 14:00 UTC by Helmut Schneider
Modified: 2009-06-12 22:23 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Schneider 2009-06-12 14:00:05 UTC
I compile apache-2.2.11_[5|6] from ports WITH_LDAP WITH_AUTHNZ_LDAP WITH_PROXY using portinstall. Works fine:

# apachectl configtest
Syntax OK
# grep -ir ldap /usr/local/etc/apache22/Includes/modules-custom.conf
LoadModule authnz_ldap_module libexec/apache22/mod_authnz_ldap.so
LoadModule ldap_module libexec/apache22/mod_ldap.so
#

Now I delete the just now created package and re-install it:

# pkg_add /usr/ports/packages/All/apache-2.2.11_6.tbz
tar: build-1/apr_rules.mk: Cannot stat: No such file or directory
tar: build-1/libtool: Cannot stat: No such file or directory
tar: build-1/make_exports.awk: Cannot stat: No such file or directory
tar: build-1/make_var_export.awk: Cannot stat: No such file or directory
tar: build-1/mkdir.sh: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
#

Now I test the config again:

# apachectl configtest
httpd: Syntax error on line 16 of /usr/local/etc/apache22/httpd.conf: Syntax error on line 60 of /usr/local/etc/apache22/Includes/modules.conf: Syntax error on line 1 of /usr/local/etc/apache22/Includes/modules-custom.conf: Cannot load /usr/local/libexec/apache22/mod_authnz_ldap.so into server: /usr/local/libexec/apache22/mod_authnz_ldap.so: Undefined symbol "apr_ldap_url_parse"
#

When I re-compile apache instead of adding the package everything is fine again.

How-To-Repeat: Install apache-2.2, create the package, uninstall apache 2.2, install the package.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-06-12 14:00:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->apache

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Philip M. Gollucci freebsd_committer freebsd_triage 2009-06-12 22:23:44 UTC
State Changed
From-To: open->closed

devel/apr is the culprit, do you have WITH_APR_FROM_PORTS set in 
/etc/make.conf or on the CLI? At any rate, you should uninstall 
/var/dbb/pkg/apr* and then try this again from the start.