Author: pippo2600
Date: 01-06-11 13:05
Port details:
devel/apr1
apr1 1.4.5.1.3.12 devel =33
Apache Portability Library
I had version 1.4.2.1.3.10 installing without problems before.
We have these two build non-default options which affect the build:
THREADS is OFF
LDAP is ON
Now, upgrading stops with following error while building apr:
...
ldap/apr_ldap_rebind.c: In function 'apr__ldap_rebind_init':
ldap/apr_ldap_rebind.c:85: error: 'apr_ldap_xref_lock' undeclared (first use in this function)
ldap/apr_ldap_rebind.c:85: error: (Each undeclared identifier is reported only once
ldap/apr_ldap_rebind.c:85: error: for each function it appears in.)
*** Error code 1
Stop in /tmp/usr/ports/devel/apr1/work/apr-util-1.3.12.
*** Error code 1
...
I filed a bug report to the developers (https://issues.apache.org/bugzilla/show_bug.cgi?id=51307)
and propose this patch which helped me without apparent problems so far:
--- apr_ldap_rebind.c 2011-06-01 15:36:20.000000000 +0200
+++ apr_ldap_rebind.c.original 2011-05-10 23:34:43.000000000 +0200
@@ -81,12 +81,11 @@
get_apd
#endif
-#if APR_HAS_THREADS
/* run after apr_thread_mutex_create cleanup */
apr_pool_cleanup_register(pool, &apr_ldap_xref_lock,
apr_ldap_pool_cleanup_set_null,
apr_pool_cleanup_null);
-
+#if APR_HAS_THREADS
if (apr_ldap_xref_lock == NULL) {
retcode = apr_thread_mutex_create(&apr_ldap_xref_lock,
APR_THREAD_MUTEX_DEFAULT, pool);
}
Enjoy and keep having fun!
Philipp
|
|