zengargoyle has asked for the wisdom of the Perl Monks concerning the following question:
Solaris 2.8 and perl-5.6.1 have a little problem with Sys::Syslog. Somewhere in the build process things go a little wrong with Sys::Syslog and it doesn't learn about LOG_AUTH.
After a bit of google i came up with this to fix it
use Sys::Syslog; package Sys::Syslog; sub xlate { local($name) = @_; $name = uc $name; $name = "LOG_$name" unless $name =~ /^LOG_/; return (4<<3) if $name eq 'LOG_AUTH'; # a fix for LOG_AUTH $name = "Sys::Syslog::$name"; eval { &$name } || -1; } package main; openlog "testing","pid","auth"; syslog "info", "log this please";
so for an actual question... does anybody know why LOG_AUTH gets skipped in the build process?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sys::Syslog LOG_AUTH perl-5.6.1 and Solaris 2.8
by pg (Canon) on Dec 21, 2002 at 18:39 UTC | |
by zengargoyle (Deacon) on Dec 22, 2002 at 00:35 UTC | |
by pg (Canon) on Dec 22, 2002 at 01:45 UTC |