Dovecot 2.3.9 build error

wattie

Verified User
Joined
May 31, 2008
Messages
1,037
Location
Bulgaria
FreeBSD 11.3 here. I get the following error when building Dovecot:

Code:
...
net.c:1071:5: error: use of undeclared identifier 'EAI_ADDRFAMILY'
                { EAI_ADDRFAMILY, NET_HOSTERROR_TYPE_NOT_FOUND },
                  ^
net.c:1077:5: error: use of undeclared identifier 'EAI_NODATA'
                { EAI_NODATA, NET_HOSTERROR_TYPE_NOT_FOUND },
                  ^
net.c:1083:31: error: invalid application of 'sizeof' to an incomplete type 'const struct (anonymous struct at net.c:1067:8) []'
        for (unsigned int i = 0; i < N_ELEMENTS(error_map); i++) {
                                     ^~~~~~~~~~~~~~~~~~~~~
./macros.h:19:9: note: expanded from macro 'N_ELEMENTS'
        (sizeof(arr) / sizeof((arr)[0]))
               ^~~~~
3 errors generated.
mv -f .deps/mkdir-parents.Tpo .deps/mkdir-parents.Plo
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/usr/local/include -MT md5.lo -MD -MP -MF .deps/md5.Tpo -c md5.c -o md5.o >/dev/null 2>&1
gmake[4]: *** [Makefile:1326: net.lo] Error 1
gmake[4]: *** Waiting for unfinished jobs....
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/usr/local/include -MT ostream-buffer.lo -MD -MP -MF .deps/ostream-buffer.Tpo -c ostream-buffer.c  -fPIC -DPIC -o .libs/ostream-buffer.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/usr/local/include -MT ostream.lo -MD -MP -MF .deps/ostream.Tpo -c ostream.c  -fPIC -DPIC -o .libs/ostream.o
mv -f .deps/md4.Tpo .deps/md4.Plo
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/usr/local/include -MT numpack.lo -MD -MP -MF .deps/numpack.Tpo -c numpack.c  -fPIC -DPIC -o .libs/numpack.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/usr/local/include -MT ostream-failure-at.lo -MD -MP -MF .deps/ostream-failure-at.Tpo -c ostream-failure-at.c  -fPIC -DPIC -o .libs/ostream-failure-at.o
mv -f .deps/mountpoint.Tpo .deps/mountpoint.Plo
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/usr/local/include -MT ostream-hash.lo -MD -MP -MF .deps/ostream-hash.Tpo -c ostream-hash.c  -fPIC -DPIC -o .libs/ostream-hash.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/usr/local/include -MT ostream-file.lo -MD -MP -MF .deps/ostream-file.Tpo -c ostream-file.c  -fPIC -DPIC -o .libs/ostream-file.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/usr/local/include -MT ostream-buffer.lo -MD -MP -MF .deps/ostream-buffer.Tpo -c ostream-buffer.c -o ostream-buffer.o >/dev/null 2>&1
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/usr/local/include -MT nfs-workarounds.lo -MD -MP -MF .deps/nfs-workarounds.Tpo -c nfs-workarounds.c -o nfs-workarounds.o >/dev/null 2>&1
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/usr/local/include -MT numpack.lo -MD -MP -MF .deps/numpack.Tpo -c numpack.c -o numpack.o >/dev/null 2>&1
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/usr/local/include -MT ostream-hash.lo -MD -MP -MF .deps/ostream-hash.Tpo -c ostream-hash.c -o ostream-hash.o >/dev/null 2>&1
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/usr/local/include -MT ostream-failure-at.lo -MD -MP -MF .deps/ostream-failure-at.Tpo -c ostream-failure-at.c -o ostream-failure-at.o >/dev/null 2>&1
mv -f .deps/ostream-buffer.Tpo .deps/ostream-buffer.Plo
mv -f .deps/numpack.Tpo .deps/numpack.Plo
mv -f .deps/nfs-workarounds.Tpo .deps/nfs-workarounds.Plo
mv -f .deps/ostream-hash.Tpo .deps/ostream-hash.Plo
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/usr/local/include -MT module-dir.lo -MD -MP -MF .deps/module-dir.Tpo -c module-dir.c -o module-dir.o >/dev/null 2>&1
mv -f .deps/ioloop.Tpo .deps/ioloop.Plo
mv -f .deps/json-parser.Tpo .deps/json-parser.Plo
mv -f .deps/ostream-failure-at.Tpo .deps/ostream-failure-at.Plo
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/usr/local/include -MT ostream.lo -MD -MP -MF .deps/ostream.Tpo -c ostream.c -o ostream.o >/dev/null 2>&1
mv -f .deps/md5.Tpo .deps/md5.Plo
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/usr/local/include -MT ostream-file.lo -MD -MP -MF .deps/ostream-file.Tpo -c ostream-file.c -o ostream-file.o >/dev/null 2>&1
mv -f .deps/lib-event.Tpo .deps/lib-event.Plo
mv -f .deps/module-dir.Tpo .deps/module-dir.Plo
mv -f .deps/ostream.Tpo .deps/ostream.Plo
mv -f .deps/ostream-file.Tpo .deps/ostream-file.Plo
gmake[4]: Leaving directory '/usr/local/directadmin/custombuild/dovecot-2.3.9/src/lib'
gmake[3]: *** [Makefile:1004: all] Error 2
gmake[3]: Leaving directory '/usr/local/directadmin/custombuild/dovecot-2.3.9/src/lib'
gmake[2]: *** [Makefile:563: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/local/directadmin/custombuild/dovecot-2.3.9/src'
gmake[1]: *** [Makefile:681: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/local/directadmin/custombuild/dovecot-2.3.9'
gmake: *** [Makefile:525: all] Error 2
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
8,961
I've re-packed Dovecot 2.3.9 with a patch. Tested on our F11 build box and compiles here.
FYI: It's on all "files.directadmin.com" round-robin servers, might not yet be on other mirrors.

The
Code:
md5 dovecot-2.3.9.tar.gz
should b0614b63b0c17729cea648f82b28dc72a, in case you're unsure if you have it or not.

John
 
Top