[syslog-ng]BSDi again
jon@dumbo.pobox.com
jon@dumbo.pobox.com
Wed, 29 Nov 2000 19:04:46 -0500
first thing:
you should remove bsdi from this list
"syslog-ng is a syslogd replacement for unix and unix-like
systems. It has been tested on Solaris, BSDi and Linux, and
were found to run reliably.
" -- main web page
ok....i've been doing a bit of work on syslog-ng for bsdi
here's what i've done so far and the problems i'm having.
located a strptime.c via google
gcc -c strptime.c
then in the makefile
added strptime.o to syslog_ng_OBJECTS
viola...syslog-ng compiles somewhat ok (lots of "MIN
redefined")
now i'm running into an odd error
when i run syslog-ng with no switches, it hangs, kdump
below.
when i run it with -d, it coredumps with SIGSEGV
more kdump below
(gdb) bt (of syslog-ng -dv)
#0 0x480c6737 in __inet_addr ()
#1 0x804fd23 in __inet_aton (cp=0x8047c34 "207.106.42.9",
addr=0x7848030)
at utils.c:56
#2 0x480c673f in __inet_addr ()
#3 0x804fd23 in __inet_aton (cp=0x8047c34 "207.106.42.9",
addr=0x7848058)
a few thousand? lines of this
to fix this, i've tried uncommenting the "#undef
HAVE_INET_NTOA" in config.h to no effect.
kdump for syslog-ng (no switches)
20475 syslog-ng CALL ioctl(0x3,TIOCGETA,0x8047790)
20475 syslog-ng RET ioctl -1 errno 25 Inappropriate ioctl for device
20475 syslog-ng CALL close(0x3)
20475 syslog-ng RET close 0
20475 syslog-ng CALL fork
20475 syslog-ng RET fork 20476/0x4ffc
20475 syslog-ng CALL sigaction(0xf,0x8047d14,0x8047d08)
20475 syslog-ng RET sigaction 0
20475 syslog-ng CALL sigprocmask(0x1,0)
20475 syslog-ng RET sigprocmask 0
20475 syslog-ng CALL sigsuspend(0)
kdump for syslog-ng -dv
20469 syslog-ng GIO fd 2 wrote 33 bytes
"io.c: Preparing fd 3 for reading
"
20469 syslog-ng RET write 33/0x21
20469 syslog-ng CALL socket(0x2,0x2,0x11)
20469 syslog-ng RET socket 4
20469 syslog-ng CALL fcntl(0x4,0x3,0x4)
20469 syslog-ng RET fcntl 2
20469 syslog-ng CALL fcntl(0x4,0x4,0x6)
20469 syslog-ng RET fcntl 0
20469 syslog-ng CALL fcntl(0x4,0x2,0x1)
20469 syslog-ng RET fcntl 0
20469 syslog-ng PSIG SIGsegv SIG_DFL
20469 syslog-ng NAMI "syslog-ng.core"