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

Re: Strange issue with 1.5.0-beta1

From: Dan Christian <dchristian_at_google.com>
Date: Tue, 18 Mar 2008 10:47:48 -0700

Don't downgrade! apr-0.9 is un-official, un-supported junk. Get away
from this dinosaur.

If you can't move forward now, then you never will be able to.

And now, in a slightly calmer voice...

I've been bitten by mixing apr-0 and apr-1, too. The interfaces are
different in subtle ways (e.g. the number of arguments to some
functions) that case weird errors (and weirder debugging).

You can do a run time check that you are really running with the apr
you built with. The code looks like this (put somewhere that gets run
once and early):
+ { /* Verify APR run time version. */
+ apr_version_t av;
+ apr_version(&av);
+ if (APR_MAJOR_VERSION != av.major) {
+ fprintf(stderr, "APR version mismatch %d != run-time %d\n",
+ APR_MAJOR_VERSION, av.major);
+ abort();
+ }
+ }

-Dan C

On Tue, Mar 18, 2008 at 12:52 AM, Kamesh Jayachandran <kamesh_at_collab.net> wrote:
> Hi All,
>
> I found the cause of the issue to do with apr version incompatiblity.
>
> My Apache 2.0 is built with 'apr-0.9.x'.
>
> Subversion-1.5.0-beta1 is shipping apr-1.x in its deps tar ball and
> hence 'mod_dav_svn' and 'mod_authz_svn' are built with apr-1.x which is
> not compatible with apache 2.0(which uses apr 0.9.x). This
> in-compatiblity is causing segfaults.
> <snip from INSTALL>
> | Subversion 1.0 originally shipped with APR 0.9. Even |
> | though APR 1.X has been available for many years, we |
> | continue to ship APR 0.9 so as not to accidentally break |
> | binary compatibility in Subversion upgrades. |
> </snip>
>
> Either we need to update the INSTALL file or downgrade the apr in the
> deps file.
>
> Thanks
> With regards
> Kamesh Jayachandran
>
>
>
> Kamesh Jayachandran wrote:
> > Hi All,
> >
> > I use
> > http://orac.ece.utexas.edu/pub/svn/1.5.0-beta1/pflugerville-peanut/to-tigris/subversion-deps-1.5.0-beta1.tar.bz2
> >
> > and
> > http://orac.ece.utexas.edu/pub/svn/1.5.0-beta1/pflugerville-peanut/subversion-1.5.0-beta1.tar.bz2
> >
> >
> > make davautocheck fails.
> >
> > When trying to get closer, I get errors like the following while 'svn
> > import'.
> > ../subversion/libsvn_ra_neon/util.c:711: (apr_err=2)
> > svn: Can't open file
> > '/repositories/test1.5/db/transactions/0-0.txn/props': No such file or
> > directory
> >
> > But commit seems to be successful.
> >
> > Still figuring out the cause.
> >
> > Any clues appreciated.
> >
> > With regards
> > Kamesh Jayachandran
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
> > For additional commands, e-mail: dev-help_at_subversion.tigris.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: dev-help_at_subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-03-18 18:48:02 CET

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

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