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

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

From: Randy <nya_macha_at_yahoo.com>
Date: Sun, 11 Aug 2013 18:23:34 -0700 (PDT)

Hi Philip,

Thank you for the reply. I think you are correct about it being a zlib version problem. But the error with "/lib64/libz.so.1" happens whether I build svn with the dependencies or without. The reason I am attempting to build it with the static libraries (which are fetched with the included "get-deps.sh" script) is to prevent it from trying to use "/lib64/libz.so.1" which appears to have zlib version problem. However ldd shows my svn using "/lib64/libz.so.1" no matter what I do.

Cheers,
Randy

----- Original Message -----
From: Philip Martin <philip.martin_at_wandisco.com>
To: Randy <nya_macha_at_yahoo.com>
Cc: "users_at_subversion.apache.org" <users_at_subversion.apache.org>
Sent: Sunday, August 11, 2013 2:45 PM
Subject: Re: Built 1.8.1 from source: "libz.so.1: no version information available"

Randy <nya_macha_at_yahoo.com> writes:

> 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:

I think that is caused by using one version of zlib during the build and
a different zlib once installed.

> -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]

The build below shows you using your own zlib in /tmp-build/zlib so the
system zlib is the wrong one.

> 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!

Do you need to build all those dependencies?  What's wrong the system
dependencies?  You probably only need to build serf.  The 'tmp' in your
prefix is suspicious, there is not usually anything temporary about
these dependencies.

To fix thing either build against the system libraries or ensure that
the installed binaries pickup your own dependencies.

-- 
Philip Martin | Subversion Committer
WANdisco | Non-Stop Data
Received on 2013-08-12 03:24:09 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.