From owner-freebsd-hackers Wed Dec 18 18:21:56 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 53F5F37B401 for ; Wed, 18 Dec 2002 18:21:54 -0800 (PST) Received: from ussenterprise.ufp.org (ussenterprise.ufp.org [208.185.30.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9805143EDC for ; Wed, 18 Dec 2002 18:21:53 -0800 (PST) (envelope-from bicknell@ussenterprise.ufp.org) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.11.1/8.11.1) id gBJ2Lqd06869 for freebsd-hackers@freebsd.org; Wed, 18 Dec 2002 21:21:52 -0500 (EST) (envelope-from bicknell) Date: Wed, 18 Dec 2002 21:21:52 -0500 From: Leo Bicknell To: freebsd-hackers@freebsd.org Subject: Perl issue on freebsd 4.x? Message-ID: <20021219022152.GA6708@ussenterprise.ufp.org> Mail-Followup-To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline Organization: United Federation of Planets Reply-By: Wed Dec 25 21:16:06 EST 2002 X-Message-Flag: Put no trust in cryptic comments. 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 --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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? --=20 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 --lrZ03NoBR/3+SXJZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE+AS1ANh6mMG5yMTYRAv99AJwK/gwv744zkO+CgOuTEP7icNahVwCfdyr+ 6DACVBffMW9eeXnHB2RwUFM= =vMAP -----END PGP SIGNATURE----- --lrZ03NoBR/3+SXJZ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message