Front page | perl.perl5.porters |
Postings from January 2001
[ID 20010117.004] &Sys::Syslog::setlogsock broken
From:
setantae
Date:
January 17, 2001 12:58
Subject:
[ID 20010117.004] &Sys::Syslog::setlogsock broken
Message ID:
E14IzP9-0002X8-00@ignatius.hounds
This is a bug report for perl from setantae@eidosnet.co.uk,
generated with the help of perlbug 1.28 running under perl v5.6.0.
-----------------------------------------------------------------
[Please enter your report here]
When calling &Sys::Syslog::setlogsock with the argument 'unix', my program dies with the following error:
Usage: Sys::Syslog::_PATH_LOG() at /usr/lib/perl5/5.6.0/i686-linux-64all/Sys/Syslog.pm line 277
A test program is included below :
#!/usr/bin/perl -w
use strict;
use 5.6.0;
use Sys::Syslog qw/:DEFAULT setlogsock/;
&setlogsock('unix'); # We die here
&openlog($0,"pid","local6");
&syslog("notice","we won't get here");
### end test program
Editing line 277 of /usr/lib/perl5/5.6.0/i686-linux-64all/Sys/Syslog.pm as follows fixes the problem :
############## begin diff
277c277
< my $syslog = &_PATH_LOG || croak "_PATH_LOG not found in syslog.ph";
---
> my $syslog = &_PATH_LOG() || croak "_PATH_LOG not found in syslog.ph";
############## end diff
That's it. Thanks,
setantae
(Ceri Davies)
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=library
severity=low
---
Site configuration information for perl v5.6.0:
Configured by root at Thu Sep 21 17:13:13 BST 2000.
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=linux, osvers=2.2.16, archname=i686-linux-64all
uname='linux ignatius 2.2.16 #2 thu sep 21 16:16:19 bst 2000 i686 unknown '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define
use64bitint=define use64bitall=define uselongdouble=define usesocks=undef
Compiler:
cc='cc', optimize='-O2', gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
cppflags='-fno-strict-aliasing -fomit-frame-pointer'
ccflags ='-fno-strict-aliasing -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long long', ivsize=8, nvtype='long double', nvsize=12, Off_t='off_t', lseeksize=8
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
libc=/lib/libc-2.1.2.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Locally applied patches:
---
@INC for perl v5.6.0:
/usr/lib/perl5/5.6.0/i686-linux-64all
/usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i686-linux-64all
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl
.
---
Environment for perl v5.6.0:
HOME=/home/setantae
LANG=en_US
LANGUAGE (unset)
LC_ALL=en_US
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/setantae/bin:/usr/X11R6/bin:/home/setantae/bin
PERL_BADLANG (unset)
SHELL=/bin/bash2
-
[ID 20010117.004] &Sys::Syslog::setlogsock broken
by setantae