> On 13/01/2026 22:54 EET Andrew Watkins via dovecot <[email protected]> > wrote: > > > Hello, > > I am trying to build dovecot-2.4.2 on Solaris 11.4 with gcc 14.2 and > getting the following error: > > CC module-dir.lo > CC mountpoint.lo > mountpoint.c: In function ‘mountpoint_iter_next’: > mountpoint.c:264:33: error: implicit declaration of function ‘makedev’ > [-Wimplicit-function-declaration] > 264 | iter->mnt.dev = makedev(ent.ext.mnt_major, > ent.ext.mnt_minor); > | ^~~~~~~ > *** Error code 1 > The following command caused the error: > echo " CC " mountpoint.lo;/bin/sh ../../libtool --silent --tag=CC > --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -std=gnu11 -g > -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 > -mfunction-return=keep -mindirect-branch=keep -Wall -W > -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith > -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime > -Wstrict-aliasing=2 -MT mountpoint.lo -MD -MP -MF .deps/mountpoint.Tpo > -c -o mountpoint.lo mountpoint.c > make: Fatal error: Command failed for target `mountpoint.lo' > Current working directory /var/tmp/dovecot-2.4.0/src/lib > *** Error code 1 > > I have been using dovecot for a long time and haven't seen this before. > I just checked and rebuilt dovecot-2.3.21 and had no problems. > > Any ideas? > > Thanks, > > Andrew > Hello, > > I am trying to build dovecot-2.4.2 on Solaris 11.4 with gcc 14.2 and > getting the following error: > > CC module-dir.lo > CC mountpoint.lo > mountpoint.c: In function `mountpoint_iter_next': > mountpoint.c:264:33: error: implicit declaration of function `makedev' > [-Wimplicit-function-declaration] > 264 | iter->mnt.dev = makedev(ent.ext.mnt_major, > ent.ext.mnt_minor); > | ^~~~~~~ > *** Error code 1 > The following command caused the error: > echo " CC " mountpoint.lo;/bin/sh ../../libtool --silent --tag=CC > --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -std=gnu11 -g -O2 > -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 > -mfunction-return=keep -mindirect-branch=keep -Wall -W > -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith > -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime > -Wstrict-aliasing=2 -MT mountpoint.lo -MD -MP -MF .deps/mountpoint.Tpo -c > -o mountpoint.lo mountpoint.c > make: Fatal error: Command failed for target `mountpoint.lo' > Current working directory /var/tmp/dovecot-2.4.0/src/lib > *** Error code 1 > > I have been using dovecot for a long time and haven't seen this before. I > just checked and rebuilt dovecot-2.3.21 and had no problems. > > Any ideas? > > Thanks, > > Andrew
Can you see if diff --git a/src/lib/mountpoint.c b/src/lib/mountpoint.c index 3d2150ec6e..816d0d6f54 100644 --- a/src/lib/mountpoint.c +++ b/src/lib/mountpoint.c @@ -27,6 +27,7 @@ # include <stdio.h> # include <sys/mnttab.h> /* Solaris */ # include <sys/mntent.h> +# include <sys/mkdev.h> # define MOUNTPOINT_SOLARIS #else # define MOUNTPOINT_UNKNOWN helps? Aki _______________________________________________ dovecot mailing list -- [email protected] To unsubscribe send an email to [email protected]
