From users-return-3528-apmail-subversion-users-archive=subversion.apache.org@subversion.apache.org Tue Jul 06 14:38:19 2010 Return-Path: Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: (qmail 13294 invoked from network); 6 Jul 2010 14:38:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Jul 2010 14:38:19 -0000 Received: (qmail 50361 invoked by uid 500); 6 Jul 2010 14:38:19 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 50325 invoked by uid 500); 6 Jul 2010 14:38:18 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 50309 invoked by uid 99); 6 Jul 2010 14:38:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jul 2010 14:38:18 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of campbell.allan@sword-ciboodle.com designates 207.126.144.133 as permitted sender) Received: from [207.126.144.133] (HELO eu1sys200aog112.obsmtp.com) (207.126.144.133) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 06 Jul 2010 14:38:08 +0000 Received: from source ([62.253.177.169]) by eu1sys200aob112.postini.com ([207.126.147.11]) with SMTP ID DSNKTDM/uxntBL6kpMTr6as0OfLti8z/ASoF@postini.com; Tue, 06 Jul 2010 14:37:48 UTC Received: from atlantis.inchinnan.grahamtech.co.uk (atlantis.inchinnan.grahamtech.co.uk [10.77.62.1]) by mailhost.grahamtech.co.uk (Postfix) with ESMTP id DEC8744726; Tue, 6 Jul 2010 16:22:59 +0100 (BST) Received: by atlantis.inchinnan.grahamtech.co.uk (Postfix, from userid 51229) id 7BB7C9527; Tue, 6 Jul 2010 15:37:45 +0100 (BST) Received: from kohana.dev_test_pub.inchinnan.grahamtech.co.uk (callanpc01.dev_test_pub.inchinnan.grahamtech.co.uk [10.77.40.46]) by atlantis.inchinnan.grahamtech.co.uk (Postfix) with ESMTP id 4ECC98A35; Tue, 6 Jul 2010 15:37:45 +0100 (BST) From: Campbell Allan To: users@subversion.apache.org Subject: Re: can't build with zlib Date: Tue, 6 Jul 2010 15:35:11 +0100 User-Agent: KMail/1.9.10 Cc: Edward Ned Harvey References: <000001cb1d15$8c331db0$a4995910$@com> In-Reply-To: <000001cb1d15$8c331db0$a4995910$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201007061535.12107.campbell.allan@sword-ciboodle.com> X-Virus-Checked: Checked by ClamAV on apache.org On Tuesday 06 Jul 2010, Edward Ned Harvey wrote: > I have tried everything I can think of, and I can't seem to get svn to > build with the zlib that comes with it. It's always linking against > /usr/lib64/zlib. > > > > ./configure --prefix=/scratch/eharvey/svn > --with-zlib=/scratch/eharvey/subversion-1.6.12/zlib --enable-static > > Have you tried setting LD_FLAGS before running configure? I'd keep the --with-zlib option as well. For example LD_FLAGS=-L`pwd`/zlib export LD_FLAGS ./configure ... > > After build: > > ldd `which svn` | grep libz > > libz.so.1 => /usr/lib64/libz.so.1 (0x00000034a6900000) > > > > Perhaps I should set something like INCLUDE_PATH or LD_LIBRARY_PATH before > building it? Also, if I enable-static, shouldn't it be internal, shouldn't > ldd show me nothing? > I have a vague memory that enable-static is to do with building static libraries rathern than a static binary. ldd on a static binary should show the message 'not a dynamic executable' or something like that. I've used a slightly different configure line to do that. On my machine I had trouble with the built os provided openssl so had to build my own. ./configure --prefix=/someplace --with-neon=`pwd/neon --with-ssl --disable-shared --enable-all-static --with-openssl=`pwd`/openssl oh, and on a 64bit machine (or it might be unique to opensuse) I've found I had to add -fPIC to the CFLAGS options before running configure. CFLAGS=-fPIC export CFLAGS > > > Here's the reason why I care: > > > > The default zlib compression is 5. I edited deflate.c to change this to 1. > I would like to know how much difference there is. > > > > Thanks... Campbell -- __________________________________________________________________________________ Sword Ciboodle is the trading name of ciboodle Limited (a company registered in Scotland with registered number SC143434 and whose registered office is at India of Inchinnan, Renfrewshire, UK, PA4 9LH) which is part of the Sword Group of companies. This email (and any attachments) is intended for the named recipient(s) and is private and confidential. If it is not for you, please inform us and then delete it. If you are not the intended recipient(s), the use, disclosure, copying or distribution of any information contained within this email is prohibited. Messages to and from us may be monitored. If the content is not about the business of the Sword Group then the message is neither from nor sanctioned by us. Internet communications are not secure. You should scan this message and any attachments for viruses. Under no circumstances do we accept liability for any loss or damage which may result from your receipt of this email or any attachment. __________________________________________________________________________________