From ripley at stats.ox.ac.uk  Tue Mar 31 08:48:46 2015
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue, 31 Mar 2015 07:48:46 +0100
Subject: [Rd] About removing zlib from R-devel
In-Reply-To: <CAC2h7uuOD0L6Kv3rmiSiqb5jstC6rGb3zuYk440rcb0gF5T3Bw@mail.gmail.com>
References: <CABtg=KkKOmhGait1QAR_5LiYrY0hgggpXDhWqGFfTsJ+jaOiPA@mail.gmail.com>	<21780.21680.951993.617987@max.nulle.part>	<CAC2h7utZmvRWccfJM60o40Qydbe+7d9vcQP5w3VbhCKQPEd1ig@mail.gmail.com>
	<CAC2h7uuOD0L6Kv3rmiSiqb5jstC6rGb3zuYk440rcb0gF5T3Bw@mail.gmail.com>
Message-ID: <551A434E.3050605@stats.ox.ac.uk>

On 31/03/2015 01:51, Kasper Daniel Hansen wrote:
> For people reading this: I was installing bzip2 by hand.  Two things to
> bear in mind (1) it only installs a shared library if you use a special

But R does not require a shared library for bzip2 ....

> Makefile (this is clearly stated in the installation docs) and (2) I had to
> symlink libbz2.so.1 to libbz2.so.1.0.6 (the included libbz2.so.1.0 was not
> being picked up).

The most complete way on an ELF system would be to link

libbz2.so.1.0.6 to libbz2.so.1.0
libbz2.so.1.0 to libbz2.so.1
libbz2.so.1 to libbz2.so

as done on Solaris, but I see Fedora has

libbz2.so.1.0.6 to libbz2.so.1
libbz2.so.1 to libbz2.so

and OS X has

libbz2.1.0.5.dylib to libbz2.1.0.dylib
libbz2.dylib to libbz2.1.0.dylib

!  (It does have 1.0.6, so the first seems a back-compatibility link.)


>
> Best,
> Kasper
>
> On Fri, Mar 27, 2015 at 11:19 AM, Kasper Daniel Hansen <
> kasperdanielhansen at gmail.com> wrote:
>
>> Related to this question:
>>
>> I have installed bzip2 1.0.6 by hand, but configure still fails.  When I
>> look at config.log I get the following
>>
>> configure:34150: /usr/bin/gcc -std=gnu99 -o conftest -g -O2
>> -march=amdfam10  -g -O2 -march=amdfam10  -L/usr/local/lib64 confte
>> st.c -lbz2 -lz -lrt -ldl -lm  >&5
>> conftest.c: In function 'main':
>> conftest.c:250: warning: initialization discards qualifiers from pointer
>> target type
>> conftest.c:251: warning: implicit declaration of function 'exit'
>> conftest.c:251: warning: incompatible implicit declaration of built-in
>> function 'exit'
>> conftest.c:251: warning: implicit declaration of function 'strcmp'
>>
>> for the program
>>
>> | #ifdef HAVE_BZLIB_H
>> | #include <bzlib.h>
>> | #endif
>> | int main() {
>> |     char *ver = BZ2_bzlibVersion();
>> |     exit(strcmp(ver, "1.0.6") < 0);
>> | }
>> |
>> configure:34167: result: no
>> configure:34173: checking whether bzip2 support suffices
>> configure:34180: error: bzip2 library and headers are required
>>
>> To me, it seems as if the test might be broken.  I'll do some more
>> investigation, but thought I would report this. It works for libz which I
>> also had to install by hand.
>>
>> Best,
>> Kasper
>>
>>
>> On Thu, Mar 26, 2015 at 2:49 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
>>
>>>
>>> On 26 March 2015 at 07:47, G?bor Cs?rdi wrote:
>>> | Dear All,
>>> |
>>> | zlib has been removed from R-devel src/extra recently, and building R
>>> | requires zlib >= 1.2.5. Ubuntu 12.04 LTS (also used on Travis CI) only
>>> has
>>> | 1.2.3.
>>> |
>>> | This means that the next version of R will probably not available on
>>> Ubuntu
>>> | 12.04. (Unless I am missing something of course.) Which is probably
>>> fine,
>>> | it is almost three years old now.
>>>
>>> I think Michael Rutter (who (re-)builds for 12.04 and other Ubuntu
>>> releases
>>> when I update the Debian package) can create a local backport of zlib.
>>>
>>> I somewhat recently started to (entirely locally) build some "backports"
>>> via
>>> https://launchpad.net/~edd/+archive/ubuntu/misc solely so that Travis
>>> can use
>>> them as binary.  It's good option to have.
>>>
>>> Dirk
>>>
>>> | I guess R-core is aware of this. Just wanted to be sure.
>>> |
>>> | Best Regads,
>>> | Gabor
>>> |
>>> |       [[alternative HTML version deleted]]
>>> |
>>> | ______________________________________________
>>> | R-devel at r-project.org mailing list
>>> | https://stat.ethz.ch/mailman/listinfo/r-devel
>>>
>>> --
>>> http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
>>>
>>> ______________________________________________
>>> R-devel at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>>
>>
>>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Emeritus Professor of Applied Statistics, University of Oxford
1 South Parks Road, Oxford OX1 3TG, UK



[Rd] About removing zlib from R-devel
Prof Brian Ripley