FreshPorts -- The Place For Ports If you buy from Amazon USA, please support us by using this link.
Follow us
Blog
Twitter

I am looking for an LTO tape library. Do you have one to spare?
Help with ports
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 build error while upgrading devel/apr1
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



 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 build error while upgrading devel/apr1   new
pippo2600 01-06-11 13:05 
 Re: build error while upgrading devel/apr1   new
Dan 19-06-11 15:37 
 Re: build error while upgrading devel/apr1   new
pippo2600 20-06-11 09:21 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.


Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2014 Dan Langille. All rights reserved.