From owner-freebsd-hackers Thu Dec 19 15:37: 8 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4C2F37B401 for ; Thu, 19 Dec 2002 15:37:06 -0800 (PST) Received: from primus.vsservices.com (primus.vsservices.com [63.66.136.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39D7C43EDC for ; Thu, 19 Dec 2002 15:37:02 -0800 (PST) (envelope-from gclarkii@vsservices.com) Received: from prime.vsservices.com (conr-adsl-dhcp-17-180.txucom.net [209.34.17.180]) by primus.vsservices.com (8.12.6/8.12.5) with SMTP id gBJNaqtG032791; Thu, 19 Dec 2002 17:36:52 -0600 (CST) (envelope-from gclarkii@vsservices.com) Date: Thu, 19 Dec 2002 17:45:34 -0600 From: GB Clark To: Leo Bicknell Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Perl issue on freebsd 4.x? Message-Id: <20021219174534.5de601cd.gclarkii@vsservices.com> In-Reply-To: <20021219022152.GA6708@ussenterprise.ufp.org> References: <20021219022152.GA6708@ussenterprise.ufp.org> X-Mailer: Sylpheed version 0.8.5 (GTK+ 1.2.10; i386-portbld-freebsd4.7) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 18 Dec 2002 21:21:52 -0500 Leo Bicknell wrote: > > I have a script where I attempt to use Sys::Syslog, and while it > works on several platforms it does not work on FreeBSD 4.x (well, > 4.5 and 4.7 is what I have confirmed on) even though all works > fine. I've also passed my version of perl debugging, and don't > see why it's failing. > > Test code, lifted right from the Sys::Syslog man page: > > use Sys::Syslog; > > openlog($program, 'cons,pid', 'user'); > syslog('info', 'this is another test'); > syslog('mail|warning', 'this is a better test: %d', time); > closelog(); > > If you add "|| die" to the end of each one you'll find it dies on > the openlog call, digging down with the debugger it can't establish > a socket to the syslog server. I get the same behavior if I tell > it to use a unix domain socket rather than an inet socket. > > One machine runs syslog -s, the other -a with all IP's and localhost > in the ACL. I suppose it could be a security thing but all other > apps syslog just fine so I suspect perl should work. > > While probably a perl issue, FreeBSD does seem to be the only place > it's broken for me, which is why I thought I'd try here. Anyone > got an idea? > > -- > Leo Bicknell - bicknell@ufp.org - CCIE 3440 > PGP keys at http://www.ufp.org/~bicknell/ > Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org > Hi, What version of Perl is this? I've used syslogging with FreeBSD 4.4/4.5. Have not tried it lately. GB -- GB Clark II | Roaming FreeBSD Admin gclarkii@VSServices.COM | General Geek CTHULU for President - Why choose the lesser of two evils? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message