# New Ticket Created by mike808@users.sourceforge.net
# Please include the string: [perl #21832]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=21832 >

To: Subject:
Reply-To: mike808@users.sourceforge.net
Message-Id: <5.8.0_13735_1049479297@mfe0stl2.mastercard.com>

This is a bug report for perl from mike808@users.sourceforge.net,
generated with the help of perlbug 1.34 running under perl v5.8.0.

[Please enter your report here]
I also ran into this problem using Log::Log4perl, which in turn uses
Log::Dispatch, which in turn uses Sys::Syslog.

I was running into problems with Sys::Syslog::setlogsock not being able to
send a message to the syslog daemon.

On Solaris, it seems that the macro _PATH_LOG() is not defined in sys/syslog.h.

I found the following thread on Perlmonks from 2001. Can we please get
Sys::Syslog.pm fixed to take into account the fact that Solaris and IRIX
do not have this macro defined in /usr/include/sys/syslog.h.

Instead, per the solution from the thread it should use LOG_SYSLOG().

This is still occurring in 2003 with Perl 5.8.0 on Solaris 2.8 for sparc.

From http://www.perlmonks.org/index.pl?replies=1&node_id=56073&displaytype=print
Problems with Sys::Syslog::setlogsock on Solaris 2.6
by coreolyn on Feb 02, 2001 at 23:36 UTC

I've run into a problem with executing the following on a Solaris 2.6 box
with a source build of 5.6.0


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?

And the solution:
by coreolyn on Feb 02, 2001 at 21:07
Seems Solaris 2.6 doesn't provide _PATH_INFO reference.
by coreolyn on Feb 02, 2001 at 21:32
Got it! On Solaris 2.6 you need to change the value to &LOG_SYSLOG
by Anonymous Monk on Nov 19, 2002 at 15:25
Yep that was it for IRIX 6.5.13 also. change the value to &LOG_SYSLOG
[Please do not change anything below this line]
Site configuration information for perl v5.8.0:

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
osname=solaris, osvers=2.8, archname=sun4-solaris
uname='sunos solaris 5.8 generic_108528-11 sun4u sparc sunw,ultra-5_10 '
config_args='-Dcc=gcc -B/usr/ccs/bin/'


Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupperl5-porters @
postedApr 4, '03 at 8:28p
activeApr 4, '03 at 8:28p



site design / logo © 2021 Grokbase