octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libz on MacOS X


From: Rik
Subject: Re: libz on MacOS X
Date: Tue, 5 Jul 2016 15:21:46 -0700

On 07/05/2016 01:19 PM, address@hidden wrote:
Subject:
Re: 4.0.3 doesn't build on MacOS X
From:
Ben Abbott <address@hidden>
Date:
07/05/2016 07:46 AM
To:
Sebastian <address@hidden>
CC:
Ben Abbott <address@hidden>, Marius Schamschula <address@hidden>, "address@hidden" <address@hidden>
List-Post:
<mailto:address@hidden>
Content-Transfer-Encoding:
base64
Precedence:
list
MIME-Version:
1.0
References:
<address@hidden> <address@hidden> <address@hidden> <address@hidden> <address@hidden> <address@hidden> <address@hidden> <address@hidden> <address@hidden> <address@hidden>
In-Reply-To:
<address@hidden>
Reply-To:
Ben Abbott <address@hidden>
Message-ID:
<address@hidden>
Content-Type:
text/plain; charset="utf-8"
Message:
5

> On Jul 5, 2016, at 7:10 AM, Ben Abbott <address@hidden> wrote:
> 
>> On Jul 5, 2016, at 02:30, Sebastian <address@hidden> wrote:
>> 
>>> Am 05.07.2016 um 02:33 schrieb Ben Abbott <address@hidden>:
>>> Perhaps there is a bug that misses the libz when it is in /usr/lib when the prefix is something else?
>>> 
>>> Ben
>> Yes, that's quite possibly. Are you using libz from fink? (homebrew tries to use the preinstalled libs as much as possible). However, the good news: the patch does not hurt in my case. 
>> 
>> @Marius: did you submit the patch to the tracker?
>> 
>> Sebastian
> 
> Fink uses Apple's libz.
> 
> Ben
I don’t fully understand what is happening, but thought I’d try some experiments.

Rather than applying the patch to Makefile.in (which is generated by Makefile.am) I tried direclty specifying zlib’s lib and include directories.

	--with-z-includedir=/usr/include/
	--with-z-libdir=/usr/lib/

Configure found zlib and was able to use it.

	checking zlib.h usability... yes
	checking zlib.h presence... yes
	checking for zlib.h… yes

	Z CPPFLAGS:                  -I/usr/include/
	Z LDFLAGS:                   -L/usr/lib/
	Z libraries:                 -lz

However, make still fails.

Next I tried Jordi’s recent change to /m4/acinclude.m4, this also failed.

Ben

Ben,

See bug https://savannah.gnu.org/bugs/?48407 where there has been some discussion.  I just posted a patch that should work, but it needs someone with a developer system to test since you should ideally apply the patch and do 'make dist' to create a new tarball.  And then unpack the tarball and try to do ./configure; make as usual.

--Rik


reply via email to

[Prev in Thread] Current Thread [Next in Thread]