[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Error building subversion-1.7.4 mod_dav_svn.so with my own apr and apr-utils

From: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 4 Apr 2012 14:58:44 +0200

On Tue, Apr 03, 2012 at 09:17:41AM -0700, Joel Eidsath wrote:
> I would love some help on this one. I have included my ldd info, as
> well as my configure lines for apr, apr-util, httpd, and subversion.
> Let me know if you have a guess about what is going wrong.
>
> Also, please include me on replies as I am not a member of the list.
>
> Joel Eidsath
> jeidsath_at_gmail.com
>
> I am getting the following error when trying to start apache after
> building mod_dav_svn.so:
>
> ~/httpd/bin/apachectl restart --
>
> httpd: Syntax error on line 54 of
> /ngs/app/istsvnd/httpd-2.2.21/conf/httpd.conf: Cannot load /ngs/ap
> p/istsvnd/httpd/modules/mod_dav_svn.so into server:
> /ngs/app/istsvnd/subversion-1.7.4/lib/libsvn_sub
> r-1.so.0: undefined symbol: apr_atomic_xchgptr
>
> Everything looks good on mod_dav_svn.so with ldd (notice libaprutil
> and libapr lines, also notice the versions):

The ldd output does indeed look correct. But it looks as if dlopen()
regardless fails to locate the correct APR libraries when trying to
load mod_dav_svn.so into the running httpd process.
It probably finds another APR in /usr/lib or elsewhere and uses that.

Try setting LD_LIBRARY_PATH in httpd's environment like so:
  LD_LIBRARY_PATH=/ngs/app/istsvnd/apr-1.4.6/lib:/ngs/app/istsvnd/apr-util-1.4.1/lib
Received on 2012-04-04 14:59:22 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.