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