Problem compiling on Solaris 8 (sparc)
Hi all, I'm trying to compile syslog-ng version 1.5.16 with gcc version 3.0.3. Yes, libol 0.3.2 is installed. I am receiving the following error. Any help would be appreciated. . . . gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/syslog-ng/syslog-ng-1.5.16/src -I. -g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c afstreams.c afstreams.c: In function `stream_read_callback': afstreams.c:148: too few arguments to function `make_log_info' make[3]: *** [afstreams.o] Error 1 make[3]: Leaving directory `/usr/local/src/syslog-ng/syslog-ng-1.5.16/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/syslog-ng/syslog-ng-1.5.16/src' make[1]: *** [all-recursive-am] Error 2 make[1]: Leaving directory `/usr/local/src/syslog-ng/syslog-ng-1.5.16/src' make: *** [all-recursive] Error 1 Thanks in advance, Sharon. __________________________________________________________________________________________ Any views or opinions are solely those of the author and do not necessarily represent those of CMP Media. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this message please do not read, copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking action or reliance upon, this information by persons or entities other than the intended recipient is prohibited. __________________________________________________________________________________________
dcntrnoc@cmp.com writes:
I'm trying to compile syslog-ng version 1.5.16 with gcc version 3.0.3. Yes, libol 0.3.2 is installed. I am receiving the following error. Any help would be appreciated.
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/syslog-ng/syslog-ng-1.5.16/src -I. -g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c afstreams.c afstreams.c: In function `stream_read_callback': afstreams.c:148: too few arguments to function `make_log_info'
Someone earlier this week had the same problem, and they posted this patch:
--- syslog-ng-1.5.16/src/afstreams.c Sun Jul 8 17:04:21 2001 +++ syslog-ng-1.5.16-patched/src/afstreams.c Fri Apr 12 18:09:01 2002 @@ -145,7 +145,7 @@
length = eol - bol; if (length) { - li = make_log_info(length, bol); + li = make_log_info(length, bol, NULL); li->pri = pri; HANDLE_LOG(self->pipe, li); }
Hi all,
I'm trying to compile syslog-ng version 1.5.16 with gcc version 3.0.3. Yes, libol 0.3.2 is installed. I am receiving the following error. Any help would be appreciated.
. . .
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/syslog-ng/syslog-ng-1.5.16/src -I.
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c afstreams.c afstreams.c: In function `stream_read_callback': afstreams.c:148: too few arguments to function `make_log_info' make[3]: *** [afstreams.o] Error 1 make[3]: Leaving directory `/usr/local/src/syslog-ng/syslog-ng-1.5.16/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/syslog-ng/syslog-ng-1.5.16/src' make[1]: *** [all-recursive-am] Error 2 make[1]: Leaving directory `/usr/local/src/syslog-ng/syslog-ng-1.5.16/src' make: *** [all-recursive] Error 1
Thanks in advance, Sharon.
I had this issue too. I think the problem is that the make_class script is not a bourne shell script. It's a scsh script. So I think you need scheme, or something like that. I just compiled it on linux and copied the classname.c.x files over to sun and it worked great.
participants (3)
-
dcntrnoc@cmp.com
-
Ed Ravin
-
Victor