Hi, for those complaining that syslog-ng 1.5.21 didn't compile because of a missing res_init function, apply this patch: diff -u -r1.55 configure.in --- configure.in 27 Sep 2002 09:11:33 -0000 1.55 +++ configure.in 29 Sep 2002 11:59:12 -0000 @@ -151,6 +151,7 @@ AC_FUNC_VPRINTF AC_CHECK_LIB(door, door_create) AC_CHECK_FUNCS(select snprintf vsnprintf strerror inet_aton strncpy getutent) +AC_CHECK_FUNCS(res_init) AC_CHECK_FUNC(getopt_long,,[LIBOBJS="getopt.o getopt1.o $LIBOBJS"]) AC_CHECK_FUNC(strcasecmp,,[LIBOBJS="strcasecmp.o $LIBOBJS"]) AC_CHECK_FUNC(strptime,,[LIBOBJS="strptime.o $LIBOBJS"]) diff -u -r1.44 main.c --- src/main.c 4 Sep 2002 14:52:25 -0000 1.44 +++ src/main.c 29 Sep 2002 11:59:12 -0000 @@ -222,7 +222,9 @@ if (sighuprecvd) { sighuprecvd = 0; if (!backend->super.reloading) { +#if HAVE_RES_INIT res_init(); +#endif notice("SIGHUP received, restarting syslog-ng\n"); if (!debug_flag) { set_error_stream(2, 0); -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
In article <20020929120018.GA31886@balabit.hu>, Balazs Scheidler <bazsi@balabit.hu> wrote; } for those complaining that syslog-ng 1.5.21 didn't compile because of a } missing res_init function, apply this patch: I've updated from 1.5.13 to 1.5.21 on Solaris8, and just applied the patch. But new syslog-ng on our central syslog server is dead soon after running, while non-central syslog servers continue to run. I've got the core, but not investigated yet. I'll do it tomorrow, hopefully. -- Katsuhiro Kondou
In article <20020930.024602.71082195.kondou@isc.org>, Katsuhiro Kondou <Katsuhiro_Kondou@isc.org> wrote; } I've got the core, but not investigated yet. I'll } do it tomorrow, hopefully. It looks like allocating zero sized memory is failed. (gdb) bt #0 0xff141750 in _malloc_unlocked () from /usr/lib/libc.so.1 #1 0xff141520 in malloc () from /usr/lib/libc.so.1 #2 0x21cb4 in xalloc () #3 0x21e04 in ol_string_alloc () #4 0x1ee28 in c_format () #5 0x1aebc in do_handle_dest_writer (c=0x57dd8, msg=0x3f448) at affile.c:321 #6 0x1bac8 in do_handle_affile_log (c=0x57dd8, msg=0x3f448) at affile.c:982 #7 0x1713c in do_handle_log (c=0x42690, msg=0x3f448) at destinations.c:103 #8 0x16578 in do_distribute_log (c=0x50728, msg=0x3f448) at center.c:149 #9 0x16164 in do_add_source_name (c=0x40de8, logmsg=0x3f448) at sources.c:272 #10 0x1c76c in do_handle_afinet_line (c=0x3f3d0, msg=0x3f448) at afinet.c:113 #11 0x15bd8 in do_handle_line (self=0x3f410, length=259024, data=0x3f448 "", addr=0x3f448, addrlen=0) at sources.c:72 #12 0x15d48 in do_read_line (h=0x5c57e, read=0xffbef9c8) at sources.c:138 #13 0x1ff54 in read_callback () #14 0x1fbcc in io_iter () #15 0x152d8 in main_loop (backend=0x39748) at main.c:192 #16 0x159c8 in main (argc=0, argv=0xffbefd14) at main.c:516 (gdb) frame 2 #2 0x21cb4 in xalloc () (gdb) print length $4 = 0 (gdb) frame 3 #3 0x21e04 in ol_string_alloc () (gdb) print length $5 = 0 (gdb) frame 4 #4 0x1ee28 in c_format () (gdb) print length $6 = 0 -- Katsuhiro Kondou
It's not that syslog-ng wouldn't compile, it didn't properly link because -lresolv wasn't included as one of the linking libraries. Once I added it to the Makefile everything compiled, linked and ran fine. Aaron Balazs Scheidler wrote:
Hi,
for those complaining that syslog-ng 1.5.21 didn't compile because of a missing res_init function, apply this patch:
diff -u -r1.55 configure.in --- configure.in 27 Sep 2002 09:11:33 -0000 1.55 +++ configure.in 29 Sep 2002 11:59:12 -0000 @@ -151,6 +151,7 @@ AC_FUNC_VPRINTF AC_CHECK_LIB(door, door_create) AC_CHECK_FUNCS(select snprintf vsnprintf strerror inet_aton strncpy getutent) +AC_CHECK_FUNCS(res_init) AC_CHECK_FUNC(getopt_long,,[LIBOBJS="getopt.o getopt1.o $LIBOBJS"]) AC_CHECK_FUNC(strcasecmp,,[LIBOBJS="strcasecmp.o $LIBOBJS"]) AC_CHECK_FUNC(strptime,,[LIBOBJS="strptime.o $LIBOBJS"]) diff -u -r1.44 main.c --- src/main.c 4 Sep 2002 14:52:25 -0000 1.44 +++ src/main.c 29 Sep 2002 11:59:12 -0000 @@ -222,7 +222,9 @@ if (sighuprecvd) { sighuprecvd = 0; if (!backend->super.reloading) { +#if HAVE_RES_INIT res_init(); +#endif notice("SIGHUP received, restarting syslog-ng\n"); if (!debug_flag) { set_error_stream(2, 0);
participants (3)
-
Aaron Jackson
-
Balazs Scheidler
-
Katsuhiro Kondou