the concept of throwing away auth by default sounds foolish. nevertheless, it's not the problem here.

# fgrep auth.info /etc/syslog.conf auth.info /var/log/auth auth.info @authloghost # logger -p auth.info "hello world" # tail -1 /var/log/auth Dec 21 16:22:04 host.sub.dom username: [ID 702911 auth.info] hello wor +ld

meanwhile...

# perl -v This is perl, v5.6.1 built for sun4-solaris ... # perl -e 'use Sys::Syslog; syslog "auth.info", "from perl"' syslog: invalid level/facility: auth at -e line 1 # perl -e 'use Sys::Syslog; sub Sys::Syslog::LOG_AUTH () { 4<<3 }; sys +log "auth.info", "from perl"' # tail -1 /var/log/auth Dec 21 16:30:08 host.sub.dom username: from perl

i've tried a fresh build of 5.6.1 using Sun's compiler and the auto-everything flags (-des). somehow when it builds the Sys::Syslog module it misses LOG_AUTH (even though it's in sys/syslog.h with everything else). 5.8.1 built with the same compiler/flags works properly. adding the missing function works as well.


In reply to Re: Re: Sys::Syslog LOG_AUTH perl-5.6.1 and Solaris 2.8 by zengargoyle
in thread Sys::Syslog LOG_AUTH perl-5.6.1 and Solaris 2.8 by zengargoyle

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.