coreolyn has asked for the wisdom of the Perl Monks concerning the following question:

I've run into a problem with executing the following on a Solaris 2.6 box with a source build of 5.6.0
Sys::Syslog::setlogsock("unix")

I recieve back
Usage: Sys::Syslog::_PATH_LOG() at /home/perl/5.6.0/lib/5.6.0/sun4-solaris/Sys/Syslog.pm line 277

Line 277 of Sys::Syslog.pm is
my $syslog = &_PATH_LOG                          || croak "_PATH_LOG not found in syslog.ph";

Looking in the syslog.ph I verify that _PATH_LOG indeed is NOT listed there. Tracing back to /usr/include/syslog.h and sys/syslog.h I find no reference there either.

Any Suggestions?

coreolyn

Replies are listed 'Best First'.
(tye)Re: Problems with Sys::Syslog::setlogsock on Solaris 2.6
by tye (Sage) on Feb 02, 2001 at 23:44 UTC

    Change &_PATH_LOG to _PATH_LOG().

            - tye (but my friends call me "Tye")

      Damn.. thought that was too easy.. got me past the programs init but once it tries to write all hell breaks loose.

      Seems Solaris 2.6 doesn't provide _PATH_INFO reference.

      coreolyn

Re: Problems with Sys::Syslog::setlogsock on Solaris 2.6
by coreolyn (Parson) on Feb 03, 2001 at 02:32 UTC

    Got it! On Solaris 2.6 you need to change the value to &LOG_SYSLOG

    coreolyn

      Yep that was it for IRIX 6.5.13 also. change the value to &LOG_SYSLOG