You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Ben Collins-Sussman <su...@collab.net> on 2001/09/04 19:11:05 UTC
db3 build probs.
Kevin -- I'm not sure if this is related to your change.
I just did an update, rm'd config.cache, did a 'make clean'.
Then I did an autogen.sh, configure, and make. And now suddenly I can
no longer build with db/ within my tree. (This is on my FreeBSD 4.4 box.)
The build system compiles everything -- including my inline db/ tree.
But on the final link of 'svn', I get a
/usr/libexec/elf/ld: cannot find -ldb-3.3
I need a serious clue here. Shouldn't it be looking for -ldb3? or
-ldb?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: db3 build probs.
Posted by Ben Collins-Sussman <su...@collab.net>.
Kevin Pilch-Bisson <ke...@pilch-bisson.net> writes:
> > I don't have any .la files anywhere in db/dist/. I have nothing but
> > db/dist/libdb.a.
> >
> Strange, because your link line included .la files for expat, apr, and all of
> svn libs. Do you have .la file in any of those directories?
apr/.libs/libapr.la
apr/.libs/libapr.a
expat-lite/.libs/libapr.la
expat-lite/.libs/libapr.a
Yup, and the same pattern continues for all the svn libs too. But not
a single .la anywhere in my inline db/ tree.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: db3 build probs.
Posted by Kevin Pilch-Bisson <ke...@pilch-bisson.net>.
On Tue, Sep 04, 2001 at 03:11:19PM -0500, Ben Collins-Sussman wrote:
> Kevin Pilch-Bisson <ke...@pilch-bisson.net> writes:
>
>
> > Index: ac-helpers/berkeley-db.m4
> > ===================================================================
> > --- ac-helpers/SVN/text-base/berkeley-db.m4 Tue Sep 4 11:21:16 2001
> > +++ ac-helpers/berkeley-db.m4 Tue Sep 4 15:41:15 2001
> > @@ -96,9 +96,7 @@
> > # Use the include and lib files in the build dir.
> > dbdir=`cd db/dist ; pwd`
> > SVN_DB_INCLUDES="-I$dbdir"
> > - # Note that once we upgrade to libtool 1.4 this should be changed to
> > - # SVN_DB_LIBS="$dbdir/libdb-3.3.la"
> > - SVN_DB_LIBS="-L$dbdir/.libs -ldb-3.3"
> > + SVN_DB_LIBS="$dbdir/libdb-3.3.la
> > svn_lib_berkeley_db=yes
> > elif test "$status" = "skip"; then
> > svn_lib_berkeley_db=no
>
> Huh?
>
> I don't have any .la files anywhere in db/dist/. I have nothing but
> db/dist/libdb.a.
>
Strange, because your link line included .la files for expat, apr, and all of
svn libs. Do you have .la file in any of those directories?
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Pilch-Bisson http://www.pilch-bisson.net
"Historically speaking, the presences of wheels in Unix
has never precluded their reinvention." - Larry Wall
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: db3 build probs.
Posted by Ben Collins-Sussman <su...@collab.net>.
Kevin Pilch-Bisson <ke...@pilch-bisson.net> writes:
> Index: ac-helpers/berkeley-db.m4
> ===================================================================
> --- ac-helpers/SVN/text-base/berkeley-db.m4 Tue Sep 4 11:21:16 2001
> +++ ac-helpers/berkeley-db.m4 Tue Sep 4 15:41:15 2001
> @@ -96,9 +96,7 @@
> # Use the include and lib files in the build dir.
> dbdir=`cd db/dist ; pwd`
> SVN_DB_INCLUDES="-I$dbdir"
> - # Note that once we upgrade to libtool 1.4 this should be changed to
> - # SVN_DB_LIBS="$dbdir/libdb-3.3.la"
> - SVN_DB_LIBS="-L$dbdir/.libs -ldb-3.3"
> + SVN_DB_LIBS="$dbdir/libdb-3.3.la
> svn_lib_berkeley_db=yes
> elif test "$status" = "skip"; then
> svn_lib_berkeley_db=no
Huh?
I don't have any .la files anywhere in db/dist/. I have nothing but
db/dist/libdb.a.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: db3 build probs.
Posted by Kevin Pilch-Bisson <ke...@pilch-bisson.net>.
Alright, I think I have it, just wait a few minutes for my tests to finish.
On Tue, Sep 04, 2001 at 03:53:13PM -0400, Kevin Pilch-Bisson wrote:
> On Tue, Sep 04, 2001 at 02:39:31PM -0500, Ben Collins-Sussman wrote:
> > Kevin Pilch-Bisson <ke...@pilch-bisson.net> writes:
> >
> > > > /usr/libexec/elf/ld: cannot find -ldb-3.3
> > > >
> > > > I need a serious clue here. Shouldn't it be looking for -ldb3? or
> > > > -ldb?
> > >
> > > Which version of db are you using. On my linux box, with db-3.3.11
> > > in tree, the only library which gets created at compile time is
> > > libdb-3.3.la. The rest get made at install time. That's why I made
> > > that change, because I couldn't build with db in tree unless the
> > > line was specifically -L.../db/dist/.libs -ldb-3.3
> >
> > I have 3.3.11 unpacked in my tree, renamed to db/. It's been working
> > fine until your commit. :-(
> >
> > In svn/trunk/db/dist/, I have a libdb.a sitting there. I only build
> > statically (--disable-shared), so my dist/.libs/ is empty.
>
> Damn, never thought of --disable-shared.
>
> >
> > What do we need to change?
> >
>
> Not sure. I was thinking of the following patch, but it doesn't work with
> shared libs (it might get you building again in the meantime though).
>
>
> Index: ac-helpers/berkeley-db.m4
> ===================================================================
> --- ac-helpers/SVN/text-base/berkeley-db.m4 Tue Sep 4 11:21:16 2001
> +++ ac-helpers/berkeley-db.m4 Tue Sep 4 15:41:15 2001
> @@ -96,9 +96,7 @@
> # Use the include and lib files in the build dir.
> dbdir=`cd db/dist ; pwd`
> SVN_DB_INCLUDES="-I$dbdir"
> - # Note that once we upgrade to libtool 1.4 this should be changed to
> - # SVN_DB_LIBS="$dbdir/libdb-3.3.la"
> - SVN_DB_LIBS="-L$dbdir/.libs -ldb-3.3"
> + SVN_DB_LIBS="$dbdir/libdb-3.3.la
> svn_lib_berkeley_db=yes
> elif test "$status" = "skip"; then
> svn_lib_berkeley_db=no
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Kevin Pilch-Bisson http://www.pilch-bisson.net
> "Historically speaking, the presences of wheels in Unix
> has never precluded their reinvention." - Larry Wall
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Pilch-Bisson http://www.pilch-bisson.net
"Historically speaking, the presences of wheels in Unix
has never precluded their reinvention." - Larry Wall
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: db3 build probs.
Posted by Kevin Pilch-Bisson <ke...@pilch-bisson.net>.
On Tue, Sep 04, 2001 at 02:39:31PM -0500, Ben Collins-Sussman wrote:
> Kevin Pilch-Bisson <ke...@pilch-bisson.net> writes:
>
> > > /usr/libexec/elf/ld: cannot find -ldb-3.3
> > >
> > > I need a serious clue here. Shouldn't it be looking for -ldb3? or
> > > -ldb?
> >
> > Which version of db are you using. On my linux box, with db-3.3.11
> > in tree, the only library which gets created at compile time is
> > libdb-3.3.la. The rest get made at install time. That's why I made
> > that change, because I couldn't build with db in tree unless the
> > line was specifically -L.../db/dist/.libs -ldb-3.3
>
> I have 3.3.11 unpacked in my tree, renamed to db/. It's been working
> fine until your commit. :-(
>
> In svn/trunk/db/dist/, I have a libdb.a sitting there. I only build
> statically (--disable-shared), so my dist/.libs/ is empty.
Damn, never thought of --disable-shared.
>
> What do we need to change?
>
Not sure. I was thinking of the following patch, but it doesn't work with
shared libs (it might get you building again in the meantime though).
Index: ac-helpers/berkeley-db.m4
===================================================================
--- ac-helpers/SVN/text-base/berkeley-db.m4 Tue Sep 4 11:21:16 2001
+++ ac-helpers/berkeley-db.m4 Tue Sep 4 15:41:15 2001
@@ -96,9 +96,7 @@
# Use the include and lib files in the build dir.
dbdir=`cd db/dist ; pwd`
SVN_DB_INCLUDES="-I$dbdir"
- # Note that once we upgrade to libtool 1.4 this should be changed to
- # SVN_DB_LIBS="$dbdir/libdb-3.3.la"
- SVN_DB_LIBS="-L$dbdir/.libs -ldb-3.3"
+ SVN_DB_LIBS="$dbdir/libdb-3.3.la
svn_lib_berkeley_db=yes
elif test "$status" = "skip"; then
svn_lib_berkeley_db=no
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Pilch-Bisson http://www.pilch-bisson.net
"Historically speaking, the presences of wheels in Unix
has never precluded their reinvention." - Larry Wall
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: db3 build probs.
Posted by Ben Collins-Sussman <su...@collab.net>.
Kevin Pilch-Bisson <ke...@pilch-bisson.net> writes:
> > /usr/libexec/elf/ld: cannot find -ldb-3.3
> >
> > I need a serious clue here. Shouldn't it be looking for -ldb3? or
> > -ldb?
>
> Which version of db are you using. On my linux box, with db-3.3.11
> in tree, the only library which gets created at compile time is
> libdb-3.3.la. The rest get made at install time. That's why I made
> that change, because I couldn't build with db in tree unless the
> line was specifically -L.../db/dist/.libs -ldb-3.3
I have 3.3.11 unpacked in my tree, renamed to db/. It's been working
fine until your commit. :-(
In svn/trunk/db/dist/, I have a libdb.a sitting there. I only build
statically (--disable-shared), so my dist/.libs/ is empty.
What do we need to change?
Here's my link:
cd subversion/clients/cmdline && /usr/local/bin/bash /usr/home/sussman/projects/svn/trunk/libtool --silent --mode=link gcc -D_REENTRANT -D_THREAD_SAFE -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith -Wwrite-strings -Wshadow -DSVN_DEBUG -DAP_DEBUG -I./subversion/include -I. -I./apr/include -I./neon/src -I./expat-lite -I/usr/home/sussman/projects/db/dist -rpath /usr/local/lib -o svn propget-cmd.o prompt.o trace-update.o proplist-cmd.o util.o import-cmd.o diff-cmd.o revert-cmd.o diff.o propdel-cmd.o checkout-cmd.o props.o delete-cmd.o propset-cmd.o add-cmd.o commit-cmd.o help-cmd.o cleanup-cmd.o feedback.o trace-commit.o status-cmd.o main.o update-cmd.o status.o ../../../subversion/libsvn_client/libsvn_client.la ../../../subversion/libsvn_wc/libsvn_wc.la ../../../subversion/libsvn_ra/libsvn_ra.la ../../../subversion/libsvn_delta/libsvn_delta.la ../../../subversion/libsvn_subr/libsvn_subr.la /usr/home/sussman/projects/svn/trunk/apr/li!
bapr.la ../../../expat-lite/libexpat.la -lm -lcrypt/usr/libexec/elf/ld: cannot find -ldb-3.3
*** Error code 1
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: db3 build probs.
Posted by Kevin Pilch-Bisson <ke...@pilch-bisson.net>.
On Tue, Sep 04, 2001 at 02:11:05PM -0500, Ben Collins-Sussman wrote:
>
> Kevin -- I'm not sure if this is related to your change.
>
> I just did an update, rm'd config.cache, did a 'make clean'.
> Then I did an autogen.sh, configure, and make. And now suddenly I can
> no longer build with db/ within my tree. (This is on my FreeBSD 4.4 box.)
>
> The build system compiles everything -- including my inline db/ tree.
> But on the final link of 'svn', I get a
>
> /usr/libexec/elf/ld: cannot find -ldb-3.3
>
> I need a serious clue here. Shouldn't it be looking for -ldb3? or
> -ldb?
Which version of db are you using. On my linux box, with db-3.3.11 in tree,
the only library which gets created at compile time is libdb-3.3.la. The rest
get made at install time. That's why I made that change, because I couldn't
build with db in tree unless the line was specifically
-L.../db/dist/.libs -ldb-3.3
I did test it with db in tree (and without db at all) before checking it in.
Maybe sleepycat does something different on FreeBSD than on linux (but I can't
see why)?
kevin@pilchie:~ [614]$ libtool --version
ltmain.sh (GNU libtool) 1.3.5 (1.385.2.206 2000/05/27 11:12:27)
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Pilch-Bisson http://www.pilch-bisson.net
"Historically speaking, the presences of wheels in Unix
has never precluded their reinvention." - Larry Wall
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~