- Joined
- Feb 27, 2003
- Messages
- 9,158
...
mv -f .deps/mountpoint.Tpo .deps/mountpoint.Plo
net.c:1071:5: error: use of undeclared identifier 'EAI_ADDRFAMILY'
{ EAI_ADDRFAMILY, NET_HOSTERROR_TYPE_NOT_FOUND },
^
/bin/sh ../../libtool --tag=CC --mode=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 primes.lo -MD -MP -MF .deps/primes.Tpo -c -o primes.lo primes.c
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]))
^~~~~
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
3 errors generated.
gmake[4]: *** [Makefile:1325: net.lo] Error 1
gmake[4]: *** Waiting for unfinished jobs....
...
mv -f .deps/ostream-file.Tpo .deps/ostream-file.Plo
gmake[4]: Leaving directory '/usr/local/directadmin/custombuild/dovecot-2.3.9.3/src/lib'
gmake[3]: *** [Makefile:1004: all] Error 2
gmake[3]: Leaving directory '/usr/local/directadmin/custombuild/dovecot-2.3.9.3/src/lib'
gmake[2]: *** [Makefile:563: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/local/directadmin/custombuild/dovecot-2.3.9.3/src'
gmake[1]: *** [Makefile:681: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/local/directadmin/custombuild/dovecot-2.3.9.3'
gmake: *** [Makefile:525: all] Error 2
It's been re-packed with the patch now, md5 checksum: 9ebb21d371bcd6d84c85162731e7d002. Please give it a try now.On FreeBSD:
Code:... mv -f .deps/mountpoint.Tpo .deps/mountpoint.Plo net.c:1071:5: error: use of undeclared identifier 'EAI_ADDRFAMILY' { EAI_ADDRFAMILY, NET_HOSTERROR_TYPE_NOT_FOUND }, ^ /bin/sh ../../libtool --tag=CC --mode=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 primes.lo -MD -MP -MF .deps/primes.Tpo -c -o primes.lo primes.c 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])) ^~~~~ 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 3 errors generated. gmake[4]: *** [Makefile:1325: net.lo] Error 1 gmake[4]: *** Waiting for unfinished jobs.... ... mv -f .deps/ostream-file.Tpo .deps/ostream-file.Plo gmake[4]: Leaving directory '/usr/local/directadmin/custombuild/dovecot-2.3.9.3/src/lib' gmake[3]: *** [Makefile:1004: all] Error 2 gmake[3]: Leaving directory '/usr/local/directadmin/custombuild/dovecot-2.3.9.3/src/lib' gmake[2]: *** [Makefile:563: all-recursive] Error 1 gmake[2]: Leaving directory '/usr/local/directadmin/custombuild/dovecot-2.3.9.3/src' gmake[1]: *** [Makefile:681: all-recursive] Error 1 gmake[1]: Leaving directory '/usr/local/directadmin/custombuild/dovecot-2.3.9.3' gmake: *** [Makefile:525: all] Error 2
It needs the patch mentioned in this post:
Dovecot 2.3.9 build error
FreeBSD 11.3 here. I get the following error when building Dovecot: ... 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'...forum.directadmin.com