Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.8.0 - no _PATH_INFO in Sys::Syslog on Solaris and Irix #6419

Closed
p5pRT opened this issue Apr 4, 2003 · 3 comments
Closed

5.8.0 - no _PATH_INFO in Sys::Syslog on Solaris and Irix #6419

p5pRT opened this issue Apr 4, 2003 · 3 comments

Comments

@p5pRT
Copy link

p5pRT commented Apr 4, 2003

Migrated from rt.perl.org#21832 (status was 'resolved')

Searchable as RT21832$

@p5pRT
Copy link
Author

p5pRT commented Apr 4, 2003

From mike808@users.sourceforge.net

Created by mike808@users.sourceforge.net

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.

Mike808
mike808@​users.sourceforge.net

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
http​://www.perlmonks.org/index.pl?node_id=56073

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

And the solution​:

by coreolyn on Feb 02, 2001 at 21​:07
Seems Solaris 2.6 doesn't provide _PATH_INFO reference.
coreolyn

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

Perl Info

Flags:
    category=core
    severity=medium

Site configuration information for perl v5.8.0:

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    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/'


---------------------------------------------
http://www.valuenet.net



@p5pRT
Copy link
Author

p5pRT commented Apr 15, 2003

From @jhi

This has been addressed in Perl 5.8.1-to-be slightly differently, namely so that if
the /dev/log is not accessible the /dev/conslog device is used instead. This should
work both for Solaris and IRIX.

@p5pRT p5pRT closed this as completed Apr 15, 2003
@p5pRT
Copy link
Author

p5pRT commented Apr 15, 2003

@jhi - Status changed from 'new' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant