pkgsrc-Users archive

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

Re: pkgsrc 2021Q4 on M1 Mac

* On 2021-04-13 at 23:50 BST, Mansour Moufid wrote:

On Tue, Apr 13, 2021 at 1:29 PM Jonathan Perkin <> wrote:

* On 2021-04-13 at 18:03 BST, Mansour Moufid wrote:

>I just bootstrapped pkgsrc-2021Q4 on macOS 11.2.3 with Xcode version 12.4.

I don't know what pkgsrc-2021Q4 is but it's not one of our releases, at
least not for another few quarters ;)

>First problem: bootstrap fails because it looks for the SDK of the
>same version as macOS (macosx11.2), but only macosx11.1 is available:

This is fixed in pkgsrc trunk, I would recommend just using that rather
than a quarterly release.

It will likely fix your zlib problem too as it will be able to find the
headers properly.

Oops I meant 2021Q1. Switching to current fixed the first problem thanks. :)

But zlib still won't build. Looking at the file zconf.h in
devel/zlib/files/ I see:

#ifdef HAVE_UNISTD_H    /* may be set to #if 1 by ./configure */
#  define Z_HAVE_UNISTD_H

(same for devel/zlib/work/zlib-1.2.11/zconf.h)

If I get the zlib source separately and run configure script, zconf.h
looks like this:

#if 1    /* was set to #if 1 by ./configure */
#  define Z_HAVE_UNISTD_H

Right, we don't run configure, we just use the unpacked sources as-is.

I don't know why you're getting -Werror, I don't when I try to reproduce on my mac. It may be reasonable for us to add


to the Makefile, which certainly removes the warnings for me, but it's worth investigating why you are seeing -Werror being added, as I can't see where pkgsrc would be inserting it.

Jonathan Perkin  -  Joyent, Inc.  -

Home | Main Index | Thread Index | Old Index