[syslog-ng]1.6.0rc1 / SunOS 5.8 (Solaris 8) - entries not logged with IP address
Brian C. Hill
syslog-ng@lists.balabit.hu
Wed, 30 Apr 2003 12:25:48 -0700
Hi Bazsi,
I don't have scheme shell. Can you apply this to a snapshot?
Brian
======================================================================
On Fri, Apr 18, 2003 at 12:58:59PM +0200, Balazs Scheidler wrote:
> On Fri, Apr 18, 2003 at 02:10:33AM -0700, Brian C. Hill wrote:
> > Hi Bazsi,
> >
> > Thanks for the quick reply.
> >
> > I did and that fixed the problem. Since that was the only
> > problem I ran into in 64-bit mode, I would like to be able to compile
> > it that way again for consistency with other applications.
> >
> > Do you have a quick thought as to which data structures might
> > be affected by te 64-bit compile that are related to the recvfrom part
> > of the code?
>
> you might try this patch:
>
> Index: abstract_io.h
> ===================================================================
> RCS file: /var/cvs/syslog-ng/libol/src/abstract_io.h,v
> retrieving revision 1.6
> diff -u -r1.6 abstract_io.h
> --- abstract_io.h 15 Mar 2000 16:41:52 -0000 1.6
> +++ abstract_io.h 18 Apr 2003 10:57:38 -0000
> @@ -48,7 +48,7 @@
> (name abstract_read)
> (vars
> (read indirect-method int "UINT32 length" "UINT8 *buffer")
> - (recv indirect-method int "UINT32 length" "UINT8 *buffer" "abstract_addr *addr" "int *addrsize")))
> + (recv indirect-method int "UINT32 length" "UINT8 *buffer" "abstract_addr *addr" "size_t *addrsize")))
> */
>
> #define A_READ(f, length, buffer) (f)->read(&(f), (length), (buffer))
> Index: io.c
> ===================================================================
> RCS file: /var/cvs/syslog-ng/libol/src/io.c,v
> retrieving revision 1.35
> diff -u -r1.35 io.c
> --- io.c 31 Jan 2003 09:27:02 -0000 1.35
> +++ io.c 18 Apr 2003 10:57:38 -0000
> @@ -361,7 +361,7 @@
> }
> }
>
> -static int do_recv(struct abstract_read **r, UINT32 length, UINT8 *buffer, abstract_addr *addr, int *addrlen)
> +static int do_recv(struct abstract_read **r, UINT32 length, UINT8 *buffer, abstract_addr *addr, socklen_t *addrlen)
> {
> CAST(fd_read, closure, *r);
>
>
>
> --
> 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
--
_____________________________________________________________________
/ Brian C. Hill bchill@bch.net http://brian.bch.net \
| Unix Specialist BCH Technical Services http://www.bch.net |