Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#136 Solution for lot of ctime.pl errors in http log

closed-fixed
webui (31)
5
2011-08-16
2011-08-11
Antal Kovacs
No

I got lot of errors in my http log, this is affected to latest release too:

[Thu Aug 11 08:59:44 2011] [error] [client 10.70.70.70] Legacy library ctime.pl will be removed from the Perl core distribution in the next major release. Please install it from the CPAN distribution Perl4::CoreLibs. It is being used at admin.cgi, line 23.

[Thu Aug 11 09:00:15 2011] [error] [client 10.70.70.70] Legacy library ctime.pl will be removed from the Perl core distribution in the next major release. Please install it from the CPAN distribution Perl4::CoreLibs. It is being used at dspam.cgi, line 25.

#perl -v
This is perl 5, version 14, subversion 1 (v5.14.1) built for x86_64-linux-thread-multi

This is not a real error rather a warning for the future. So I install Perl/CPAN Module Time::CTime, and change 2 lines in dspam.cgi and admin.cgi

I attached the patch to this post.

1. Install Perl/CPAN Module Time::CTime to your distrib, in Archlinux this is "perl-time-ctime"
1. copy ctime.patch to web cgi-bin directory where there is the dspam.cgi and admin.cgi
2. patch -p0 < ctime.patch

With this changes I got no more errors and everything is work perfectly.

Cheers,
Antal

Discussion

  • Antal Kovacs
    Antal Kovacs
    2011-08-11

    ctime.patch

     
    Attachments
  • Hi,

    thanks for the report. Could test attached patch which uses the ctime implementation from POSIX, which does not add a dependency.

     
    • assigned_to: nobody --> whyscream
    • status: open --> open-fixed
     
    • status: open-fixed --> open-accepted
     
  • erh... typo.

    dolpa, could you test posix-ctime.patch?

     
  • Antal Kovacs
    Antal Kovacs
    2011-08-16

    Hi whyscream,

    I tried this posix-ctime patch and working well.
    Thank you!

    Cheers,
    Antal

     
  • The patch is (with minor change) committed to master.

     
    • status: open-accepted --> closed-fixed