notmuch 0.19 build fails on OS X 10.6 with gcc 4.2.1 with undefined symbols

David Bremner david at tethera.net
Thu Apr 30 05:52:04 PDT 2015


Ryan Schmidt <notmuch at ryandesign.com> writes:

> Hello,
>
> I'm a developer with the MacPorts project and I discovered that notmuch 0.19 does not build on Mac OS X 10.6 with its gcc 4.2.1 compiler. The errors are:
>
> Undefined symbols:
>   "_hex_decode_inplace", referenced from:
>       _parse_tag_line in tag-util.o
>   "_gz_error_string", referenced from:
>       _notmuch_restore_command in notmuch-restore.o
>       _notmuch_restore_command in notmuch-restore.o
>   "_gz_getline", referenced from:
>       _notmuch_restore_command in notmuch-restore.o
>       _notmuch_restore_command in notmuch-restore.o
>   "_hex_encode", referenced from:
>       _notmuch_database_dump in notmuch-dump.o
>   "_talloc_strndup_named_const", referenced from:
>       _notmuch_restore_command in notmuch-restore.o
>       _notmuch_restore_command in notmuch-restore.o

Those are all supposed to be defined in util/libutil.a. At a glance the
command line looks plausible. It's a long shot, but you could make sure
they are there using e.g.

% nm util/libutil.a

Beyond that, I'm hoping some Mac user will have some ideas.


More information about the notmuch mailing list