Building Subversion 1.4.4

From WhyNotWiki

Jump to: navigation, search

Contents

[edit]

http://svn.collab.net/repos/svn/tags/1.4.0/CHANGES

http://subversion.tigris.org/svn_1.4_releasenotes.html

[edit]

wget http://subversion.tigris.org/downloads/subversion-1.4.4.tar.gz

[edit] Couldn't find apr-util

configure: WARNING: APRUTIL not found
The Apache Portable Runtime Utility (APRUTIL) library cannot be found.
Either install APRUTIL on this system and supply the appropriate
--with-apr-util option

or

get it with SVN and put it in a subdirectory of this source:

   svn co \
    http://svn.apache.org/repos/asf/apr/apr-util/branches/0.9.x \
    apr-util

Run that right here in the top level of the Subversion tree,
then run autogen.sh again.

configure: error: no suitable APRUTIL found

Not successful:

svn co     http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x     apr
sudo yum install autoconf
sudo yum install libtool
autogen.sh
./configure

svn co http://svn.apache.org/repos/asf/apr/apr-util/branches/0.9.x/ apr-util

Helpful:

wget http://subversion.tigris.org/downloads/subversion-deps-1.4.4.tar.gz
tar -xzf subversion-deps-1.4.4.tar.gz

[edit] Couldn't find Berkley DB

wget http://download.oracle.com/berkeley-db/db-4.5.20.NC.tar.gz
cd build_unix/
../dist/configure
...

cd subversion-1.4.4
./configure --with-berkeley-db=/usr/local/BerkeleyDB.4.5/

Still couldn't find it... Appeared to not even be checking for 4.5; did look for 4.4 though.

wget http://download.oracle.com/berkeley-db/db-4.4.20.NC.tar.gz
...
./configure --with-berkeley-db=/usr/local/BerkeleyDB.4.4/

Still no luck. Eventually gave up and just settled for using FS for now...

[edit] SSL not working

configure: Configured to build neon 0.25.5:

  Install prefix:  /usr/local
  Compiler:        gcc
  XML Parser:      expat in /home/tyler/subversion-1.4.4/apr-util/xml/expat/lib
  SSL library:     SSL support is not enabled
  zlib support:    zlib support enabled, using -lz
  Build libraries: Shared=no, Static=yes
> svn checkout https://...

Got a nice SSL is not supported error.

./configure --with-ssl

configure: Configured to build neon 0.25.5:

  Install prefix:  /usr/local
  Compiler:        gcc
  XML Parser:      expat in /home/tyler/subversion-1.4.4/apr-util/xml/expat/lib
  SSL library:     SSL support enabled, using OpenSSL (0.9.7 or later)
  zlib support:    zlib support enabled, using -lz
  Build libraries: Shared=no, Static=yes
> svn checkout https://...

Got a nice error ~symbol lookup error: undefined symbol: SSL_shutdown.

./configure --with-ssl --enable-shared

configure: Configured to build neon 0.25.5:

  Install prefix:  /usr/local
  Compiler:        gcc
  XML Parser:      expat in /home/tyler/subversion-1.4.4/apr-util/xml/expat/lib
  SSL library:     SSL support enabled, using OpenSSL (0.9.7 or later)
  zlib support:    zlib support enabled, using -lz
  Build libraries: Shared=yes, Static=yes

At first, it had some error about linking libneon.

...
/usr/bin/install -c -d /usr/local/lib
/bin/sh ./libtool --mode=install /usr/bin/install -c src/libneon.la \
        /usr/local/lib/libneon.la
libtool: install: warning: relinking `src/libneon.la'
(cd /home/tyler/subversion-1.4.4/neon/src; /bin/sh ..//libtool  --quiet --mode=relink gcc -no-undefined -rpath /usr/local/lib -version-info 25:5:0 -export-symbols-regex "^ne_[^_]" -o libneon.la ne_request.lo ne_session.lo ne_basic.lo ne_string.lo ne_uri.lo ne_dates.lo ne_alloc.lo ne_md5.lo ne_utils.lo ne_socket.lo ne_auth.lo ne_redirect.lo ne_compress.lo ne_207.lo ne_xml.lo ne_props.lo ne_locks.lo ne_xmlreq.lo ne_acl.lo ne_openssl.lo -lz -L/usr/kerberos/lib -lssl -lcrypto -ldl -lz -lgssapi_krb5 -lkrb5 -lk5crypto -lkrb5support -lcom_err -lresolv /home/tyler/subversion-1.4.4/apr-util/xml/expat/lib/libexpat.la )
/usr/bin/nm: 'a.out': No such file
mv: cannot stat `libneon.so.25.0.5': No such file or directory
libtool: install: error: relink `src/libneon.la' with the above command before installing it
make[1]: *** [install-lib] Error 1
make[1]: Leaving directory `/home/tyler/subversion-1.4.4/neon'
make: *** [external-install] Error 1
...

So I tried make clean and repeating the process.

This time, it worked.

[edit] svnadmin help broke

> svnadmin help
svnadmin: Mismatched FS module version for 'bdb': found 1.4.4, expected 1.3.2

http://svn.haxx.se/users/archive-2006-11/0976.shtml Subversion Users: svnadmin: Mismatched FS module version for 'bdb ...


I verified the presence of these old libraries on my system (as Martin Marconcini said) and I moved them all (as Erik Huelsmann suggested) and now... it works fine! :)

Maybe in the stable Debian distribution there are subversion libraries pre-installed??


Yes, there are. And because you didn't compile with the same options, you didn't get the same libraries, so some are replaced and others aren't. Then, subversion tries to dynamically load some libraries which don't match the required version signature.

Not directly helpful, but got me going in the right direction...

> sudo yum remove subversion
> svnadmin help
general usage: svnadmin SUBCOMMAND REPOS_PATH  [ARGS & OPTIONS ...]
Personal tools