[MacPorts] #74203: notmuch @0.38.3: error: incompatible function pointer types passing 'int (*)(const struct dirent **, const struct dirent **)' to parameter of type 'int (*)(const void *, const void *)' [-Wincompatible-function-pointer-types]
MacPorts
noreply at macports.org
Fri Jul 10 04:51:36 UTC 2026
#74203: notmuch @0.38.3: error: incompatible function pointer types passing 'int
(*)(const struct dirent **, const struct dirent **)' to parameter of type
'int (*)(const void *, const void *)' [-Wincompatible-function-pointer-
types]
--------------------------------------+---------------------
Reporter: ryandesign | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.12.5
Keywords: leopard snowleopard lion | Port: notmuch
--------------------------------------+---------------------
The build fails on Lion and earlier:
https://build.macports.org/builders/ports-10.7_x86_64-builder/builds/258714/steps
/install-port/logs/stdio
{{{
notmuch-new.c:559:10: error: incompatible function pointer types passing
'int (*)(const struct dirent **, const struct dirent **)' to parameter of
type 'int (*)(const void *, const void *)' [-Wincompatible-function-
pointer-types]
directory ?
^~~~~~~~~~~
/usr/include/dirent.h:129:37: note: passing argument to parameter here
int (*)(struct dirent *), int (*)(const void *, const void *))
__DARWIN_INODE64(scandir);
^
notmuch-new.c:858:57: error: incompatible function pointer types passing
'int (const struct dirent **, const struct dirent **)' to parameter of
type 'int (*)(const void *, const void *)' [-Wincompatible-function-
pointer-types]
int num_fs_entries = scandir (path, &fs_entries, 0,
dirent_sort_inode);
^~~~~~~~~~~~~~~~~
/usr/include/dirent.h:129:37: note: passing argument to parameter here
int (*)(struct dirent *), int (*)(const void *, const void *))
__DARWIN_INODE64(scandir);
^
2 errors generated.
make: *** [notmuch-new.o] Error 1
make: *** Waiting for unfinished jobs....
}}}
--
Ticket URL: <https://trac.macports.org/ticket/74203>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list