Created attachment 394150 [details] mail-mta:opensmtpd-5.4.4.201501060207_p1:20150117-120452.log When updating my ~amd64 system, I am getting the following error: checking libevent header version... not found configure: error: libevent version header not found. !!! Please attach the following file when seeking support: !!! /tmp/portage/mail-mta/opensmtpd-5.4.4.201501060207_p1/work/opensmtpd-201501060207p1/config.log
Created attachment 394152 [details] The output of "emerge --info"
That's a really really weird way to test libevent's version: AC_RUN_IFELSE( [AC_LANG_PROGRAM([[ #include <stdio.h> #include <string.h> #include <event.h> #define DATA "conftest.libeventincver" ]], [[ FILE *fd; int rc; fd = fopen(DATA,"w"); if(fd == NULL) exit(1); if ((rc = fprintf(fd ,"%s\n", _EVENT_VERSION)) <0) exit(1); exit(0); ]])], [ libevent_header_ver=`cat conftest.libeventincver` AC_MSG_RESULT([$libevent_header_ver]) ], [ AC_MSG_RESULT([not found]) AC_MSG_ERROR([libevent version header not found.]) ], [ AC_MSG_WARN([cross compiling: not checking]) ] )
Also note that it does a "version check according to the header file" and a "version check according to the library". The latter looks like it's useful, and its result is actually used elsewhere in the code (although it does fail completely when cross-compiling because it still expects a binary linked against libevent to be executed). It could probably use pkg-config instead of both tests.