[syslog-ng]Compiling syslog-ng-1.9.3 on OpenBSD 3.6?

Kevin syslog-ng@lists.balabit.hu
Fri, 11 Feb 2005 20:48:08 -0600


I encounter a strange error related to the variable 'timezone' when attempting
to compile syslog-ng-1.9.3 on OpenBSD 3.6.  Suggestions appreciated.

First problem I found was easily addressed:
    main.c
    main.c:39: wait.h: No such file or directory

Replacing line 39 (#include <wait.h>) with these three lines solved that issue:
    #include <sys/time.h>
    #include <sys/resource.h>
    #include <sys/wait.h>

After resolving that issue, I encounter the following:
    echo './'`logmsg.c
    logmsg.c: In function `log_stamp_format':
    logmsg.c:68: warning: assignment makes integer from pointer without a cast
    logmsg.c: In function `log_msg_parse':
    logmsg.c:234: warning: assignment makes integer from pointer without a cast
    logmsg.c:237: invalid operands to binary -
    logmsg.c:265: warning: assignment makes integer from pointer without a cast
    logmsg.c: In function `log_msg_init':
    logmsg.c:470: warning: assignment makes integer from pointer without a cast
    *** Error code 1

These lines are as follows:
     68: target_zone_offset = timezone;
    234: self->stamp.zone_offset = timezone; /* assume local timezone */
    237: self->stamp.time.tv_sec = mktime(&tm) - timezone +
self->stamp.zone_offset;
    265: self->stamp.zone_offset = timezone; /* assume local timezone */
    470: self->recvd.zone_offset = timezone;

In OpenBSD, timezone is a function, char *timezone(int, int), not a variable.
it appears that older versions of syslog-ng included options in configure for
"checking for global timezone variable", but not in 1.9.3?


Thanks,

Kevin Kadow