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

Re: Problems building subversion 1.9.3 as required for use with GNU Stow on RHEL 5.11

From: Eric Dramstad <edrams_at_gmail.com>
Date: Tue, 15 Mar 2016 09:07:38 -0400

On Mon, Mar 14, 2016 at 8:08 PM, Daniel Shahaf <d.s_at_daniel.shahaf.name>
wrote:

> Try --disable-shared --enable-static without --enable-all-static.
>

Your suggestion to use --disable-shared --enable-static worked.
Thanks for that!

I mentioned that a previous attempt to configure with --disable-shared
--enable-all-static didn't work. That build failed with a long list
of undefined references to OpenSSL symbols. I realized that I have
both the 32- and 64-bit versions of OpenSSL installed. When I changed
the serf build to point to the location of 64-bit OpenSSL, the
statically-linked build worked.

In case someone (or more likely me) needs to do something similar in
the future, here's the entire build procedure that worked:

apr 1.3.8:

    tar xvf subversion-deps-1.6.11.tar.bz2
    pushd subversion-1.6.11/apr
    ./configure --enable-layout=GNU
    make
    mkdir -p /usr/local/packages/apr-1.3.8
    make install prefix=/usr/local/packages/apr-1.3.8
    stow -t /usr/local -d /usr/local/packages apr-1.3.8
    popd

apr-util 1.3.9:

    pushd subversion-1.6.11/apr-util
    ./configure --with-apr=/usr/local --enable-layout=GNU
    make
    mkdir -p /usr/local/packages/apr-util-1.3.9
    make install prefix=/usr/local/packages/apr-util-1.3.9
    stow -t /usr/local -d /usr/local/packages apr-util-1.3.9
    popd

serf 1.3.8:

    tar xvf serf-1.3.8.tar.bz2
    pushd serf-1.3.8
    scons APR=/usr/local APU=/usr/local OPENSSL=/lib64 PREFIX=/usr/local
    mkdir -p /usr/local/packages/serf-1.3.8
    scons install PREFIX=/usr/local/packages/serf-1.3.8
    stow -t /usr/local -d /usr/local/packages serf-1.3.8
    popd

subversion 1.9.3:

    tar xvf subversion-1.9.3.tar.bz2
    unzip sqlite-amalgamation-3071501.zip
    mv sqlite-amalgamation-3071501 subversion-1.9.3/sqlite-amalgamation
    pushd subversion-1.9.3
    ./configure --with-apr=/usr/local\
                --with-apr-util=/usr/local\
                --with-serf=/usr/local\
                --prefix=/usr/local\
                --disable-shared\
                --enable-static
    make
    mkdir -p /usr/local/packages/subversion-1.9.3
    make install prefix=/usr/local/packages/subversion-1.9.3
    stow -t /usr/local -d /usr/local/packages subversion-1.9.3
    popd

Thanks again,
Eric
Received on 2016-03-15 14:08:25 CET

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.