Hello snort-users ! I tried to compile syslog-ng-1.4.2 under HP-UX 10.20 (using gcc 2.8). During the linker process, I realized that there is no snprintf (and vsnprintf) function in the libc. Does anyone know a solution for this ? -- < Gero Krueger | DeTeCSM > < Tel. : +49-541-333-2488 | IVS Osnabrueck > < Fax : +49-541-333-2940 | Hannoversche Str. 6-8 > < mailto: krueger@obk.telekom.de | 49084 Osnabrueck >
Hi, ----- Original Message ----- From: "Gero Krueger" <krueger@obk.telekom.de> To: <syslog-ng@lists.balabit.hu> Sent: Thursday, March 23, 2000 2:23 PM Subject: [syslog-ng] syslog-ng under HP-UX 10.20
Hello snort-users !
I tried to compile syslog-ng-1.4.2 under HP-UX 10.20 (using gcc 2.8). During the linker process, I realized that there is no snprintf (and vsnprintf) function in the libc.
Does anyone know a solution for this ?
I'm getting a warning when i'm compiling syslog-ng: $ make No suffix list. Making all in src gcc -DHAVE_CONFIG_H -I. -I/usr/kgr/syslog-ng-1.4.2/src -I. -O2 -Wall -I/usr/kgr/libol-0.2.16/src -D_GNU_SOURCE -c main.c <snip> gcc -DHAVE_CONFIG_H -I. -I/usr/kgr/syslog-ng-1.4.2/src -I. -O2 -Wall -I/usr/kgr/libol-0.2.16/src -D_GNU_SOURCE -c affile.c affile.c: In function `expand_macro': affile.c:369: warning: implicit declaration of function `snprintf' <snip> gcc -O2 -Wall -I/usr/kgr/libol-0.2.16/src -D_GNU_SOURCE -o syslog-ng main.o sources.o center.o filters.o destinations.o log.o cfgfile.o cfg-grammar.o cfg-lex.o affile.o afsocket.o afunix.o afinet.o afinter.o afuser.o afstreams.o afprogram.o utils.o syslog-names.o getopt.c getopt1.c -lfl /usr/kgr/libol-0.2.16/src/.libs/libol.a -lxnet Making all in doc <snip> $ gcc -v Reading specs from /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/specs gcc version 2.95.2 19991024 (release) Most of the time, I'm ignoring warnings. -- Klaus Groenhoej Kommunedata A/S Hadsundvej 184 9100 Aalborg Denmark Phone: (+45)44601000 #2677 Direct: (+45)44602677 Fax: (+45)44602990
Hi Klaus! On Fri, 24 Mar 2000, Klaus Groenhoej wrote:
I'm getting a warning when i'm compiling syslog-ng: [snip] Making all in src Reading specs from /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/specs gcc version 2.95.2 19991024 (release)
Ok, I'm just compiling gcc-2.95.2. Then I will compare the results and we can perhaps find out what's wrong with my installation. -- < Gero Krueger | DeTeCSM > < Tel. : +49-541-333-2488 | IVS Osnabrueck > < Fax : +49-541-333-2940 | Hannoversche Str. 6-8 > < mailto: krueger@obk.telekom.de | 49084 Osnabrueck >
On Fri, 24 Mar 2000, Klaus Groenhoej wrote:
I'm getting a warning when i'm compiling syslog-ng: [snip] Making all in src Reading specs from /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/specs gcc version 2.95.2 19991024 (release)
Ok, I'm just compiling gcc-2.95.2. Then I will compare the results and we can perhaps find out what's wrong with my installation.
Attached you'll find a patch against 1.4.2 to support systems without snprintf(), you'll need autoconf & automake to regenerate the configuration script & Makefiles. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 url: http://www.balabit.hu/pgpkey.txt
On Thu Mar 23 14:23 2000 +0100, Gero Krueger wrote:
I tried to compile syslog-ng-1.4.2 under HP-UX 10.20 (using gcc 2.8). During the linker process, I realized that there is no snprintf (and vsnprintf) function in the libc.
Does anyone know a solution for this ?
Try installing the latest HP patch cluster. Patch number PHCO_16723 adds snprintf() to libc. -- Mark D. Roth <roth@uiuc.edu> System Administrator, CCSO Production Systems Group http://www.uiuc.edu/ph/www/roth
Hi Mark! On Fri, 24 Mar 2000, Mark D. Roth wrote:
Try installing the latest HP patch cluster. Patch number PHCO_16723 adds snprintf() to libc.
I just applied the patch. snprintf is now present (using ar revealed it) but the linker still doesn't find it. Anyway, I linked an extracted version of snprintf (using ar) against syslog-ng. Futher test brought up the following problem: My configuration was using pipe("/dev/log") as source and a remote machine via tcp as destination. syslog-ng then printed a logline without any termination resuling in lots of crap and newlines in the remote logfile. Is this a matter of configuration or still a problem with snprintf ? -- < Gero Krueger | DeTeCSM > < Tel. : +49-541-333-2488 | IVS Osnabrueck > < Fax : +49-541-333-2940 | Hannoversche Str. 6-8 > < mailto: krueger@obk.telekom.de | 49084 Osnabrueck >
Hi,
Try installing the latest HP patch cluster. Patch number PHCO_16723 adds snprintf() to libc.
I just applied the patch. snprintf is now present (using ar revealed it) but the linker still doesn't find it. Anyway, I linked an extracted version of snprintf (using ar) against syslog-ng. Futher test brought up the following problem:
My configuration was using pipe("/dev/log") as source and a remote machine via tcp as destination. syslog-ng then printed a logline without any termination resuling in lots of crap and newlines in the remote logfile.
Is this a matter of configuration or still a problem with snprintf ?
No. It's a problem with HP-UX local messages support. If you can send me an strace/truss/ktrace whatever it's called output of a logger session, I may be able to help here. I need the dump of data logger sends to /dev/log. To achieve this, you may have to enlarge the maximum string size to the syscall log (-s option of Linux strace) -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 url: http://www.balabit.hu/pgpkey.txt
Hi Balazs! On Mon, 27 Mar 2000, Balazs Scheidler wrote:
I need the dump of data logger sends to /dev/log. To achieve this, you may have to enlarge the maximum string size to the syscall log (-s option of Linux strace)
It seems that HP does not provide such a tool and strace does not support HP-UX. I forwarded this gap to our last-level-support who just promised me to find an answer to that as soon as possible. Meanwhile you could tell me where to add some debugging code (I think a printf would do the job). -- < Gero Krueger | DeTeCSM > < Tel. : +49-541-333-2488 | IVS Osnabrueck > < Fax : +49-541-333-2940 | Hannoversche Str. 6-8 > < mailto: krueger@obk.telekom.de | 49084 Osnabrueck >
On Mon, Mar 27, 2000 at 03:27:08PM +0200, Gero Krueger wrote:
Hi Balazs!
On Mon, 27 Mar 2000, Balazs Scheidler wrote:
I need the dump of data logger sends to /dev/log. To achieve this, you may have to enlarge the maximum string size to the syscall log (-s option of Linux strace)
It seems that HP does not provide such a tool and strace does not support HP-UX. I forwarded this gap to our last-level-support who just promised me to find an answer to that as soon as possible. Meanwhile you could tell me where to add some debugging code (I think a printf would do the job).
sources.c, do_read_line() function. There's some HP-UX workaround support, since as it seems HP-UX doesn't add a \0 or \n at the end of loglines. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 url: http://www.balabit.hu/pgpkey.txt
Hi, check out: http://hpux.connect.org.uk/hppd/hpux/Sysadmin/trace-1.6/ -Klaus -- Klaus Groenhoej Kommunedata A/S Hadsundvej 184 9100 Aalborg Denmark Phone: (+45)44601000 #2677 Direct: (+45)44602677 Fax: (+45)44602990 ----- Original Message ----- From: "Gero Krueger" <krueger@obk.telekom.de> To: <syslog-ng@venus.terrasoft.hu> Sent: Monday, March 27, 2000 3:27 PM Subject: Re: [syslog-ng] syslog-ng under HP-UX 10.20
Hi Balazs!
On Mon, 27 Mar 2000, Balazs Scheidler wrote:
I need the dump of data logger sends to /dev/log. To achieve this, you may have to enlarge the maximum string size to the syscall log (-s option of Linux strace)
It seems that HP does not provide such a tool and strace does not support HP-UX. I forwarded this gap to our last-level-support who just promised me to find an answer to that as soon as possible. Meanwhile you could tell me where to add some debugging code (I think a printf would do the job).
-- < Gero Krueger | DeTeCSM > < Tel. : +49-541-333-2488 | IVS Osnabrueck > < Fax : +49-541-333-2940 | Hannoversche Str. 6-8 > < mailto: krueger@obk.telekom.de | 49084 Osnabrueck >
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu http://lists.balabit.hu/mailman/listinfo/syslog-ng
participants (4)
-
Balazs Scheidler
-
Gero Krueger
-
Klaus Groenhoej
-
Mark D. Roth