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

Building Subversion 1.6.11 on AIX 6.1

From: Justin Johnson <justin_at_honesthacker.com>
Date: Thu, 3 Jun 2010 10:11:10 -0500

Hello,

I have been trying to compile Subversion 1.6.11 on AIX 6.1. Every time I
get a successful build, the resulting executables segfault. Does anyone
have any suggestions as to what I might be doing wrong?

I have gcc 4.0.0 installed but am not building with it due to some syntax
errors I was receiving in part of the build. If the answer is to go with
gcc I can provide that info, and assume I'll need to get a newer version of
gcc installed.

$ /svn/svn-1.6.11/bin/svn
Type 'svn help' for usage.
$ /svn/svn-1.6.11/bin/svn help
Segmentation fault

$ ldd /svn/svn-1.6.11/bin/svn
/svn/svn-1.6.11/bin/svn needs:
         /usr/lib/libiconv.a(shr4_64.o)
         /usr/lib/libpthread.a(shr_xpg5_64.o)
         /svn/svn-1.6.11/lib/libz.so
         /usr/lib/libc.a(shr_64.o)
         /unix
         /usr/lib/libcrypt.a(shr_64.o)

$ uname -a
AIX HOSTNAME 1 6 00CFFB1E4C00

$ lslpp -l|grep -i compiler
  vac.C 10.1.0.0 COMMITTED IBM XL C Compiler
  vac.html.common.search 10.1.0.0 COMMITTED XL C for AIX Compiler Help
  vac.html.en_US.C 10.1.0.0 COMMITTED XL C for AIX Compiler
  vac.include 10.1.0.0 COMMITTED IBM XL C Compiler Include
  vac.man.en_US 10.1.0.0 COMMITTED IBM XL C Compiler Man
  vac.msg.en_US.C 10.1.0.0 COMMITTED XL C for AIX Compiler
  vac.pdf.en_US.C 10.1.0.0 COMMITTED XL C for AIX Compiler
  vacpp.cmp.core 10.1.0.0 COMMITTED IBM XL C/C++ Compiler
  vacpp.cmp.include 10.1.0.0 COMMITTED IBM XL C/C++ Compiler
Include
  vacpp.cmp.rte 10.1.0.0 COMMITTED IBM XL C/C++ Compiler
  vacpp.man.en_US 10.1.0.0 COMMITTED IBM XL C/C++ Compiler Man
  vacpp.msg.en_US.cmp.core 10.1.0.0 COMMITTED IBM XL C/C++ Compiler
  vacpp.samples.ansicl 10.1.0.0 COMMITTED IBM XL C/C++ Compiler ANSI
  xlhelp.com 3.1.2.0 COMMITTED XL Compiler Information
Center
  xlhelp.html.en_US 3.1.2.0 COMMITTED XL Compiler Common
  vac.C 10.1.0.0 COMMITTED IBM XL C Compiler
  vacpp.cmp.core 10.1.0.0 COMMITTED IBM XL C/C++ Compiler

## Define variables
base_dir=/svn
build_dir=$base_dir/build
svn_build_dir=$build_dir/subversion-1.6.11
downloads_dir=$base_dir/downloads
prefix=/svn/svn-1.6.11

## Initialize directories
rm -rf $build_dir
rm -rf $prefix
mkdir -p $build_dir

## Extract code
cd $build_dir
bunzip2 -c $downloads_dir/subversion-1.6.11.tar.bz2 | tar -xvf -
bunzip2 -c $downloads_dir/subversion-deps-1.6.11.tar.bz2 | tar -xvf -

## Build Subversion
cd $svn_build_dir

export CC=xlc
export CXX=xlC
export OBJECT_MODE=64
export CONFIG_SHELL="/usr/bin/bash"
export LDFLAGS="-L$prefix/lib"
export CFLAGS="-I$prefix/include"
export CPPFLAGS="-I$prefix/include"

cd $svn_build_dir/zlib
./configure --prefix=$prefix
make
make install

cd $svn_build_dir
./configure --prefix=$prefix --with-zlib=$prefix --enable-static
--enable-all-static --disable-shared
make
make install
Received on 2010-06-03 17:11:49 CEST

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.