You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Daniel Becroft <dj...@gmail.com> on 2011/01/14 23:45:31 UTC

Compiling subversion on Ubuntu 10.10

Hi,

I've had some issues compiling Subversion and APR in my Ubuntu environment
(the below output is done from /trunk - I haven't tried a 1.6.x branch yet).

Running ./autogen.sh and ./configure work correctly, however I get the
following error when running 'make':

------ making all in apr
make[1]: Entering directory `/home/djcbecroft/dev/subversion/apr'
make[2]: Entering directory `/home/djcbecroft/dev/subversion/apr'
sed 's,^\(location=\).*$,\1installed,' < apr-1-config > apr-config.out
sed 's,^\(apr_build.*=\).*$,\1/usr/local/apr/build-1,' <
build/apr_rules.mk> build/apr_rules.out
make[2]: Leaving directory `/home/djcbecroft/dev/subversion/apr'
make[1]: Leaving directory `/home/djcbecroft/dev/subversion/apr'
------ completed all in apr
------ making all in apr-util
make[1]: Entering directory `/home/djcbecroft/dev/subversion/apr-util'
Making all in xml/expat
make[2]: Entering directory
`/home/djcbecroft/dev/subversion/apr-util/xml/expat'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/djcbecroft/dev/subversion/apr-util/xml/expat'
make[2]: Entering directory `/home/djcbecroft/dev/subversion/apr-util'
/bin/bash /libtool --silent --mode=compile gcc -g -O2 -pthread
-DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-I/home/djcbecroft/dev/subversion/apr-util/include
-I/home/djcbecroft/dev/subversion/apr-util/include/private
-I/home/djcbecroft/dev/subversion/apr/include
-I/home/djcbecroft/dev/subversion/apr-util/xml/expat/lib  -o
buckets/apr_brigade.lo -c buckets/apr_brigade.c && touch
buckets/apr_brigade.lo
/bin/bash: /libtool: No such file or directory
make[2]: *** [buckets/apr_brigade.lo] Error 127
make[2]: Leaving directory `/home/djcbecroft/dev/subversion/apr-util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/djcbecroft/dev/subversion/apr-util'
make: *** [external-all] Error 1

After investigation, it seems that the path for LIBTOOL was defined
incorrectly. I had to change apr-util/build/rules.mk:38 from:

    LIBTOOL=$(SHELL) $(top_builddir)/libtool
to
    LIBTOOL=$(SHELL) $(apr_builddir)/libtool

I'm unfamiliar with how the configure scripts work, so I'm not sure if this
is a problem with the SVN scripts, APR scripts, or my system itself. If it's
one of the first two, then I'll report it to the appropriate list. Can
anyone provide any guidance?
---
Daniel Becroft

Re: Compiling subversion on Ubuntu 10.10

Posted by Daniel Becroft <dj...@gmail.com>.
Apologies, I also had to make the same change to apr/build/apr_rules.mk:38.

---
Daniel Becroft


On Sat, Jan 15, 2011 at 8:45 AM, Daniel Becroft <dj...@gmail.com>wrote:

> Hi,
>
> I've had some issues compiling Subversion and APR in my Ubuntu environment
> (the below output is done from /trunk - I haven't tried a 1.6.x branch yet).
>
> Running ./autogen.sh and ./configure work correctly, however I get the
> following error when running 'make':
>
> ------ making all in apr
> make[1]: Entering directory `/home/djcbecroft/dev/subversion/apr'
> make[2]: Entering directory `/home/djcbecroft/dev/subversion/apr'
> sed 's,^\(location=\).*$,\1installed,' < apr-1-config > apr-config.out
> sed 's,^\(apr_build.*=\).*$,\1/usr/local/apr/build-1,' < build/
> apr_rules.mk > build/apr_rules.out
> make[2]: Leaving directory `/home/djcbecroft/dev/subversion/apr'
> make[1]: Leaving directory `/home/djcbecroft/dev/subversion/apr'
> ------ completed all in apr
> ------ making all in apr-util
> make[1]: Entering directory `/home/djcbecroft/dev/subversion/apr-util'
> Making all in xml/expat
> make[2]: Entering directory
> `/home/djcbecroft/dev/subversion/apr-util/xml/expat'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory
> `/home/djcbecroft/dev/subversion/apr-util/xml/expat'
> make[2]: Entering directory `/home/djcbecroft/dev/subversion/apr-util'
> /bin/bash /libtool --silent --mode=compile gcc -g -O2 -pthread
> -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
> -I/home/djcbecroft/dev/subversion/apr-util/include
> -I/home/djcbecroft/dev/subversion/apr-util/include/private
> -I/home/djcbecroft/dev/subversion/apr/include
> -I/home/djcbecroft/dev/subversion/apr-util/xml/expat/lib  -o
> buckets/apr_brigade.lo -c buckets/apr_brigade.c && touch
> buckets/apr_brigade.lo
> /bin/bash: /libtool: No such file or directory
> make[2]: *** [buckets/apr_brigade.lo] Error 127
> make[2]: Leaving directory `/home/djcbecroft/dev/subversion/apr-util'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/djcbecroft/dev/subversion/apr-util'
> make: *** [external-all] Error 1
>
> After investigation, it seems that the path for LIBTOOL was defined
> incorrectly. I had to change apr-util/build/rules.mk:38 from:
>
>     LIBTOOL=$(SHELL) $(top_builddir)/libtool
> to
>     LIBTOOL=$(SHELL) $(apr_builddir)/libtool
>
> I'm unfamiliar with how the configure scripts work, so I'm not sure if this
> is a problem with the SVN scripts, APR scripts, or my system itself. If it's
> one of the first two, then I'll report it to the appropriate list. Can
> anyone provide any guidance?
> ---
> Daniel Becroft
>

Re: Compiling subversion on Ubuntu 10.10

Posted by Daniel Becroft <dj...@gmail.com>.
On Mon, Jan 17, 2011 at 7:22 AM, Daniel Shahaf <d....@daniel.shahaf.name>wrote:

> Daniel Becroft wrote on Sat, Jan 15, 2011 at 08:45:31 +1000:
> > After investigation, it seems that the path for LIBTOOL was defined
> > incorrectly. I had to change apr-util/build/rules.mk:38 from:
> >
> >     LIBTOOL=$(SHELL) $(top_builddir)/libtool
> > to
> >     LIBTOOL=$(SHELL) $(apr_builddir)/libtool
> >
>
> What version is that?  My 1.4.2 already says the latter.
>

I was using the 1.3.x branch of both apr and apr-util, because that's what
the error message from the ./configure script told me to get (line 4350).

I've switched both apr and apr-util to the 1.4.x branch, re-ran ./autogen.sh
and ./configure.sh, but still get the same results (extract of apr/build/
apr_rules.mk below).

Looks like it might be something on my machine.

Cheers,
Daniel B.

# Some layouts require knowing what version we are at.
APR_MAJOR_VERSION=1
APR_DOTTED_VERSION=1.4.3

CC=gcc
RM=rm
AWK=mawk
SHELL=/bin/bash
LIBTOOL=$(SHELL) $(top_builddir)/libtool


> > I'm unfamiliar with how the configure scripts work, so I'm not sure if
> this
> > is a problem with the SVN scripts, APR scripts, or my system itself. If
> it's
> > one of the first two, then I'll report it to the appropriate list. Can
> > anyone provide any guidance?
> > ---
> > Daniel Becroft
>

Re: Compiling subversion on Ubuntu 10.10

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Daniel Becroft wrote on Sat, Jan 15, 2011 at 08:45:31 +1000:
> After investigation, it seems that the path for LIBTOOL was defined
> incorrectly. I had to change apr-util/build/rules.mk:38 from:
> 
>     LIBTOOL=$(SHELL) $(top_builddir)/libtool
> to
>     LIBTOOL=$(SHELL) $(apr_builddir)/libtool
> 

What version is that?  My 1.4.2 already says the latter.

> I'm unfamiliar with how the configure scripts work, so I'm not sure if this
> is a problem with the SVN scripts, APR scripts, or my system itself. If it's
> one of the first two, then I'll report it to the appropriate list. Can
> anyone provide any guidance?
> ---
> Daniel Becroft