Closed brong closed 7 years ago
Building cyrus-imapd 2.2.12 on Solaris 7 fails with:
In file included from libconfig.c:44: ../config.h:445:17: gai.h: No such file or directory make[1]: [libconfig.o] Error 1 make[1]: Leaving directory `/usr/local/src/cyrus-imapd-2.2.12/lib' make: [all] Error 1
My Solaris 7 system does not have getaddrinfo/getnameinfo, so it tries to build the bundled versions. libconfig.c is doing 'include "gai.h"' (via config.h) but obviously isn't finding it in the lib directory. I suspect this might be a problem on any system that does not have getaddrinfo/getnameinfo.
There are two possible fixes, the first being to change config.h to include "lib/gai.h" instead of "gai.h". The second would be to set the "-I." CPPFLAG, but this causes the build to fail further on when cyrusdb_quotalegacy.c picks up the glob.h from the lib directory instead of the system version. I suggest the first as a solution. Will attach a patch to this item.
Attachment-Id: 379 From: Type: text/plain File: gai_h.patch
Include gai.h from lib directory.
From: s.e.grier@qmul.ac.uk Bugzilla-Id: 2711 Version: 2.2.x Owner: Ken Murchison