Article View: news.software.nntp
Article #35897Perl and Syslog
From: News System
Date: Wed, 10 Mar 1999 00:00
Date: Wed, 10 Mar 1999 00:00
38 lines
2083 bytes
2083 bytes
Hi,
I am using SuSE Linux 6.0 with Kernel 2.2.1 and Perl 5.00502.
Setting up INN 2.2 I found a problem when trying to write to
Syslog from Perl.
The following Perl programm
#!/usr/bin/perl
use Sys::Syslog;
openlog($program, 'cons,pid', 'user');
syslog('info', 'Hello world');
closelog();
produces the error message
Can't locate stdarg.ph in @INC (did you run h2ph?) (@INC contains:
/usr/lib/perl
5/5.00502/i586-linux /usr/lib/perl5/5.00502
/usr/lib/perl5/site_perl/5.005/i586-
linux /usr/lib/perl5/site_perl/5.005 .) at
/usr/lib/perl5/site_perl/5.005/i586-l
inux/sys/syslog.ph line 160.
BEGIN failed--compilation aborted at ./tt line 2.
The INN INSTALL file told me to do a h2ph * in /usr/include and
/usr/include/sys, but there is no stdarg.h at all.
I found stdarg.h in
./usr/lib/gcc-lib/i486-linux/egcs-2.91.60/include/stdarg.h
./usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stdarg.h
After running h2ph -a -h in one of these directories I get
no more error messages, but I get no syslog entry at all.
Any hints ?
Thanks
Bernhard
Technical Details
Message-ID:
<36E632C2.8F3D5FAB@hik.fzk.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.modules.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <36E632C2.8F3D5FAB@hik.fzk.de> Subject: Perl and Syslog Date: Wed, 10 Mar 1999 00:00:00 +0000 From: News System <verstege@hik.fzk.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.modules.mbox.zip!not-for-mail X-Deja-AN: 453318168 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@hiknews1.fzk.de X-Trace: hiknews1.fzk.de 921055972 26958 141.52.8.102 (10 Mar 1999 08:52:52 GMT) Organization: Forschungszentrum Karlsruhe GmbH Mime-Version: 1.0 NNTP-Posting-Date: 10 Mar 1999 08:52:52 GMT Newsgroups: linux.admin.news,comp.os.linux.setup,comp.lang.perl.modules,comp.lang.perl.misc,comp.os.linux.development.apps,news.software.nntp