Fwd: Make Gateway Errors

Michael Black <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <CAPe56Hv7R53NuvsjqYoLVzXZZDucjhxJ6OcgzkM2jTW34Mdsiw@mail.gmail.com>
Hello.

I am currently trying to build kannel from source (on arm, if i wasnt then
I'd use the i386 binary). However, make says there's an error:

gwlib/log.c: 434: error: invalid operations to binary == (have 'va_list'
and 'void *')

Line 434 is '(if args == NULL)'
Excert below:

static void PRINTFLIKE(1,0) kannel_syslog(char *format, va_list args, int
level)
{
    char buf[4096]; /* Trying to syslog more than 4K could be bad */
    int translog;

    if (level >= sysloglevel && dosyslog) {
        if (args == NULL) {
            strncpy(buf, format, sizeof(buf));
            buf[sizeof(buf) - 1] = '\0';
        } else {
            vsnprintf(buf, sizeof(buf), format, args);
            /* XXX vsnprint not 100% portable */
        }

        switch(level) {
        case GW_DEBUG:
            translog = LOG_DEBUG;
            break;
        case GW_INFO:
            translog = LOG_INFO;
            break;
        case GW_WARNING:
            translog = LOG_WARNING;
            break;
        case GW_ERROR:
            translog = LOG_ERR;
            break;
        case GW_PANIC:
            translog = LOG_ALERT;
            break;
        default:
            translog = LOG_INFO;
            break;
        }
        syslog(translog, "%s", buf);
    }
}
---------- Forwarded message ----------
From: "Michael Black" <[email protected]>
Date: Aug 19, 2012 1:46 PM
Subject: Make Gateway Errors
To: <[email protected]>

Hello,

I am currently attempting to build kannel from source; however, make says
there's an error:

gwlib/log.c:434 error: invalid operations to binary == (have 'va_list' and
'void *')

if (level >= sysloglevel && dosyslog) {
        if (args == NULL) {
            strncpy(buf, format, sizeof(buf));
            buf[sizeof(buf) - 1] = '\0';
        } else {
            vsnprintf(buf, sizeof(buf), format, args);
            /* XXX vsnprint not 100% portable */
        }

        switch(level) {
        case GW_DEBUG:

Whats wrong?

Mark
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.