Tracker: Bug Tracker

5 Solution for lot of ctime.pl errors in http log - ID: 3389943
Last Update: Comment added ( whyscream )

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


Antal Kovacs ( dolpa ) - 2011-08-11 01:14:53 PDT

5

Closed

Fixed

Tom Hendrikx (alt. account)

webui

None

Public


Comments ( 4 )

Date: 2011-08-16 13:42:51 PDT
Sender: whyscream

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


Date: 2011-08-16 00:56:35 PDT
Sender: dolpa

Hi whyscream,

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

Cheers,
Antal


Date: 2011-08-15 16:21:44 PDT
Sender: whyscream

erh... typo.

dolpa, could you test posix-ctime.patch?


Date: 2011-08-15 16:17:33 PDT
Sender: whyscream

Hi,

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


Attached Files ( 2 )

Filename Description Download
ctime.patch ctime.patch Download
posix-ctime.patch posix-ctime.patch Download

Changes ( 9 )

Field Old Value Date By
status_id Open 2011-08-16 13:42:51 PDT whyscream
resolution_id Accepted 2011-08-16 13:42:51 PDT whyscream
allow_comments 1 2011-08-16 13:42:51 PDT whyscream
close_date - 2011-08-16 13:42:51 PDT whyscream
File Added 421235: posix-ctime.patch 2011-08-15 16:20:06 PDT whyscream
resolution_id Fixed 2011-08-15 16:17:47 PDT whyscream
assigned_to nobody 2011-08-15 16:17:33 PDT whyscream
resolution_id None 2011-08-15 16:17:33 PDT whyscream
File Added 420851: ctime.patch 2011-08-11 01:14:54 PDT dolpa