Error compiling on macos

Benjamin nystire at gmail.com
Wed Jun 28 13:02:25 PDT 2017


Where exactly do I apply the patch file? In the Subsurface directory?

On 28 June 2017 at 22:33, Linus Torvalds <torvalds at linux-foundation.org>
wrote:

> On Wed, Jun 28, 2017 at 9:42 AM, Benjamin <nystire at gmail.com> wrote:
> > Good afternoon
> > I'm running macos 10.12.5.
> > I just synced to the latest sources, and when running the build script, I
> > get the following message:
> >
> > Making install in src
> >
> >   CCLD     libdivecomputer.la
> >
> > Undefined symbols for architecture x86_64:
> >
> >   "_crc32", referenced from:
>
> Interesting. The new Suunto protocol over bluetooth needs crc32() for
> stream integrity control, and I was expecting to get it from zlib -
> which we require to be there anyway due to other dependencies (eg
> libgit uses zlib too).
>
> An you must have zlib installed *somehow*, since the
>
>     #include <zlib.h>
>
> in suunto_eonsteel.c worked.
>
> I wonder what the difference here between macos and Linux is - maybe
> it's a clang linker difference, or maybe I got crc32() some other
> way..
>
> Anyway, it definitely is my bug - I think I just added the "-lz" to
> the wrong place (I hate autotools, and I'm bad at it).
>
> I think the attached trivial patch to move the -lz to the right place
> will fix it. Can you please test?
>
>                  Linus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20170628/400c25e6/attachment.html>


More information about the subsurface mailing list