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

Re: Building static AIX client

From: Justin Johnson <justinjohnson_at_gmail.com>
Date: 2006-07-31 15:48:46 CEST

On 7/14/06, David Edelsohn <dje@watson.ibm.com> wrote:
> >>>>> Daniel Berlin writes:
>
> Dan> Justin Johnson wrote:
> >>> 3) Run the attached bld-svn-client-static.sh script to build the
> >>> Subversion client.
>
> Dan> I'm pretty sure David Edelsohn either got subversion to build statically
> Dan> on AIX, or determined it was impossible.
>
> Dan> One of the two.
>
> Dan> David?
>
> Dan> (This guy is trying to build SVN with --enable-shared=no, and it doesn't
> Dan> work, I think I remember you tried to do the same thing).
>
> SVN on AIX definitely needs shared libraries disabled. I have
> been able to build all SVN releases so far with configure options:
>
> --with-berkely-db=no --disable-shared
>
> Berkeley DB was causing problems and I do not need to run an SVN server,
> so I just disabled that part.
>
> Also, it is very important to use Bash, not the default AIX shell,
> to run configure, if you want it to complete in your lifetime.

Just for the record, here is how I successfully compiled a static
version of the AIX Subversion client.

#!/bin/ksh93

## Define variables
src_dir=/svn/downloads
build_dir=/svn/build
prefix=/opt/svn/svn-1.3.2

## Create initial directories
mkdir -p $build_dir

cat <<EOF > /tmp/crypt.exp
#!
__crypt_r
__setkey_r
__encrypt_r
EOF

## Build Subversion
cd $build_dir
rm -rf $build_dir/subversion-1.3.2
gunzip $src_dir/subversion-1.3.2.tar.gz
tar xvf $src_dir/subversion-1.3.2.tar
cd $build_dir/subversion-1.3.2

CONFIG_SHELL="/usr/local/bin/bash"
LDFLAGS="-lc -lcrypt -ltli -Wl,-brtl,-bI:/tmp/crypt.exp,-bI:/lib/pse.exp"
export LDFLAGS CONFIG_SHELL

./configure --without-berkeley-db --prefix=$prefix --enable-static
--without-zlib --enable-all-static --disable-nls

make
make install

strip $prefix/bin/svn*

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 31 15:50:22 2006

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.