Perl and Syslog 
Author Message
 Perl and Syslog

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


/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



Sun, 26 Aug 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Perl 4.036 : Syslog.ph not found

2. Perl and Syslog

3. Sys::Syslog::syslog not working

4. Problem with syslog.ph & Sys::Syslog

5. Sys::Syslog::syslog not working

6. Sys::Syslog and syslog entries ?

7. Sys::Syslog::syslog and newlines

8. bug in IRIX 5.x perl library /usr/lib/perl/syslog.pl

9. IRIX 5.2 perl syslog routine problem

10. perl syslog.pl and Solaris 2.x

11. Syslog parsing with Perl

12. perl core dumps on syslog.pl (Ultrix 4.2)

 

 
Powered by phpBB® Forum Software