Hi, 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 My System is Redhat 6.0 with kernel 2.2.10 and the compiler is gcc-2.95. Can you help me why i get this error? Thanks Georg -- Georg Funke Crowns & Flames SDC Cologne, Germany; http://www.geocities.com/Colosseum/4893 "Friendship is Square Dancing's greatest Reward"
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;
and I fixed syslog-ng-1.1.30/configure's 2438 line. < LIBOL_REQ_VERSION="0.2.1" ---
LIBOL_REQ_VERSION="0.2.2"
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...) He looks like always sleeping :-) -- Tomohiro Yamauchi handy@nid.co.jp
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
On Thu, Aug 05, 1999 at 06:33:04AM +0200, georg.funke@netcologne.de wrote:
Hi,
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
My System is Redhat 6.0 with kernel 2.2.10 and the compiler is gcc-2.95.
hmmm... that part of utils.c is the NetBSD workaround, and it probably have errors. You don't need that on Linux. The funny thing is that it compiles fine for me. Please check your config.log file, whether getutent() is found by the configure script. As a temporary fix change line 60 of utils.c from #ifndef HAVE_GETUTENT to #if 0 -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 url: http://www.balabit.hu/pgpkey.txt
Hi, On 5 Aug, Balazs Scheidler wrote:
My System is Redhat 6.0 with kernel 2.2.10 and the compiler is gcc-2.95.
hmmm... that part of utils.c is the NetBSD workaround, and it probably have errors. You don't need that on Linux. The funny thing is that it compiles fine for me. Please check your config.log file, whether getutent() is found by the configure script.
Yes getutent() is found
As a temporary fix change line 60 of utils.c from
#ifndef HAVE_GETUTENT
to
#if 0
I have compiled it with this change, and it works for me Georg -- Georg Funke Crowns & Flames SDC Cologne, Germany; http://www.geocities.com/Colosseum/4893 "Friendship is Square Dancing's greatest Reward"
participants (3)
-
Balazs Scheidler
-
georg.funke@netcologne.de
-
Tomohiro Yamauchi