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

Re: Can't build svn on OS X

From: David Mankin <mankin_at_ants.com>
Date: 2002-06-13 10:29:35 CEST

On Wed, 12 Jun 2002, Garrett Rooney wrote:

> On Wed, Jun 12, 2002 at 02:24:24PM -0700, David Mankin wrote:
> > I'm having trouble getting a clean HEAD checkout to build on OS X.
> >
> > % svn-bootstrap up
> > ...
> > Updated to revision 2173.
> > % (cd apr ; cvs up -d -P)
> > % (cd apr-util ; cvs up -d -P)
> > % configure --disable-shared --enable-maintainer-mode --with-berkeley-db=/sw
> > ...
> > % make
> > ...
> >
> > I get many many errors like this:
> > In file included from subversion/libsvn_fs/dag.c:27:
> > subversion/libsvn_fs/dag.h:136: warning: declaration of `txn_id' shadows global declaration
> > subversion/libsvn_fs/dag.h:162: warning: declaration of `txn_id' shadows global declaration
> > subversion/libsvn_fs/dag.h:187: warning: declaration of `txn_id' shadows global declaration
> >
> > However, it keeps on trucking and building.
> >
> > Then it dies like this:
> > subversion/libsvn_fs/fs.c: In function `cleanup_fs':
> > subversion/libsvn_fs/fs.c:137: structure has no member named `txn_checkpoint'
> > subversion/libsvn_fs/fs.c:142: structure has no member named `txn_checkpoint'
> > make: *** [subversion/libsvn_fs/fs.lo] Error 1
> >
> > Anyone else having any trouble? Is there some step I forgot? Some file
> > that's out of date? I have no trouble building the 0.12 tarball. I
> > haven't tried the 0.13 tarball since the bootstrap client I had working
> > seemed good enough to get HEAD so I could build from there. (Is this my
> > problem?)
>
> it's finding the wrong berkeley db headers, you've probably got a
> previous version of berkeley db somewhere on the system.
>
> -garrett

Thanks, that helped a lot. In case this helps anybody else, this is the
configure step that worked for me on OS X (not building a server
though):

./configure --enable-maintainer-mode \
            --disable-shared \
            --with-berkeley-db=/sw/include/db4:/sw/lib

This is with the current Fink CVS HEAD version, with db3-shlibs, db4,
db4-bin, and db4-shlibs packages installed. I think it's strange that
the current fink build of db4 puts its files & libraries where they are,
but fortunately the --with-berkeley-db is flexible enough to handle it.
(I had to find that in ./configure --help, rather than in INSTALL,
however.)

-David Mankin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jun 13 10:30:32 2002

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.