Skip Menu |

This queue is for tickets about the Astro-Sunrise CPAN distribution.

Report information
The Basics
Id: 2927
Status: resolved
Worked: 50 min
Priority: 0/
Queue: Astro-Sunrise

People
Owner: rkhill [...] cpan.org
Requestors: slaven [...] rezic.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Warnings
There are warnings when loading Astro::Sunrise: perl -w -MAstro::Sunrise -e1 Subroutine Astro::Sunrise::tan redefined at usr/local/lib/perl5/5.8.0/Exporter.pm line 59. at /usr/local/lib/perl5/site_perl/5.8.0/Astro/Sunrise.pm line 83 Subroutine Astro::Sunrise::asin redefined at /usr/local/lib/perl5/5.8.0/Exporter.pm line 59. at /usr/local/lib/perl5/site_perl/5.8.0/Astro/Sunrise.pm line 83 Subroutine Astro::Sunrise::acos redefined at /usr/local/lib/perl5/5.8.0/Exporter.pm line 59. at /usr/local/lib/perl5/site_perl/5.8.0/Astro/Sunrise.pm line 83 Subroutine Astro::Sunrise::atan redefined at /usr/local/lib/perl5/5.8.0/Exporter.pm line 59. at /usr/local/lib/perl5/site_perl/5.8.0/Astro/Sunrise.pm line 83 Subroutine Astro::Sunrise::sinh redefined at /usr/local/lib/perl5/5.8.0/Exporter.pm line 59. at /usr/local/lib/perl5/site_perl/5.8.0/Astro/Sunrise.pm line 83 Subroutine Astro::Sunrise::cosh redefined at /usr/local/lib/perl5/5.8.0/Exporter.pm line 59. at /usr/local/lib/perl5/site_perl/5.8.0/Astro/Sunrise.pm line 83 Subroutine Astro::Sunrise::tanh redefined at /usr/local/lib/perl5/5.8.0/Exporter.pm line 59. at /usr/local/lib/perl5/site_perl/5.8.0/Astro/Sunrise.pm line 83 It seems that this is a clash loading both POSIX and Math::Trig, both of them defining the same functions. The fix would be to implicitely import the needed functions, either use POSIX qw(sinh ....); use Math::Trig (); or use Math::Trig qw(sinh ...); use POSIX (); Regards, Slaven
I added the following to the code use POSIX qw(floor); since I only use the POSIX module for the floor function. Ron