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

Built 1.8.1 from source: "libz.so.1: no version information available"

From: Randy <nya_macha_at_yahoo.com>
Date: Fri, 9 Aug 2013 20:59:34 -0700 (PDT)

Hi all,

I built Subversion 1.8.1 from source on CentOS 6 and running into a problem with zlib versions. The build completes successfully, but when running svn with any command I get this "no version information available" error:

-bash-4.1$ /tools/svn-1.8.1-centos6-x86_64/bin/svn --version               
/tools/svn-1.8.1-centos6-x86_64/bin/svn: /lib64/libz.so.1: no version information available (required by /tools/svn-1.8.1-centos6-x86_64/lib/libsvn_delta-1.so.0)
svn, version 1.8.1 (r1503906)
compiled Aug  9 2013, 14:56:23 on x86_64-unknown-linux-gnu[/CODE]

ldd on my svn binary shows it's using the distribution's zlib library:
libz.so.1 => /lib64/libz.so.1 (0x000000301d600000)[/CODE]

My CentOS distribution uses zlib version 1.2.3:
-bash-4.1$ ls -lh /lib64/libz.so.1
lrwxrwxrwx. 1 root root 13 May  1 17:16 /lib64/libz.so.1 -> libz.so.1.2.3[/CODE]

I tried building subversion with and without static libraries, and with and without my own zlib. I'm ready to give up. Any help would be appreciated! 

Here is my build script, in case it helps explain.

## Get Subversion
wget http://www.gtlib.gatech.edu/pub/apache/subversion/subversion-1.8.1.tar.gz
tar -zxvf subversion-1.8.1.tar.gz
mv subversion-1.8.1 subversion
cd subversion

## Get dependencies
./get-deps.sh
wget http://www.openssl.org/source/openssl-1.0.1e.tar.gz
tar -zxvf openssl-1.0.1e.tar.gz
mv openssl-1.0.1e openssl

## Compile dependencies
mkdir -p /tmp-build/apr
mkdir -p /tmp-build/apr-util
mkdir -p /tmp-build/serf
mkdir -p /tmp-build/openssl
mkdir -p /tmp-build/zlib

cd apr; ./buildconf; ./configure --prefix=/tmp-build/apr; make; make install; cd ..
cd apr-util; ./buildconf; ./configure --with-apr=/tmp-build/apr --prefix=/tmp-build/apr-util; make; make install; cd ..
cd openssl; ./config no-shared -fPIC no-zlib --prefix=/tmp-build/openssl; make; make install; cd ..
cd serf; ./buildconf; ./configure --with-apr=/tmp-build/apr --with-apr-util=/tmp-build/apr-util --with-openssl=/tmp-build/openssl --prefix=/tmp-build/serf; make; make install; cd ..
cd zlib; ./configure --prefix=/tmp-build/zlib; make; make install; cd ..

## Build subversion
mkdir -p /tools/svn-1.8.1-centos6-x86_64
./configure --enable-static --with-apr=/tmp-build/apr --with-apr-util=/tmp-build/apr-util --with-serf=/tmp-build/serf --with-zlib=/tmp-build/zlib --prefix=/tools/svn-1.8.1-centos6-x86_64
make
make install[/CODE]

Any thoughts? Thank you!
Received on 2013-08-10 19:38:02 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.