Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 536832 - mail-mta/opensmtpd-5.4.4.201501060207_p1 with dev-libs/libevent-2.1.5 - configure: error: libevent version header not found.
Summary: mail-mta/opensmtpd-5.4.4.201501060207_p1 with dev-libs/libevent-2.1.5 - confi...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason A. Donenfeld
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-17 12:22 UTC by José Romildo Malaquias
Modified: 2016-06-06 22:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mail-mta:opensmtpd-5.4.4.201501060207_p1:20150117-120452.log (mail-mta:opensmtpd-5.4.4.201501060207_p1:20150117-120452.log,19.58 KB, text/plain)
2015-01-17 12:22 UTC, José Romildo Malaquias
Details
The output of "emerge --info" (nada.txt,16.25 KB, text/plain)
2015-01-17 12:23 UTC, José Romildo Malaquias
Details

Note You need to log in before you can comment on or make changes to this bug.
Description José Romildo Malaquias 2015-01-17 12:22:38 UTC
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
Comment 1 José Romildo Malaquias 2015-01-17 12:23:31 UTC
Created attachment 394152 [details]
The output of "emerge --info"
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-17 18:10:26 UTC
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])
    ]
)
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-17 18:22:55 UTC
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.