Perl and Syslog 
Author Message
 Perl and Syslog

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

use Sys::Syslog;
openlog($program, 'cons,pid', 'user');
syslog('info', 'Hello world');

produces the error message

5/5.00502/i586-linux /usr/lib/perl5/5.00502
linux /usr/lib/perl5/site_perl/5.005 .) at
inux/sys/ 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
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 ?


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

 Relevant Pages 

1. Perl 4.036 : not found

2. Perl and Syslog

3. Sys::Syslog::syslog not working

4. Problem with & 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/

9. IRIX 5.2 perl syslog routine problem

10. perl and Solaris 2.x

11. Syslog parsing with Perl

12. perl core dumps on (Ultrix 4.2)


Powered by phpBB® Forum Software