[MacPorts] #63665: notmuch @0.34 build fails with "ld: symbol(s) not found for architecture x86_64"

MacPorts noreply at macports.org
Sun Oct 24 12:01:33 UTC 2021


#63665: notmuch @0.34 build fails with "ld: symbol(s) not found for architecture
x86_64"
-----------------------+---------------------
 Reporter:  rseichter  |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:
 Keywords:             |       Port:  notmuch
-----------------------+---------------------
 I am in the process of bumping the mail/notmuch port to version 0.34 and
 see the following error messages:

 {{{
 cd bindings/python-cffi && \
   /opt/local/bin/python3.9 setup.py build --build-lib build/stage && \
   mkdir -p build/stage/tests && cp tests/*.py build/stage/tests
 ld: warning: dylib (/opt/local/lib/libgmime-3.0.dylib) was built for newer
 macOS version (11.2) than being linked (11.0)
 ld: warning: dylib (/opt/local/lib/libxapian.dylib) was built for newer
 macOS version (11.2) than being linked (11.0)
 Undefined symbols for architecture x86_64:
   "_notmuch_query_create_with_syntax", referenced from:
       _print_count in notmuch-count.o
       _notmuch_database_dump in notmuch-dump.o
       _notmuch_reindex_command in notmuch-reindex.o
       _notmuch_reply_command in notmuch-reply.o
       __notmuch_search_prepare in notmuch-search.o
       _notmuch_show_command in notmuch-show.o
       _tag_query in notmuch-tag.o
       ...
 ld: symbol(s) not found for architecture x86_64
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 make: *** [notmuch-shared] Error 1
 }}}

 Any suggestions regarding how best to deal with this issue?
 I found a similar ticket https://trac.macports.org/ticket/63612 for
 "quassel", but I am unsure if this is something that can be fixed in
 notmuch's Portfile or requires an upstream change.

-- 
Ticket URL: <https://trac.macports.org/ticket/63665>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list