[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Perl LOG_AUTH & LOG_KERN undefined in Sys::Syslog?



At 21:22 -0600 on 5/18/01, Todd C. Miller wrote:
> Now, I don't see why LOG_AUTH doesn't work.  &LOG_AUTH is certainly
> defined by syslog.ph.  I do see that perl 5.6.1 uses XS code instead
> of syslog.ph.  Perhaps the other machines you are testing on have
> perl 5.6.1?


Good point.  The Solaris and Red Hat systems have 5.004_04 and 5.005_03,
while the OpenBSD systems have 5.6.0.  However, 5.6.0 still uses syslog.ph
as far as I can tell.

xlate() in Sys/Syslog.pm is not liking what it gets when it tries LOG_AUTH:

  use Sys::Syslog;
  if ( $n = &Sys::Syslog::LOG_DAEMON ) { print "LOG_DAEMON ", $n>>3, "\n"; }
  if ( $n = &Sys::Syslog::LOG_UUCP ) { print "LOG_UUCP ", $n>>3, "\n"; }
  if ( $n = &Sys::Syslog::LOG_FTP ) { print "LOG_FTP ", $n>>3, "\n"; }
  if ( $n = &Sys::Syslog::LOG_AUTH ) { print "LOG_AUTH ", $n>>3, "\n"; }

finishes up with an AUTOLOAD complaint:

  LOG_DAEMON 3
  LOG_UUCP 8
  LOG_FTP 11
  Your vendor has not defined Sys::Syslog macro LOG_AUTH

If 5.6.1's change to XS dodges the problem, then 5.6.1 should be good
enough.  Otherwise, why isn't LOG_AUTH being included in the build?


Richard