[syslog-ng] Compile Error for syslog-ng-1.1.30

Balazs Scheidler bazsi@balabit.hu
Thu, 5 Aug 1999 23:44:55 +0200


On Thu, Aug 05, 1999 at 02:31:47PM +0900, bazsi wrote:
> Hi.
> 
> From: georg.funke@netcologne.de
> Subject: [syslog-ng] Compile Error for syslog-ng-1.1.30
> Date: Thu, 5 Aug 1999 06:33:04 +0200 (CEST)
> Message-ID: <199908050435.GAA05967@vekoll.saturnus.vein.hu>
> 
> > when i try to syslog-ng-1.1.30, i get the following error:
> > 
> > utils.c: In function `getutent':
> > utils.c:70: syntax error before `ut'
> > utils.c:77: `ut' undeclared (first use in this function)
> > utils.c:77: (Each undeclared identifier is reported only once
> > utils.c:77: for each function it appears in.)
> > utils.c:79: warning: control reaches end of non-void function
> 
> Please change utils.c's 70 line.
> <       static utmp ut;
> ---
> >       static struct utmp ut;

getutent() emulation for systems which not have one is still broken in at
least one way. getutent() should return NULL when the EOF is reached.

> and I fixed syslog-ng-1.1.30/configure's 2438 line.
> < LIBOL_REQ_VERSION="0.2.1"
> ---
> > LIBOL_REQ_VERSION="0.2.2"

hmm... 1.1.30 seems to be a quick&dirty release.

> 
> But, syslog-ng don't record log messages to file.
> My system is Solaris7 for SPARC.
> syslog-ng.conf is as follows.
> 
> source src {
>         sun-streams("/dev/log" door("/etc/.syslog_door"));
>         internal();
> };
> destination test {
>         file("/var/log/test.log");
> };
> log {
>         source(src);    destination(test);
> };
> 
> 
> Execute syslog-ng with this syslog-ng.conf and generation
> syslog events. For example `su -`.
> The following is what truss output at the time.
> 
> 13372:  door_return(0x00000000, 0, 0x00000000, 0)       = 0
> 13372:  poll(0xFFBEF9C8, 2, 60000)      (sleeping...)
> 13372:  signotifywait()                 (sleeping...)
> 13372:  lwp_cond_wait(0xFF14F618, 0xFF14F628, 0xFF105CA0) (sleeping...)
> 13372:  door_return(0x00000000, 0, 0x00000000, 0) (sleeping...)
> 13372:  door_return(0x00000000, 0, 0x00000000, 0) (sleeping...)

Could you provide some messages before the first door_return call? Maybe in
a private message.

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
     url: http://www.balabit.hu/pgpkey.txt