RE: [syslog-ng]Installing syslog-ng in AIX 4.3.3
Thanks Bazsi . The libol part worked. Now when installing syslog-ng I am getting the following error when doing a make. I removed -Wall here also. cc -DHAVE_CONFIG_H -I. -I/data8/security/syslog-ng-1.4.15/src -I. -O 2 -I/usr/local/include/libol -D_GNU_SOURCE -c center.c "center.c", line 109.9: 1506-046 (S) Syntax error. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 2. Best regards Deepu -----Original Message----- From: Balazs Scheidler [mailto:bazsi@balabit.hu] Sent: Monday, July 22, 2002 5:25 PM To: syslog-ng@lists.balabit.hu Subject: Re: [syslog-ng]Installing syslog-ng in AIX 4.3.3 On Sat, Jul 20, 2002 at 12:51:42PM +0100, Deepu George wrote:
Hi All,
I am trying to install syslog-ng in AIX 4.3.3. The compiler I am using is C++ for AIX 5. I am getting the following error when running make while installing libol. Attached is the error
Target "all" is up to date. Making all in src cd .. && CONFIG_FILES= CONFIG_HEADERS=src/olconfig.h /bin/sh ./config.status creating src/olconfig.h src/olconfig.h is unchanged /bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I/data8/security/libol-0.2.23/src -I. -D_GNU_SOURCE -Wall -O2 -c format.c cc -DHAVE_CONFIG_H -I. -I/data8/security/libol-0.2.23/src -I. -D_GNU_SOURCE -Wall -O2 -c -DPIC format.c -o format.lo cc: 1501-210 command option Wall contains an incorrect subargument
syslog-ng has only been tested to compile using gcc the problem here is that your compiler doesn't understand -Wall, this very problem can be solved by removing -Wall from the generated Makefile -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Mascot Systems Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at Mailadmin@mascotsystems.com Before opening attachments, please scan for viruses.
On Mon, Jul 22, 2002 at 05:49:47PM +0530, Deepu George wrote:
Thanks Bazsi . The libol part worked. Now when installing syslog-ng I am getting the following error when doing a make. I removed -Wall here also.
cc -DHAVE_CONFIG_H -I. -I/data8/security/syslog-ng-1.4.15/src -I. -O 2 -I/usr/local/include/libol -D_GNU_SOURCE -c center.c
this patch might help here (touch center.c.x before after applying): Index: src/center.c =================================================================== RCS file: /var/cvs/syslog-ng/syslog-ng/src/center.c,v retrieving revision 1.13.4.3 diff -u -r1.13.4.3 center.c --- src/center.c 25 Feb 2001 12:30:22 -0000 1.13.4.3 +++ src/center.c 22 Jul 2002 13:53:29 -0000 @@ -106,6 +106,7 @@ } next_connection: + ; } if (!match && def_connection) { struct log_endpoint_info *d; -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
Hi Bazsi, I couldnt make much out of the solution you gave. I am new to Unix. Could you give me some more details Best regards Deepu --- Balazs Scheidler <bazsi@balabit.hu> wrote: > On Mon, Jul 22, 2002 at 05:49:47PM +0530, Deepu
George wrote:
Thanks Bazsi . The libol part worked. Now when installing syslog-ng I am getting the following error when doing a make. I removed -Wall here also.
cc -DHAVE_CONFIG_H -I. -I/data8/security/syslog-ng-1.4.15/src -I. -O 2 -I/usr/local/include/libol -D_GNU_SOURCE -c center.c
this patch might help here (touch center.c.x before after applying):
Index: src/center.c
===================================================================
RCS file: /var/cvs/syslog-ng/syslog-ng/src/center.c,v retrieving revision 1.13.4.3 diff -u -r1.13.4.3 center.c --- src/center.c 25 Feb 2001 12:30:22 -0000 1.13.4.3 +++ src/center.c 22 Jul 2002 13:53:29 -0000 @@ -106,6 +106,7 @@ }
next_connection: + ; } if (!match && def_connection) { struct log_endpoint_info *d;
-- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
________________________________________________________________________ Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.yahoo.com
Hi, I installed gcc in AIX and tried the install once again. This time the libol installation went through fine. When I tried the syslog-ng , the ./configure part went without any error. But got the following error when doing a make. Best regards Deepu George gcc -DHAVE_CONFIG_H -I. -I/data1/security/syslog-ng-1.4.15/src -I. - O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c cfg-lex.c cfg-lex.c:58: parse error before numeric constant cfg-lex.c:58: stray '\341' in program cfg-lex.c:73: numeric constant contains digits beyond the radix cfg-lex.c:77: too many decimal points in floating constant cfg-lex.c: In function `yylex': cfg-lex.c:233: warning: implicit declaration of function `yylook' cfg-lex.c:236: warning: implicit declaration of function `yywrap' cfg-lex.c:224: warning: unused variable `yyprevious' cfg-lex.c:234: warning: label `yyfussy' defined but not used cfg-lex.c: In function `lex_init': cfg-lex.c:347: warning: implicit declaration of function `yyrestart' cfg-lex.c: At top level: cfg-lex.c:480: warning: missing braces around initializer cfg-lex.c:480: warning: (near initialization for `yycrank[0]') cfg-lex.c:606: warning: missing braces around initializer cfg-lex.c:606: warning: (near initialization for `yywcrank[0]') cfg-lex.c:608: warning: missing braces around initializer cfg-lex.c:608: warning: (near initialization for `yysvec[0]') cfg-lex.c:739: warning: return type defaults to `int' cfg-lex.c: In function `yylook': cfg-lex.c:743: warning: unused variable `yyw' cfg-lex.c: In function `yywinput': cfg-lex.c:1162: warning: implicit declaration of function `mbsinvalid' make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 2. Stop. make: 1254-004 The error code from the last command is 1. ________________________________________________________________________ Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.yahoo.com
On Tue, Jul 23, 2002 at 05:48:44AM +0100, Deepu George wrote:
Hi,
I installed gcc in AIX and tried the install once again. This time the libol installation went through fine. When I tried the syslog-ng , the ./configure part went without any error. But got the following error when doing a make.
as it seems the lex file got regenerated (I included one in the dist), and the lex included in AIX generated bad code (at least incompatible with gcc or the rest of syslog-ng). Either use the cfg-lex.c (and cfg-grammar.c) file from the dist, or install GNU flex and GNU bison. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
Hi I tried replacing cfg-lex.c and cfg-grammar.c from the distribution. But the error I am getting is the same. So should I go ahead with GNU Flex and GNU Bison Best regards Deepu --- Balazs Scheidler <bazsi@balabit.hu> wrote: > On Tue, Jul 23, 2002 at 05:48:44AM +0100, Deepu
George wrote:
Hi,
I installed gcc in AIX and tried the install once again. This time the libol installation went through fine. When I tried the syslog-ng , the ./configure part went without any error. But got the following error when doing a make.
as it seems the lex file got regenerated (I included one in the dist), and the lex included in AIX generated bad code (at least incompatible with gcc or the rest of syslog-ng). Either use the cfg-lex.c (and cfg-grammar.c) file from the dist, or install GNU flex and GNU bison.
-- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
________________________________________________________________________ Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.yahoo.com
Hi Thanks . I got the syslog-ng installed on AIX. I installed bison and flex. One more help like sun-streams for Solaris what does AIX use for log. Best regards Deepu ________________________________________________________________________ Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.yahoo.com
On Tue, Jul 23, 2002 at 11:10:16AM +0100, Deepu George wrote:
Hi
Thanks . I got the syslog-ng installed on AIX. I installed bison and flex.
One more help like sun-streams for Solaris what does AIX use for log.
quoting from file INSTALL: AIX (unknown revision) ---------------------- AIX does support STREAMS, but its log transport doesn't use it. As it seems /dev/log is a simple unix socket, though I can't find out whether it uses SOCK_DGRAM or SOCK_STREAM semantics. I'd be grateful if you could tell me which one applies (unix-dgram or unix-stream), so I can update the INSTALL file. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
Hi Thanks for all the help. It's working. It's logging to the central syslog-ng server. I have not gone into the filter and other details. Its uses "unix-dgram". Next I need to try it on HP-UX. Is there any such problems you know of in HP-UX. Best regards Deepu --- Balazs Scheidler <bazsi@balabit.hu> wrote: > On Tue, Jul 23, 2002 at 11:10:16AM +0100, Deepu
George wrote:
Hi
Thanks . I got the syslog-ng installed on AIX. I installed bison and flex.
One more help like sun-streams for Solaris what does AIX use for log.
quoting from file INSTALL:
AIX (unknown revision) ----------------------
AIX does support STREAMS, but its log transport doesn't use it. As it seems /dev/log is a simple unix socket, though I can't find out whether it uses SOCK_DGRAM or SOCK_STREAM semantics.
I'd be grateful if you could tell me which one applies (unix-dgram or unix-stream), so I can update the INSTALL file.
-- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
________________________________________________________________________ Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.yahoo.com
On Tue, Jul 23, 2002 at 01:49:22PM +0100, Deepu George wrote:
Hi
Thanks for all the help. It's working. It's logging to the central syslog-ng server. I have not gone into the filter and other details.
Its uses "unix-dgram". Next I need to try it on HP-UX. Is there any such problems you know of in HP-UX.
GNU flex and GNU bison might be needed there as well. Wrt the way HP-UX works, here's a quote from my just updated INSTALL file (post 1.5.19): HP-UX (HP-UX 11.0) ------------------ HP-UX uses a named pipe called /dev/log for log transport, and you can use this with the pipe() driver with an additional option. HP-UX pads all incoming messages to 2048 bytes by default, so you need to specify this: source stdlog { pipe("/dev/log" pad_size(2048)); }; -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
participants (3)
-
Balazs Scheidler
-
Deepu George
-
Deepu George