Re: mutt on macOS and --with-curses=DIR

"Kevin J. McCarthy" <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <[email protected]>
On Fri, Apr 03, 2026 at 02:48:23PM +0200, Dennis Preiser wrote:
>On Fri, Apr 03, 2026 at 06:53:57PM +0800, Kevin J. McCarthy wrote:
>> A workaround for now would be to just create a symlink under ~/sw/lib from
>> ncurses.so to your ncursesw.so file.
>
>Unfortunately, that doesn't work. There are a lot of missing symbols.
>
>      ...
>  "_wclear$NCURSES60", referenced from:
>      _main in main.o
>  "_wgetch$NCURSES60", referenced from:
>      _mutt_getch in curs_lib.o
>      _mutt_what_key in keymap.o
>  "_wrefresh$NCURSES60", referenced from:
>      _mutt_refresh in curs_lib.o
>      __get_field in curs_lib.o
>      _mutt_edit_file in curs_lib.o
>      _mutt_endwin in curs_lib.o
>      _mutt_yesorno_with_help in curs_lib.o
>      _mutt_yesorno_with_help in curs_lib.o
>      _mutt_do_pager in curs_lib.o
>      ...
>ld: symbol(s) not found for architecture arm64
>
>It seems that the library in ~/sw/lib is being used, but the header file
>for the system-wide library. $NCURSES60 appears only there
>
>#define NCURSES_SUF_ABI60    "$NCURSES60"
>
>and not in ~/sw/include/ncursesw/ncurses.h.

I think I replied too quickly last week.

Let's back up and see if we can make more sense of things.  How exactly 
have you run the configure command to compile ncurses?  What is 
installed in your ~/sw/include and lib directory for ncurses, and
exactly where?

Mutt will look inside ~/sw first since -I and -L are set.  But it would 
be helpful to know what mutt is seeing in ~/sw so we know what all 
should be there to sufficiently "cover up" your system lib and includes.

Maybe that's some combination of --disable-lib-suffixes and/or 
--enable-overwrite.

Thanks.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmnbKsAACgkQre92hIAx
a9oy8Q/8CmPtMB4nILDLDNVQcqxEr4tfkTAXHTEwtE2ewG4UFUNK775v1eefQmkb
4W9doN9rCbjUw0iWT0rYEjffOE6sjjfjcdD6T1UAdzuXGuoghHPtxkBN50OG4NGx
p6F0b54ZMQSo3SmWV9X+8pKQu9Cj6azjAKNd16VqhfiTY1LwB4Bb/qZuUtTqT+lX
AXEOdRD0EHAesnDYrr6fmwuyd5/yShQ0XIqfZCRWX+iv6STu/erYc5pdNzB2eiUB
de79W3i+USCJVMr0oQfeBihpMo837IEMMJtiNIDkEFxJIWkmOrUPczIYQpQBlldJ
AlsjQD5F949Tg8//h0mjzeQk0E4du4iKUEmB9Nbzf3/y21zx/Ca92+5JWS6ciKr/
EQU70SED8vLeII9pTWSlf4DDjGlNKL5AcqwCC6/MNMRC/YJ/Dd5fHFapKCBS+WFl
nFFrYUKECBd2PGk6LKc9wWZ1+/tRJh8YktTcv6M8ykWFgXqzOqM9EtmFDSJPoKtk
tAyplMRlcxjb7hWgE4MKaU/924qS7iWtsTkUWKSDV+2RJHJvuOpf2o2AYcqBL1Qz
xcDpVTJSGnATfchAmalqas9SpEIWBpc08haJBryfEIGFDL8RmwZvBx2e9vcDB3+y
E32gHsW69RpfYkcwi1iSRQ/pNqkDVv83R9Yd2UtWX7bVKkVfek4=
=kFI2
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.